/* W17-07 · Carved Chronicle. Shared, local-only brand presentation.
   Palette: DNG_FARBDESIGN v0.1 + visual decision 2026-10-17.
   Existing page/content contracts are retained; no external fonts or resources. */
:root {
  --dng-bg: #121510;
  --dng-surface: #1d211c;
  --dng-raised: #292e29;
  --dng-text: #f4eedc;
  --dng-muted: #d8cfb7;
  --dng-parchment: #e8dfc8;
  --dng-ink: #24231e;
  --dng-ink-muted: #666154;
  --dng-primary: #507433;
  /* Nominal #5d853e fails AA with normal light text; use darker forest. */
  --dng-primary-hover: #425f2b;
  --dng-primary-active: #425f2b;
  --dng-secondary: #1c4370;
  --dng-secondary-hover: #285784;
  --dng-secondary-active: #153552;
  --dng-gold: #c49a4a;
  --dng-focus: #d2af68;
  --dng-border: #5f604f;
  --dng-serif: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --dng-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --night: var(--dng-bg);
  --moss: var(--dng-primary);
  --forest: var(--dng-primary-hover);
}
body { background: var(--dng-bg); color: var(--dng-text); font-family: var(--dng-sans); }
h1, h2, h3 { font-family: var(--dng-serif); }
a, button, input, textarea { -webkit-tap-highlight-color: #d2af6833; }
:focus-visible { outline: 3px solid var(--dng-focus); outline-offset: 5px; }
.skip-link { min-height: 44px; }
.brand { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; }
.brand-mark { display: block; flex: none; width: 3.75rem; height: auto; aspect-ratio: 6 / 5; object-fit: contain; }
.brand-caption { display: block; max-width: 11rem; padding-left: 1rem; border-left: 1px solid var(--dng-border); font: .65rem/1.6 var(--dng-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--dng-muted); }
.site-header { position: relative; inset: auto; padding-block: 1.15rem; gap: 1rem 2rem; border-bottom: 1px solid #5f604f70; }
.site-header nav a { min-width: 44px; font-size: .8rem; }
.site-header a:hover { color: var(--dng-text); }
.site-footer { padding-block: 2.75rem; border-top: 1px solid #5f604f70; }
.site-footer .brand-mark { width: 3.25rem; }
.site-footer a { min-width: 44px; min-height: 44px; }
.footer-brand { display: flex; align-items: center; gap: 1.2rem; }
.footer-brand p { margin: 0; color: var(--dng-muted); font-size: .75rem; }
.brand-button, .action { display: inline-flex; justify-content: center; align-items: center; gap: 1rem; min-height: 48px; padding: .8rem 1.4rem; border: 1px solid var(--dng-primary); border-radius: 2px; background: var(--dng-primary); color: var(--dng-text); font: 500 .9rem/1.5 var(--dng-sans); text-decoration: none; text-align: center; }
.brand-button:hover, .action:hover { background: var(--dng-primary-hover); color: var(--dng-text); border-color: var(--dng-focus); }
.brand-button:active, .action:active { background: var(--dng-primary-active); }
.home-page .hero { min-height: 0; min-height: calc(100svh - 6.2rem); overflow: visible; }
.hero-content { padding-block: 2.1rem 3.5rem; }
.hero-intro { margin: 0 auto 1.25rem; font-size: .68rem; letter-spacing: .2em; }
.hero-emblem { display: block; width: clamp(19rem, 34vw, 30rem); max-width: 100%; margin: 0 auto 1.4rem; }
.hero-emblem img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.hero-landscape { opacity: .72; animation: none; background-position: center, center 62%; }
.hero-mist { background: radial-gradient(ellipse at 50% 34%, #12151080, #12151030 50%, #121510c9 85%), linear-gradient(0deg, #121510, #121510c9 22%, transparent 65%); }
.home-page h1 { max-width: 44rem; font-size: clamp(1.65rem, 2.7vw, 2.7rem); line-height: 1.16; letter-spacing: -.025em; text-wrap: balance; }
.home-page .title-first, .home-page .title-bridge, .home-page .title-last { display: inline; width: auto; margin: 0; font-size: 1em; font-style: normal; letter-spacing: inherit; color: inherit; }
.hero-description { max-width: 30rem; margin: 1rem auto 0; color: var(--dng-muted); font-size: .88rem; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.65rem; }
.hero-actions .explore { display: inline-flex; flex-direction: row; gap: .8rem; margin: 0; padding: .8rem 1.3rem; min-height: 48px; border: 1px solid var(--dng-border); border-radius: 2px; background: var(--dng-bg); color: var(--dng-text); font: 400 .85rem/1.5 var(--dng-sans); letter-spacing: 0; }
.hero-actions .explore:hover { border-color: var(--dng-focus); background: var(--dng-surface); }
.down-stroke { font-size: 1.25rem; }
.hero-foot { position: static; padding-block: 0 1.75rem; }
.home-page .game { background: var(--dng-parchment); }
.home-page .game h2 { letter-spacing: -.04em; }
.home-page .world, .home-page .journey { border-top: 1px solid #5f604f40; }
.home-page .contact-link { background: var(--dng-secondary); }
.home-page .contact-link:hover { background: var(--dng-secondary-hover); }
.home-page .contact-link:active { background: var(--dng-secondary-active); }
.updates .brand-button { margin-top: 1.5rem; }
.document-page .shell { width: min(100% - 4rem, 72rem); }
.document-page main { padding-block: clamp(2.75rem, 6vw, 5rem); }
.document-page .reading { max-width: 48rem; margin-inline: auto; }
.document-page h1 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); letter-spacing: -.035em; }
.document-page h2 { line-height: 1.3; }
.document-page .site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 3rem; }
.document-page .site-footer .footer-brand { order: -1; }
.document-page .notice, .document-page .status { border-color: var(--dng-border); border-left: 3px solid var(--dng-gold); }
.document-page .contact-form, .document-page .waitlist-form { border: 1px solid var(--dng-border); border-top: 2px solid var(--dng-gold); border-radius: 2px; }
.field input, .field textarea { border-radius: 2px; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--dng-focus); }
/* Native validation supplies the localized text. No synthetic success or send state. */
.field input:user-invalid, .field textarea:user-invalid { border-width: 2px; border-style: dashed; }
.consent-label { min-height: 44px; padding-block: .5rem; }
.consent-label input { accent-color: var(--dng-primary); }
/* Reflow also when users enlarge text independently of the viewport. */
.home-page { overflow-wrap: anywhere; }
.world-layout > *, .game-layout > *, .journey-intro > *,
.journey-list li > *, .invitation-layout > * { min-width: 0; }
.section-topline { flex-wrap: wrap; }
.home-page .contact-link { max-width: 100%; gap: 1rem; }
.footer-brand { max-width: 100%; }
.footer-brand p { min-width: 0; }
@media (max-height: 50rem) and (min-width: 42.01rem) {
  .hero-emblem { width: min(34vw, 23rem); }
  .hero-content { padding-block: 1.5rem 2rem; }
  .hero-intro { margin-bottom: .75rem; }
  .hero-foot { padding-bottom: 1rem; }
}
@media (max-width: 64rem) {
  .brand-caption { display: none; }
  .site-header { gap: 1rem 1.5rem; }
}
@media (max-width: 42rem) {
  .site-header { padding-block: .75rem; gap: .5rem 1rem; }
  .brand-mark { width: 3.25rem; }
  .home-page .main-nav { gap: .5rem; }
  .home-page .hero { min-height: 0; }
  .hero-content { padding-block: 1.75rem 2rem; }
  .hero-intro { max-width: 22rem; font-size: .63rem; line-height: 1.8; }
  .hero-emblem { width: min(78vw, 22rem); margin-bottom: 1.25rem; }
  .hero-description { max-width: 18rem; font-size: .82rem; line-height: 1.7; }
  .hero-actions { max-width: 22rem; margin: 1.4rem auto 0; gap: .75rem; }
  .hero-actions > a { width: 100%; }
  .hero-foot { font-size: .58rem; padding-bottom: 1.5rem; }
  .document-page .shell { width: calc(100% - 2.5rem); }
  .document-page .site-header { align-items: center; }
  .document-page .site-header nav { width: auto; margin-left: auto; }
  .document-page nav ul { gap: .25rem 1rem; }
  .document-page .site-header .brand-caption { display: none; }
  .footer-brand { gap: 1rem; }
}
@media (max-width: 30rem) {
  .document-page .site-header nav { width: 100%; margin-left: 0; border-top: 1px solid #5f604f70; }
  .document-page .site-header .brand-caption { display: block; max-width: 12rem; }
  .document-page .site-header nav ul { justify-content: space-between; }
  .home-page .footer-brand { align-items: flex-start; }
}
@media (max-width: 23rem) {
  .home-page .main-nav { grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); }
  .home-page .header-social { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .brand-button, .action, .explore { border: 1px solid ButtonText; }
}

/* W17-07-T3: approved H1-A hierarchy; public source uses local serif fallback. */
.home-page .hero-headline {
  max-width: 30ch;
  font-family: var(--dng-serif);
  font-size: clamp(1.75rem, 2.7vw, 2.7rem);
  line-height: 1.16;
  text-wrap: balance;
}
.hero-product-name {
  margin: .8rem auto 0;
  max-width: 36rem;
  color: var(--dng-muted);
  font: 400 1rem/1.55 var(--dng-sans);
  letter-spacing: .025em;
  text-wrap: balance;
}
.hero-product-name + .hero-description { margin-top: .35rem; }
.chapter-heading { min-width: 0; }
.home-page #world-title, .home-page #game-title, .home-page #journey-title {
  font-family: var(--dng-chapter-font, Georgia, "Times New Roman", serif);
  font-weight: 400;
  font-style: normal;
  font-synthesis: none;
  line-height: 1.24;
  letter-spacing: .02em;
}
.home-page #game-title em { font-style: normal; }
