/* ===================================================================
   Timer sub-pages — Tomato Hero aesthetic, LED-themed hero.
   =================================================================== */

:root {
  --bg:           #faf6f1;
  --bg-2:         #f3eee5;
  --surface:      #ffffff;
  --surface-2:    #faf6ed;
  --border:       #e8dfcc;
  --border-soft:  #f0e9da;
  --text:         #1f1a14;
  --text-2:       #5c5547;
  --text-3:       #8a8275;
  --text-faint:   #b5ac9b;

  --accent:       #e85f4d;
  --accent-2:     #d44a39;
  --accent-soft:  rgba(232, 95, 77, 0.10);
  --accent-glow:  rgba(232, 95, 77, 0.55);

  --case-1:       #f3eee5;
  --case-2:       #e7dfcc;
  --case-3:       #cdc3ad;
  --screen-1:     #14110c;
  --screen-2:     #0a0805;

  --font-mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
               "PingFang TC", "PingFang SC", "Hiragino Sans", "Noto Sans CJK",
               sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 235, 220, 0.55) 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
ul, ol { list-style: none; }

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 28px) clamp(16px, 4vw, 28px) 80px;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 12px;
}
.brand { font-weight: 600; font-size: 15px; color: var(--text-2); }
.brand:hover { color: var(--accent); }
.topbar-nav { display: flex; gap: 16px; align-items: center; }
.nav-link { font-size: 13px; color: var(--text-3); }
.nav-link:hover { color: var(--accent); }

/* Hero with LED block */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 5vw, 40px);
  margin-bottom: 36px;
  background:
    radial-gradient(ellipse 120% 60% at 50% -10%, rgba(255,255,255,0.6) 0%, transparent 55%),
    linear-gradient(180deg, var(--case-1) 0%, var(--case-2) 100%);
  border: 1px solid var(--case-3);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 14px 32px rgba(120,90,60,0.18),
    0 32px 72px rgba(120,90,60,0.12);
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.hero-screen {
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(232, 95, 77, 0.07) 0%, transparent 60%),
    linear-gradient(180deg, var(--screen-2) 0%, var(--screen-1) 100%);
  border: 1px solid #08070a;
  border-radius: 18px;
  padding: clamp(28px, 6vw, 48px) clamp(20px, 4vw, 32px);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.85),
    inset 0 0 30px rgba(0,0,0,0.55);
  margin-bottom: 24px;
}

.hero-led {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(60px, 14vw, 120px);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #e85f4d;
  text-shadow:
    0 0 8px rgba(232, 95, 77, 0.85),
    0 0 18px rgba(232, 95, 77, 0.55),
    0 0 38px rgba(232, 95, 77, 0.35),
    0 0 64px rgba(232, 95, 77, 0.18);
  filter: drop-shadow(0 0 14px rgba(232, 95, 77, 0.45));
}

.hero-h1 {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-sub {
  font-size: clamp(14px, 3vw, 16px);
  color: var(--text-2);
  margin-bottom: 22px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #ff7f69 0%, var(--accent-2) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    0 4px 12px rgba(180,60,40,0.30),
    0 12px 24px rgba(180,60,40,0.18);
  transition: transform 0.12s, box-shadow 0.12s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  color: #ffffff;
}
.hero-cta:active { transform: translateY(0); }

/* Info body */
.info { margin-bottom: 36px; }
.info section { margin-bottom: 28px; }
.info h2 {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 10px;
}
.info p, .info li {
  font-size: 15px;
  color: var(--text-2);
}
.info p { margin-bottom: 10px; }
.info ol {
  margin: 12px 0 14px;
  padding-left: 0;
  counter-reset: step;
}
.info ol li {
  position: relative;
  padding: 6px 0 6px 32px;
  margin-bottom: 4px;
}
.info ol li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 22px;
}
.info ul.bullet {
  margin: 12px 0 14px;
  padding-left: 16px;
}
.info ul.bullet li {
  list-style: disc;
  list-style-position: outside;
  padding-left: 4px;
  margin-bottom: 6px;
}
.info strong { color: var(--text); font-weight: 600; }
.info em { color: var(--accent); font-style: italic; }

/* FAQ */
.faq dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 12px;
}
.faq dd {
  color: var(--text-2);
  margin: 4px 0 0;
}

/* Related grid */
.related h2 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.preset-grid li { margin: 0; list-style: none; }
.preset-grid a {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.preset-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  color: var(--text);
  box-shadow: 0 4px 16px rgba(232, 95, 77, 0.10);
}
.preset-grid a small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  margin-top: 2px;
}

/* Footer */
.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--accent); }
.site-footer .sub {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-3);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
