/* Hearthvale's shared web skin. Palette and type follow UI/Theme/HearthvaleTheme.tres.
   Layout remains in style.css and content.css; original game emblems live in assets/ui/. */
:root {
  --bg:#111821;
  --bg-deep:#0b1017;
  --panel:#1b232d;
  --gold:#c69a61;
  --gold-light:#efd4a4;
  --gold-dark:#806140;
  --cream:#eee5d5;
  --muted:#adb7c1;
  --line:rgba(180,139,87,.31);
  --serif:Palatino,"Palatino Linotype","Book Antiqua",Georgia,serif;
  --sans:"Segoe UI","Helvetica Neue",Arial,sans-serif;
  --iron:#54616d;
  --bronze:#937047;
  --ember:#e4b373;
}
body { background:var(--bg); color:var(--cream); }
em { font-style:normal; color:var(--gold-light); }
h1,h2,h3 { font-family:var(--serif); letter-spacing:-.025em; }
.eyebrow,.section-label { letter-spacing:.12em; color:var(--gold); }
.section-label { gap:12px; }
.section-label>img { width:27px; height:31px; object-fit:contain; }
.section-label i { max-width:100px; background:linear-gradient(90deg,var(--bronze),transparent); }
::selection { background:#b98b52; color:#0b1017; }
:focus-visible { outline:2px solid #f1cc8e; outline-offset:5px; }

/* The camp's slate toolbar, with warm brass edges. */
.site-header {
  background:linear-gradient(180deg,rgba(11,16,23,.97),rgba(14,20,28,.91));
  border-bottom:1px solid var(--bronze);
  box-shadow:0 3px 0 rgba(5,9,14,.6),0 6px 22px rgba(0,0,0,.18);
}
.site-header.scrolled { background:#101720; border-bottom-color:#8c6c46; }
.brand { width:164px; }
.navigation { gap:30px; }
.navigation>a { color:#d4d9dd; font-size:13px; letter-spacing:.025em; }
.navigation>a:hover,.navigation>a:focus-visible { color:var(--gold-light); }
.navigation>a:after { background:var(--gold); height:2px; }
.nav-dot { background:var(--gold); }
.menu-toggle>span:not(.sr-only) { background:var(--gold-light); }

/* Buttons use the game's dark plates and inset edge, with no floating motion. */
.button {
  border:1px solid #786146;
  border-radius:4px;
  color:#f4e9d4;
  font-family:var(--serif);
  font-size:16px;
  font-weight:400;
  letter-spacing:.015em;
  min-height:54px;
  padding:14px 26px;
  gap:12px;
  background:linear-gradient(180deg,#26313c,#17212b);
  box-shadow:inset 0 1px 0 #b6bdc01c,inset 0 -3px 0 #05090d88,0 3px 8px #0004;
  transition:background-color .16s,border-color .16s,color .16s;
}
.button:before {
  content:""; position:absolute; inset:4px;
  border:1px solid #b58b503b; border-radius:2px; pointer-events:none;
}
.button:hover { transform:none; border-color:#cca46b; background:linear-gradient(180deg,#38404a,#202a35); color:#fff1d7; }
.button:active { transform:none; box-shadow:inset 0 2px 4px #0007; }
.button-gold {
  background:linear-gradient(180deg,#61452b,#3b2b1d 55%,#302319);
  border-color:#b38b53; color:#ffe4af;
  box-shadow:inset 0 1px 0 #f2d19a40,inset 0 -3px 0 #201810,0 4px 12px #0005;
}
.button-gold:before { border-color:#e8bc7c40; }
.button-gold:hover { background:linear-gradient(180deg,#795833,#4d3822); border-color:#e7bd7d; color:#fff0cb; }
.button-emblem { width:28px; height:28px; object-fit:contain; flex:0 0 28px; }
.button-outline { background:linear-gradient(180deg,#25313cdb,#121b25eb); border-color:#7b6a51; color:#e9ddc7; }
.button-small { min-height:43px; padding:9px 20px; font-size:14px; }
.button span { font-size:17px; }
.text-link { color:var(--gold-light); font-size:13px; }
.text-link:hover { color:#fff0d3; }
.text-link span { color:var(--gold); }
.hero-actions .button { min-height:58px; }
.hero-actions .button-outline { font-size:15px; }
.header-steam { white-space:nowrap; }

/* Keep the actual camp's blue mist and firelight in the main scene. */
.hero { background:#263342; }
.hero-shade {
  background:linear-gradient(90deg,rgba(8,14,23,.88),rgba(12,20,30,.57) 38%,rgba(9,17,27,.04) 78%),
    linear-gradient(0deg,var(--bg) 0%,rgba(17,24,33,.02) 38%,rgba(11,16,23,.14) 90%);
}
.hero .eyebrow { color:#e0c49b; letter-spacing:.12em; }
.hero h1 { font-family:var(--serif); letter-spacing:-.035em; line-height:1.09; }
.hero h1 em { color:#edcd97; font-style:normal; }
.hero-copy { color:#d0d7dd; font-size:16px; }
.platforms { color:#b9c4ce; font-size:9px; letter-spacing:.1em; }
.platform-divider { color:#8b9aa8; }
.status-dot { background:#d5ad73; box-shadow:0 0 0 2px #d5ad7326; }
.hero-update { border-top-color:#bd97615c; }
.hero-update small { color:#b9c5cf; letter-spacing:.1em; }
.hero-update strong { font-size:17px; }
.update-seal { width:28px; height:30px; object-fit:contain; opacity:.85; }
.scroll-cue { color:#bdc7cf; }
.scroll-line { background:linear-gradient(transparent,#c79a5f); }

/* Environments, journal and illustrations have different materials. */
.world { background:linear-gradient(180deg,#111821,#18222c); }
.intro-copy p { color:#b9c3cc; font-size:15px; }
.intro-copy p:first-child { color:#e1e3e3; font-size:17px; }
.world-image-wrap { border:1px solid #77644d; padding:5px; background:#0b1119; box-shadow:0 10px 28px #0004; }
.world-image-wrap:after { inset:5px; background:linear-gradient(transparent 65%,#080f18e6); }
.image-corner { border-color:#c19b64; }
.image-caption { color:#f0e5ce; }
.world-facts { padding-block:10px; }
.world-facts small { color:#b1bec9; font-size:12px; }
.world-facts strong { font-size:20px; }
img.fact-icon { width:44px; height:44px; object-fit:contain; min-width:44px; }
.adventure { background:#0d141d; border-block-color:#39414a; }
.section-heading>p { color:var(--muted); }
.adventure-tabs { border:0; gap:10px; margin-bottom:20px; }
.adventure-tab {
  background:linear-gradient(180deg,#202c38,#151e28);
  border:1px solid #4f5962; border-bottom:3px solid #303a43;
  border-radius:4px 4px 0 0; padding:13px 18px; gap:13px;
  color:#c0cbd4; font-size:21px;
  box-shadow:inset 0 1px 0 #a7bac418;
}
.adventure-tab>img { width:32px; height:32px; object-fit:contain; flex-shrink:0; }
.adventure-tab:after { display:none; }
.adventure-tab.active { background:linear-gradient(180deg,#3a3023,#231f1b); border-color:#aa8653; border-bottom-color:#d0a36a; color:#f1d6a7; }
.adventure-tab:hover { color:#ffe9bf; border-color:#ad8c5c; }
.tab-arrow { margin-right:0; }
.adventure-panel { background:#19222d; border-color:#5c5b54; box-shadow:0 10px 28px #0003; }
.adventure-story { padding:36px 40px; }
img.story-symbol { width:42px; height:42px; object-fit:contain; }
.adventure-story h3 { font-size:36px; }
.adventure-story>p:last-of-type,.adventure-story ul { color:#c4ced5; }
.adventure-story li { border-color:#3b4550; }
.adventure-photo:after { background:linear-gradient(transparent,#101720df); }
.interlude-shade { background:linear-gradient(#1018219c,#0e162371,#111821eb); }
.interlude-content>span:last-child { color:#c3cdd5; }
img.ornament { width:48px; height:52px; object-fit:contain; margin:0 auto 22px; }
.gallery { background:#141e28; }
.gallery-item { border:1px solid #6f6251; border-radius:2px; background:#101821; }
.gallery-item:before { content:""; position:absolute; inset:5px; border:1px solid #c49a5c40; z-index:2; pointer-events:none; }
.gallery-item:after { background:linear-gradient(transparent,#07111dee); }
.gallery-item:hover>img { transform:scale(1.015); }
.gallery-caption small { color:#e6c79a; letter-spacing:.1em; }
.gallery-caption i { background:#18232cd9; border-color:#9b7d51; color:#efcf9a; border-radius:3px; }
.gallery-footnote { color:#b1bdc7; }
.journal { background:#1a1c20; border-block-color:#4e4538; }
.update-article { border-color:#886d444d; }
.update-image { background:#111821; border:1px solid #786249; border-radius:3px; }
.update-image:after { background:linear-gradient(transparent,#10131bf2); }
.update-image>span { color:#ebc995; }
.article-meta { color:#bbc4ca; letter-spacing:.08em; }
.article-tag { color:#efce94; background:#392d1f; border-color:#927348; border-radius:2px; }
.update-body>p,.update-highlights { color:#c2cbd1; }
.patch-link { color:var(--gold-light); border-color:#997b50; }
.faq { background:#111a24; }
summary { color:#e2e2dc; padding-inline:14px; font-size:15px; }
summary:hover { background:#b58b500a; color:var(--gold-light); }
details[open] { background:#1b2630; border-left:2px solid #b58b50; }
details>p { color:#c0cbd3; padding:0 20px 22px 14px; }
.contact-section { background:#101720; border-color:#574b3c; }
.contact-grid { gap:0; }
.contact-grid article,.reading .contact-grid article { background:transparent; border:0; border-left:1px solid #8a6c444d; padding:22px 30px; }
.contact-grid article:first-child { padding-left:0; border-left:0; }
.contact-grid h3 { color:#e7d2ad; font-size:27px; }
.contact-grid p { color:#b9c4cd; }
.contact-grid a { color:#e5be82; }
.contact-email { color:#e6c493; }
.join { background:#10161f; border-color:#675238; }
.join-glow { background:radial-gradient(ellipse at center,#8b572227,transparent 66%); }
.join h2 em { color:#e7c592; }
.join-platforms { color:#b8c2ca; letter-spacing:.12em; }
.footer { background:#0a1017; border-color:#5a4933; }
.footer-content p,.footer-content p strong { color:#b7c1c9; }
.footer-links { color:#dac49f; }
.footer-links a:hover { color:#fff0d3; text-decoration:underline; text-underline-offset:5px; }

/* Articles and the English pages share the same game identity. */
.page-body { background:linear-gradient(140deg,#1a2530 0,#111821 55%,#0f151c 100%); }
.page-body .content-main { background:transparent; }
.content-main h1 { letter-spacing:-.03em; line-height:1.15; }
.page-intro { color:#c2cdd6; }
.page-cover { border:5px solid #0c131c; outline:1px solid #866d4c; box-shadow:0 12px 24px #0004; }
.reading h2 { color:#ecd8b5; font-size:34px; }
.reading h3 { color:#e4bf86; }
.reading p,.reading li { color:#c3ccd4; }
.reading a { color:#e6be83; text-decoration-thickness:1px; }
.reading .button { color:#ffe4af; }
.reading .button:hover { color:#fff0cb; }
.content-note { color:#a7b4bf!important; }
.facts-list { border-color:#715d414d; }
.facts-list>div { border-color:#715d414d; }
.facts-list dt { color:#e0b87d; }
.facts-list dd { color:#cbd3d9; }

/* Gallery and patch-note windows keep the same bronze/iron frame. */
dialog { background:#111a24; border:1px solid #b28b53; border-radius:4px; box-shadow:0 0 0 4px #0a111acc,0 22px 80px #000b; }
dialog::backdrop { background:#040a13ed; backdrop-filter:none; }
.icon-button { background:linear-gradient(#2c3742,#17212c); border-color:#8d734c; border-radius:3px; color:#f2d7a5; }
.icon-button:hover { background:#3a3630; border-color:#e4bb7b; }
.lightbox-image-wrap { background:#080e16; }
.lightbox-top,.lightbox-bottom,.patch-header { background:#16212c; }
.lightbox-top,.patch-header { border-color:#886c44; }
.patch-content .patch-intro,.patch-content ul { color:#c4cdd4; }
.save-notice { border-color:#ac844557; background:#75501e19; }
.save-notice p { color:#d2d6d6; }
.noscript-note { background:#2d2a23; color:#ecddc4; }

@media(min-width:781px) {
  .hero { min-height:740px; height:max(740px,100svh); }
  .hero-content { padding-top:84px; padding-bottom:90px; }
}
@media(max-width:1100px) {
  .brand { width:140px; }
  .navigation { gap:20px; }
  .navigation>a { font-size:12px; }
  .button-small { font-size:13px; padding-inline:16px; }
  .adventure-story { padding:30px; }
}
@media(max-width:780px) {
  .site-header { box-shadow:0 3px 0 #05090d77; }
  .brand { width:126px; }
  .navigation { background:#111b27; border-bottom:2px solid #8c6b41; gap:0; }
  .navigation a { font-family:var(--serif); font-size:21px; padding:16px 28px; }
  .navigation a+a { border-top:1px solid #79828a24; }
  .button-small { min-height:40px; font-size:12px; padding:9px 14px; }
  .hero h1 { font-size:clamp(43px,8.7vw,62px); }
  .hero-copy { font-size:15px; }
  .hero-actions { flex-wrap:wrap; gap:14px; }
  .hero-actions .button { min-height:52px; padding:13px 20px; font-size:15px; }
  .hero-actions .button-emblem { width:25px; height:25px; flex-basis:25px; }
  .hero-actions .button-outline { font-size:14px; }
  .platforms { font-size:8px; letter-spacing:.06em; }
  .hero-update strong { font-size:16px; }
  .intro-copy p { font-size:15px; }
  .world-facts strong { font-size:19px; }
  .adventure-tabs { gap:5px; }
  .adventure-tab { flex-direction:column; justify-content:center; text-align:center; padding:12px 5px; gap:7px; font-size:17px; }
  .adventure-tab>img { width:28px; height:28px; }
  .tab-arrow { display:none; }
  .adventure-story { padding:28px; }
  .adventure-story h3 { font-size:32px; }
  .contact-grid article,.reading .contact-grid article { border-left:0; border-top:1px solid #8a6c444d; padding:24px 0; }
  .contact-grid article:first-child { border-top:0; }
  .reading h2 { font-size:29px; }
  .content-main h1 { font-size:43px; }
}
@media(max-width:420px) {
  .hero-actions { align-items:flex-start; flex-direction:column; }
  .hero-actions .button { width:auto; min-height:50px; font-size:15px!important; padding:12px 20px; }
  .hero-actions .button-outline { min-height:43px; font-size:14px!important; padding:10px 18px; }
  .hero .eyebrow { font-size:8px; letter-spacing:.08em; }
  .hero-copy { font-size:14px; line-height:1.75; }
  .hero h1 { font-size:43px; }
  .brand { width:117px; }
  .button-small { font-size:11px; padding-inline:12px; }
  .content-main h1 { font-size:39px; }
}
@media(prefers-reduced-motion:reduce) {
  .button,.gallery-item>img { transition:none; }
}
