/* Quote Of Day — official site, 2026 rewrite
   Concept: the site IS a day-sign. Date as layout,
   vertical quote, seal-red 宜/忌. Flat, square, one accent. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/bodoni-moda-v28-latin_latin-ext-500.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/bodoni-moda-v28-latin_latin-ext-600.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/bodoni-moda-v28-latin_latin-ext-700.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/literata-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/literata-v40-latin_latin-ext-600.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/literata-v40-latin_latin-ext-700.woff2") format("woff2");
}

/* ---------- tokens ---------- */
:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --seal: #b3402a;            /* 宜/忌 seal red, the only accent */
  --font-display: "Bodoni Moda", "Songti SC", "STSongti-SC", "STSong", serif;
  --font-body: "Literata", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --wrap: 1080px;
}

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* bilingual copy: one of the pair is always hidden */
html[data-language="zh"] .en { display: none; }
html[data-language="en"] .zh { display: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.brand-icon { width: 28px; height: 28px; border-radius: 6px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.nav-links { display: flex; gap: 24px; }

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 16px; }

.language-switch {
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
}

/* ---------- CTA ---------- */
.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}
.cta:hover { opacity: 0.85; }
.cta[aria-disabled="true"] { cursor: default; opacity: 0.55; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
}

.kicker {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 34em;
  margin-bottom: 36px;
}

/* day-sign card */
.sign {
  border: 1px solid var(--ink);
  padding: 28px 28px 24px;
  max-width: 460px;
  margin-bottom: 36px;
}

.sign-date {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}
.sign-yearmonth { display: flex; gap: 6px; }
.sign-day {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.sign-weekday { margin-left: auto; }

.sign-quote-wrap { margin-bottom: 20px; }

.sign-quote {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 10px;
}

.sign-source {
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

.sign-yiji {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.sign-yiji b {
  display: inline-block;
  color: var(--paper);
  background: var(--seal);
  font-weight: 600;
  font-size: 12px;
  line-height: 1;
  padding: 3px 6px;
  margin-right: 10px;
}
.sign-yiji span { color: var(--ink); }

.hero-cta-row { display: flex; gap: 16px; }

/* widgets fan — like cards held in a hand */
.hero-widgets {
  display: grid;
  justify-items: center;
  align-items: end;
  padding: 48px 0 16px;
}

.widget-shot {
  grid-area: 1 / 1;
  transform-origin: 50% 115%;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.16));
}
.widget-shot img { width: 100%; }

/* natural widget proportions: small 1x1, medium 2x1, large 2x2 — one shared scale */
.w-small  { width: min(32%, 165px); transform: rotate(-14deg); z-index: 3; }
.w-medium { width: min(62%, 330px); transform: translateY(-10%) rotate(-2deg); z-index: 2; }
.w-large  { width: min(62%, 330px); transform: rotate(14deg); z-index: 1; }

/* ---------- sections ---------- */
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  max-width: 40em;
  margin-bottom: 40px;
}

/* app screenshots */
.app { padding: 72px 0; border-top: 1px solid var(--line); }

.app-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.phone {
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.phone img { width: 100%; }

/* pricing */
.pricing { padding: 72px 0; border-top: 1px solid var(--line); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  margin-bottom: 24px;
}

.plan {
  border: 1px solid var(--ink);
  padding: 32px;
}
.plan-plus { border-width: 2px; }

.plan h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.plan ul { list-style: none; display: grid; gap: 10px; }

.plan li { font-size: 15px; }
.plan li::before { content: "— "; color: var(--muted); }

.plan-prices {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.plan-price-row dt { color: var(--muted); }

.plan-price-row dd {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price-row .price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.plan-price-row .price-note {
  color: var(--muted);
  font-size: 12px;
}

.pricing-note {
  color: var(--muted);
  font-size: 13px;
  max-width: 46em;
}

/* support */
.support { padding: 72px 0 96px; border-top: 1px solid var(--line); }
.support .section-sub { margin-bottom: 0; }
.support a { color: var(--ink); }

/* footer */
.footer { border-top: 1px solid var(--ink); padding: 28px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.footer-links { display: flex; gap: 20px; margin-right: auto; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

.cta-footer { font-size: 12px; padding: 8px 16px; }

.icp { text-decoration: none; color: var(--muted); }
.icp:hover { color: var(--ink); }

/* ---------- subpages (privacy / terms / support / 404) ---------- */
.page { padding: 64px 24px 96px; max-width: 720px; }

.page-back { margin-bottom: 32px; font-size: 14px; }
.page-back a { text-decoration: none; color: var(--muted); }
.page-back a:hover { color: var(--ink); }

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 8px;
}

.page-updated { color: var(--muted); font-size: 13px; margin-bottom: 40px; }

.page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.page h3 { font-size: 16px; font-weight: 600; margin: 24px 0 8px; }

.page p { margin-bottom: 14px; }
.page a { color: var(--ink); }

.page ul { list-style: none; display: grid; gap: 10px; margin-bottom: 14px; }
.page ul li::before { content: "— "; color: var(--muted); }

.nav-tagline { font-size: 13px; color: var(--muted); letter-spacing: 0.14em; }

.page-404 { padding-top: 96px; text-align: center; max-width: 560px; }

.code-404 {
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
}

.page-404 .section-sub { margin: 0 auto 32px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-widgets { order: 2; }
  .app-shots { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 480px) {
  .app-shots { grid-template-columns: 1fr; }
  .sign { padding: 20px; }
  .brand-name { font-size: 16px; }
}

 