/* ===================================================================
   Dice sub-pages — Tomato Hero aesthetic.
   Cream background + tomato gradient hero card with white text inside.
   =================================================================== */

: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.30);

  --tomato-from:  #ff6b4a;
  --tomato-to:    #e85f4d;
}

* { 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 (tomato gradient card) ============ */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(40px, 7vw, 64px) clamp(24px, 5vw, 48px);
  margin-bottom: 36px;
  background: linear-gradient(155deg, var(--tomato-from) 0%, var(--tomato-to) 100%);
  border: none;
  border-radius: 28px;
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 24px rgba(232, 95, 77, 0.22),
    0 32px 64px rgba(232, 95, 77, 0.14);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: 28px 28px 0 0;
}

.hero-eyebrow {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.hero-title {
  position: relative;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-size: clamp(32px, 7vw, 56px);
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.hero-sub {
  position: relative;
  font-size: clamp(14px, 3vw, 16px);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* Hero CTA — white pill, tomato text */
.hero-cta {
  position: relative;
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f5ede0 100%);
  color: var(--tomato-to);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(120, 80, 40, 0.10),
    0 4px 12px rgba(0, 0, 0, 0.10);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  color: var(--tomato-to);
  background: linear-gradient(180deg, #ffffff 0%, #faf2e6 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(120, 80, 40, 0.10),
    0 8px 20px rgba(0, 0, 0, 0.14);
}
.hero-cta:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 2px 4px rgba(120, 80, 40, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

/* ============ Info section ============ */
.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; }

/* ============ Related grid ============ */
.related h2 {
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}
.guide-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}
.guide-list li { margin: 0; list-style: none; }
.guide-list a {
  display: flex;
  flex-direction: column;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f9f3e7 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(60, 40, 10, 0.04);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.guide-list a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 6px 18px rgba(232, 95, 77, 0.12);
}
.guide-list 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 (max-width: 600px) {
  .guide-list { grid-template-columns: 1fr; }
}

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