@font-face {
  font-family:"Old Standard TT";
  font-style:normal;
  font-weight:400;
  font-display:swap;
  src:url("assets/fonts/old-standard-regular.ttf") format("truetype");
}
@font-face {
  font-family:"Old Standard TT";
  font-style:normal;
  font-weight:700;
  font-display:swap;
  src:url("assets/fonts/old-standard-bold.ttf") format("truetype");
}
@font-face {
  font-family:"Caveat";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("assets/fonts/caveat.ttf") format("truetype");
}
:root { color-scheme: dark; --ink:#e7e1d3; --muted:#c3c2b7; --line:#57574a; --serif:"Times New Roman",Georgia,serif; }
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:84px; }
body { margin:0; background:#171b19; color:var(--ink); font:1rem/1.65 var(--serif); }
h1,h2,h3,p,figure { margin:0; }
h1,h2,h3 { font-weight:400; text-wrap:balance; line-height:1.15; }
h2 { font-size:clamp(2rem,3.5vw,3.4rem); }
h3 { font-size:1.6rem; }
h2 em { font-style:normal; }
a { color:inherit; text-underline-offset:4px; }
svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.5; }
[hidden],.symbols { display:none!important; }
:focus-visible { outline:2px solid #ebcba0; outline-offset:5px; }
.wrap { width:min(1180px,calc(100% - 64px)); margin-inline:auto; }
.skip { position:fixed; z-index:20; top:8px; left:8px; padding:8px; background:#171b19; transform:translateY(-150%); }
.skip:focus { transform:none; }
.site-header {
  position:sticky;
  top:0;
  z-index:5;
  background:
    radial-gradient(ellipse at 18% 0%,#67372c36,transparent 51%),
    linear-gradient(180deg,#1c201bef,#111612f7),
    url("assets/tavern-board.jpg") center 48% / cover #141814;
  border-bottom:1px solid #4a3b2f;
}
.site-header::after {
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:1px;
  pointer-events:none;
  background:linear-gradient(90deg,transparent 3%,#a852466e 17%,#7f43363e 35%,transparent 70%);
}
.header-row { min-height:60px; display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand { display:flex; align-items:center; gap:9px; text-decoration:none; font-size:1.15rem; letter-spacing:.025em; white-space:nowrap; }
.brand-red { color:#d65049; }
.logo-icon { width:44px; height:44px; object-fit:contain; filter:drop-shadow(0 0 8px #9b433c4a); }
nav { display:flex; gap:32px; align-items:center; }
nav a { position:relative; text-decoration:none; padding-block:12px; }
nav a::after {
  content:"";
  position:absolute;
  inset:auto 0 5px;
  height:1px;
  background:linear-gradient(90deg,transparent,#cd7664,transparent);
  opacity:0;
  transition:opacity .18s ease;
}
nav a:is(:hover,:focus-visible) { color:#e4b89a; }
nav a:is(:hover,:focus-visible)::after { opacity:1; }
main {
  --scene-fade:clamp(200px, 23vw, 300px);
  --forest-overlap:clamp(90px, 12vw, 150px);
  isolation:isolate;
  overflow:clip;
  background:
    linear-gradient(180deg,#171b19e8,#252018db 38%,#171a14d9 73%,#12150f 100%),
    url("assets/storyteller/paper.webp") center top / max(100%, 650px) auto repeat-y,
    url("assets/storyteller/wood.webp") center top / max(100%, 840px) auto repeat-y #242017;
  background-blend-mode:normal,soft-light,normal;
}
.hero { position:relative; min-height:470px; isolation:isolate; }
.hero-art { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; z-index:-2; }
.hero::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(#10161420,#11171405 58%,#171b19);
}
@supports (mask-image:linear-gradient(#000, transparent)) {
  .hero-art {
    height:calc(100% + var(--forest-overlap));
    mask-image:linear-gradient(to bottom,#000 calc(100% - var(--scene-fade)),#000b calc(100% - var(--scene-fade) * .62),#0003 calc(100% - var(--scene-fade) * .27),transparent);
  }
  .hero::after {
    bottom:calc(-1 * var(--forest-overlap));
    background:linear-gradient(#10161429,#1117140d 50%,#151b1666 75%,transparent);
  }
}
.hero-inner { text-align:center; padding-block:90px 166px; }
.hero-kicker { display:flex; gap:16px; align-items:center; justify-content:center; font-size:1.1rem; text-shadow:0 2px 7px #000; }
.hero-kicker::before,.hero-kicker::after { content:""; width:46px; height:1px; background:#c5c0ae; }
.hero h1 { font-size:clamp(3.2rem,7.2vw,7rem); letter-spacing:-.035em; line-height:1.1; text-shadow:0 3px 8px #000c; margin-top:12px; }
.hero h1::after { content:""; display:block; height:3px; width:270px; max-width:65%; margin:20px auto 28px; background:linear-gradient(90deg,transparent,#c5c0ae,transparent); }
.button { display:inline-flex; align-items:center; justify-content:center; min-height:46px; padding:9px 24px; text-decoration:none; border:1px solid #bab9a4; font-size:1.05rem; transition:background .2s; }
.primary { background:linear-gradient(#6f261d,#3e1310); border-color:#a36c4e; box-shadow:inset 0 0 0 2px #31150e60,0 3px 6px #0005; color:#f5e8d7; }
.primary:hover { background:#823b29; }
.header-discord {
  min-height:32px;
  padding:4px 10px;
  border-color:#a58f7359;
  background:transparent;
  box-shadow:none;
  color:#d7c9b4;
  font-size:.85rem;
  white-space:nowrap;
}
.header-discord:hover { background:#a58f731a; border-color:#a58f73; }
.secondary { background:#1b242357; box-shadow:0 3px 7px #0004; }
.secondary:hover { background:#384038; }


.noticeboard { position:relative; z-index:2; margin-top:-88px; padding-bottom:32px; }
.noticeboard::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:-45px 0 auto;
  height:var(--scene-fade);
  pointer-events:none;
  background:
    radial-gradient(ellipse 48% 45% at 78% 52%,#a4aa9033,transparent),
    radial-gradient(ellipse 52% 42% at 15% 45%,#838d762b,transparent);
}
.noticeboard > .wrap {
  position:relative;
  isolation:isolate;
  padding:clamp(25px,4vw,58px) clamp(18px,5.4vw,80px) clamp(28px,5vw,70px);
}
.noticeboard h2 {
  margin:0 0 clamp(22px,2.8vw,38px);
  padding:clamp(15px,2vw,28px) 12px;
  text-align:center;
  font:400 clamp(1.8rem,3.2vw,3rem)/1.1 "Times New Roman",serif;
  color:#e9e1d0;
  text-shadow:0 3px 4px #000;
}
.notice-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(15px,3vw,40px);
}
.notice-paper {
  position:relative;
  isolation:isolate;
  aspect-ratio:450 / 550;
  min-height:275px;
  padding:clamp(36px,4.6vw,70px) clamp(22px,2.6vw,40px) 48px;
  color:#322319;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:clamp(19px,2.8vw,38px);
  min-width:0;
  font-family:"Caveat","Old Standard TT",serif;
  filter:drop-shadow(3px 7px 4px #100a05ac);
}
.notice-art {
  position:absolute;
  z-index:-1;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  pointer-events:none;
}
.notice-paper a { color:inherit; text-underline-offset:.15em; }
.notice-paper h3 { font-size:clamp(1.85rem,2.7vw,2.5rem); font-weight:700; }
.notice-paper p { font-size:1.5rem; line-height:1.16; font-weight:700; color:#2b1c12; }
@media (max-width:900px) {
  .header-row { gap:14px; }
  nav { gap:18px; }
  .brand { font-size:1.2rem; }



}
@media (max-width:680px) {
  html { scroll-padding-top:88px; }
  main { --scene-fade:190px; --forest-overlap:100px; }
  .wrap { width:calc(100% - 32px); }
  .header-row { display:grid; grid-template-columns:minmax(0,1fr) auto; padding-top:5px; gap:0 8px; }
  .header-row nav { grid-area:2 / 1 / 3 / -1; }
  .header-row .header-discord { grid-area:1 / 2; padding-inline:8px; }
  .logo-icon { height:32px; width:32px; }
  nav { width:100%; justify-content:center; gap:22px; font-size:.95rem; }
  nav a { padding-block:7px 9px; }
  .hero { min-height:335px; }
  .hero-inner { padding-block:54px 139px; }
  .hero-art { object-position:55% center; }
  .hero h1 { font-size:clamp(2.65rem,9.5vw,4rem); }
  .hero-kicker { font-size:.95rem; gap:10px; }
  .hero-kicker::before,.hero-kicker::after { width:20px; }
  .button { padding-inline:16px; font-size:1rem; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } * { animation:none!important; transition:none!important; } }

@media (min-width:1001px) {
  .noticeboard > .wrap {
    aspect-ratio:1536 / 880;
    padding:0;
    background:url("assets/notice-board-empty.jpg") center / 100% 100% no-repeat;
  }
  .noticeboard h2 { position:absolute; inset:7% 8% auto; margin:0; padding:0; }
  .notice-grid { position:absolute; inset:0; display:block; }
  .notice-paper {
    position:absolute;
    aspect-ratio:auto;
    min-height:0;
    padding:clamp(35px,5.2vw,77px) clamp(20px,3vw,44px);
    filter:none;
  }
  .notice-featured { inset:22.168% 65.169% 10.645% 5.859%; }
  .notice-blank { inset:22.168% 35.482% 10.449% 35.612%; }
  .notice-launcher { inset:21.973% 5.208% 10.645% 65.430%; }
}

@media (max-width:1000px) {
  .notice-grid { grid-template-columns:1fr; gap:22px; max-width:400px; margin:auto; }
  .notice-paper { aspect-ratio:450 / 515; padding:clamp(42px,9vw,66px) clamp(28px,8vw,42px) 60px; min-height:300px; }
  .notice-paper h3 { font-size:2.1rem; }
}
@media (max-width:680px) {
  .noticeboard { margin-top:-48px; }
  .noticeboard h2 { font-size:1.8rem; }
}

.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.site-colophon { background:#12150f; color:#c3c2b7; font-size:.875rem; padding-block:22px; }
.site-colophon > .wrap { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; }
.site-colophon a:hover { color:#dbb28c; }
.back-to-top {
  position:fixed;
  right:max(16px,env(safe-area-inset-right));
  bottom:max(16px,env(safe-area-inset-bottom));
  z-index:6;
  display:grid;
  place-items:center;
  width:48px;
  height:48px;
  border:1px solid #9a6f56;
  border-radius:50%;
  background:#262017;
  color:#f3e3c7;
  box-shadow:0 4px 12px #0007;
}
.back-to-top:hover { background:#582e24; }
.back-to-top svg { width:24px; height:24px; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
