/* Short Straw Media — site styles
   Brand palette (from the logo): ink black, cream, straw gold.
   Everything stays inside these three; the series are bound in black cloth stamped in gold.
   Type: Anton for the wordmark and headings, Space Mono for the spaced "MEDIA" tags,
   Libre Caslon Text for reading and the italic voice. */


@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Mono"; src: url("../fonts/space-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --walnut: #12110f;      /* ink black from the logo */
  --walnut-2: #1c1a17;
  --rule: #3a352d;
  --parchment: #f1ecdf;   /* cream from the logo */
  --faded: #a9a192;
  --brass: #c9a443;
  --brass-bright: #e8bf4e; /* straw gold from the logo */
  --cloth: #1d1b17;        /* black book cloth, a step up from the page */
  --cloth-deep: #151411;

  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --serif: "Libre Caslon Text", "Iowan Old Style", Georgia, serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --body: var(--serif);

  --measure: 34rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--walnut);
  /* faint paper grain + lamp-lit vignette */
  background-image:
    radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, 0.55), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.75 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--parchment);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  font-weight: 400;
}

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

a {
  color: var(--brass-bright);
  text-decoration-color: rgba(232, 191, 78, 0.4);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--brass-bright);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--parchment); color: var(--walnut);
  padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-transform: uppercase;
  letter-spacing: .01em;
}

/* ---------- Brand mark (built in code so it stays crisp) ---------- */
.straws { display: block; color: var(--parchment); }
.straws .short { fill: var(--brass-bright); }
.media-bar {
  display: block;
  background: var(--brass-bright);
  color: var(--walnut);
  font-family: var(--mono);
  font-weight: 700;
  text-align: center;
  letter-spacing: .5em;
  padding-left: .5em; /* balances the trailing letter-space */
}

p { margin: 0 0 1.1em; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  color: var(--parchment);
  text-decoration: none;
}
.brand .straws { width: 30px; height: 26px; }
.brand-word { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-word b {
  font-family: var(--display); font-weight: 400;
  font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase;
}
.brand-word .media-bar { font-size: .5rem; padding-top: .2em; padding-bottom: .2em; margin-top: .2rem; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .25rem 1.5rem;
}
.site-nav a {
  color: var(--faded);
  text-decoration: none;
  font-size: .98rem;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--parchment); }
.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--brass-bright);
}

/* ---------- Title page (home hero): the brand card, full size ---------- */
.title-page {
  padding: clamp(3.5rem, 10vw, 7.5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.title-page .card { max-width: 46rem; margin: 0 auto; }
.title-page .straws { width: clamp(9rem, 30vw, 15rem); height: auto; margin-bottom: clamp(2rem, 6vw, 3.5rem); }
.title-page h1 {
  font-size: clamp(3.4rem, 13.5vw, 8.75rem);
  line-height: .9;
  margin: 0;
  letter-spacing: 0;
  white-space: nowrap;
}
.title-page .media-bar {
  font-size: clamp(.95rem, 2.6vw, 1.6rem);
  padding-top: .35em; padding-bottom: .35em;
  margin-top: clamp(.5rem, 1.5vw, .9rem);
}
.title-page .lede {
  font-style: italic;
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  line-height: 1.25;
  margin: clamp(1.75rem, 5vw, 2.75rem) 0 0;
}
.title-page .lede span { display: block; }
.title-page .sub { color: var(--faded); margin: 1.5rem 0 0; max-width: 32rem; }

/* the one orchestrated moment: ink settling on the title page */
@media (prefers-reduced-motion: no-preference) {
  /* the straws are drawn one by one, the short one last */
  .title-page .straws rect {
    transform-box: fill-box; transform-origin: bottom;
    animation: draw .7s cubic-bezier(.2, .7, .2, 1) both;
  }
  .title-page .straws rect:nth-child(1) { animation-delay: .05s; }
  .title-page .straws rect:nth-child(2) { animation-delay: .12s; }
  .title-page .straws rect:nth-child(3) { animation-delay: .19s; }
  .title-page .straws rect:nth-child(5) { animation-delay: .26s; }
  .title-page .straws rect:nth-child(6) { animation-delay: .33s; }
  .title-page .straws rect:nth-child(7) { animation-delay: .40s; }
  .title-page .straws rect.short { animation-delay: .75s; }
  @keyframes draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}

/* ---------- Section headings ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { margin-bottom: 2.25rem; max-width: 36rem; }
.section-head h2 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.section-head p { color: var(--faded); margin: 0; }

/* ---------- The shelf: series as bound volumes ---------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}
.volume {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 26rem;
  padding: 2.25rem 2rem 1.75rem;
  color: var(--parchment);
  text-decoration: none;
  background:
    linear-gradient(90deg, var(--brass-bright) 0, var(--brass-bright) .5rem, rgba(0,0,0,.5) .5rem, rgba(0,0,0,0) 1.6rem),
    linear-gradient(160deg, var(--cloth), var(--cloth-deep));
  border-radius: 2px 6px 6px 2px;
  box-shadow: 0 1.5rem 2.5rem -1.25rem rgba(0,0,0,.9), inset 0 0 0 1px rgba(241,236,223,.07);
  transition: transform .4s ease, box-shadow .4s ease;
}
.volume::before {
  /* gilt frame stamped into the cloth */
  content: "";
  position: absolute;
  inset: 1rem 1rem 1rem 2.5rem;
  border: 1px solid rgba(232, 191, 78, .45);
  outline: 1px solid rgba(232, 191, 78, .18);
  outline-offset: 5px;
  pointer-events: none;
}
.volume:hover { transform: translateY(-4px); }
.volume:focus-visible { outline-offset: 6px; }

.volume .vol-body { position: relative; padding-left: 1rem; }
.volume .vol-kind {
  font-style: italic;
  color: var(--brass-bright);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.volume h3 {
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  line-height: .95;
  color: var(--parchment);
  text-shadow: 0 1px 0 rgba(0,0,0,.5);
}
.volume .vol-note { color: rgba(232, 223, 204, .78); font-size: 1rem; max-width: 22rem; }
.volume .vol-foot {
  position: relative;
  padding-left: 1rem;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: .95rem;
  color: rgba(232, 223, 204, .8);
}
.volume .vol-foot span:last-child { color: var(--brass-bright); }
.badge {
  display: inline-block;
  font-family: var(--mono); font-style: normal; font-weight: 700;
  border: 1px solid rgba(232, 191, 78, .6);
  color: var(--brass-bright);
  font-size: .85rem;
  padding: .05rem .5rem;
  border-radius: 2px;
  vertical-align: middle;
  margin-left: .5rem;
}

/* ---------- Contents (library listing) ---------- */
.contents { list-style: none; margin: 0; padding: 0; }
.contents li { border-bottom: 1px dotted var(--rule); }
.contents a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1.5rem;
  padding: 1.05rem 0;
  color: var(--parchment);
  text-decoration: none;
}
.contents .t {
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.25;
}
.contents a:hover .t { color: var(--brass-bright); }
.contents .m { color: var(--faded); font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; align-self: center; text-align: right; white-space: nowrap; }
.contents .x { grid-column: 1 / -1; color: var(--faded); font-size: 1rem; font-style: italic; }
.contents li[hidden] { display: none; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters button {
  font: inherit;
  font-size: .95rem;
  background: transparent;
  color: var(--faded);
  border: 1px solid var(--rule);
  padding: .3rem .95rem;
  border-radius: 999px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] {
  color: var(--walnut);
  background: var(--parchment);
  border-color: var(--parchment);
}

.empty { color: var(--faded); font-style: italic; }

.more { margin-top: 1.75rem; }

/* ---------- Series pages ---------- */
.series-hero {
  background: linear-gradient(180deg, var(--cloth), var(--walnut));
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.series-hero .kind { font-style: italic; color: var(--brass-bright); font-size: 1.15rem; margin-bottom: .75rem; }
.series-hero h1 { font-size: clamp(3.2rem, 11vw, 6.75rem); line-height: .9; max-width: 11ch; }
.series-hero h1::after { content: ""; display: block; width: 4.5rem; height: .5rem; background: var(--brass-bright); margin-top: 1.5rem; }
.series-hero p { max-width: 32rem; color: rgba(232, 223, 204, .85); font-size: 1.2rem; }

.notice {
  border-left: 3px solid var(--brass-bright);
  padding: .9rem 1.2rem;
  background: var(--cloth);
  max-width: 34rem;
  margin-top: 1.75rem;
  font-size: 1rem;
}
.notice p { margin: 0; color: var(--parchment); }

.books { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.book {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px dotted var(--rule);
}
.book .cover {
  font-style: italic;
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, var(--walnut-2), #18140f);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--faded);
  font-size: .9rem;
  text-align: center;
  padding: .5rem;
}
.book .cover img { width: 100%; height: 100%; object-fit: cover; }
.book h3 { font-size: 1.8rem; margin-bottom: .2em; }
.book .status { color: var(--brass-bright); font-size: 1rem; margin-bottom: .6rem; }
.book p { color: var(--faded); }

/* ---------- Reading pages ---------- */
.piece { padding: clamp(3rem, 9vw, 6rem) 0 4rem; }
.piece header { text-align: center; margin-bottom: 3rem; }
.piece .form { font-style: italic; color: var(--brass-bright); margin-bottom: .5rem; }
.piece h1 { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-size: clamp(2.3rem, 7vw, 3.5rem); line-height: 1.1; }
.piece time { color: var(--faded); font-size: 1rem; }
.prose > p:first-of-type::first-letter {
  font-family: var(--display);
  float: left;
  text-transform: uppercase;
  font-size: 4.2em;
  line-height: .8;
  padding: .08em .1em 0 0;
  color: var(--brass-bright);
}
.poem { font-size: 1.2rem; line-height: 1.85; }
.poem p { white-space: pre-line; margin-bottom: 1.6em; }
.poem > p:first-of-type::first-letter { all: unset; }
.piece-end { margin: 3.5rem auto 2rem; width: 3.5rem; }
.back { text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  color: var(--faded);
  font-size: .95rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer p { margin: 0; }

@media (max-width: 34rem) {
  .book { grid-template-columns: 5rem 1fr; gap: 1rem; }
  .volume { min-height: 22rem; }
  .contents .m { grid-column: 1 / -1; text-align: left; }
  .contents a { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .volume { transition: none; }
  .volume:hover { transform: none; }
}

.title-page .lockup { display: inline-block; max-width: 100%; }
.brand { }
.brand .skip-label { display: none; }
.piece-end .straws { width: 100%; height: auto; color: var(--rule); }
.series-hero .tagline { font-style: italic; font-size: clamp(1.3rem, 3.5vw, 1.8rem); color: var(--parchment); margin-bottom: .5rem; }
.book .cover:has(img) { padding: 0; border-color: rgba(232, 191, 78, .35); box-shadow: 0 1rem 2rem -1rem rgba(0,0,0,.9); }
.books .book:has(.cover img) { grid-template-columns: minmax(9rem, 14rem) 1fr; }
@media (max-width: 34rem) { .books .book:has(.cover img) { grid-template-columns: 1fr; } .books .book:has(.cover img) .cover { max-width: 16rem; } }

/* ---------- 18+ age gate (North of Olympus) ---------- */
.age-gate { display: none; }
.gated .age-gate[open] {
  display: block;
  max-width: 28rem;
  width: calc(100% - 2rem);
  padding: 2.25rem 2rem 2rem;
  background: var(--walnut);
  color: var(--parchment);
  border: 1px solid rgba(232, 191, 78, .45);
  border-radius: 3px;
  text-align: center;
}
.age-gate::backdrop { background: rgba(10, 9, 8, .7); }
.age-gate .badge { margin: 0 0 1rem; font-size: 1rem; }
.age-gate h2 { font-size: 2.2rem; }
.age-gate p { color: var(--faded); }
.age-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.age-actions button {
  font: inherit;
  font-family: var(--mono); font-weight: 700; letter-spacing: .08em;
  background: var(--brass-bright); color: var(--walnut);
  border: 0; border-radius: 2px;
  padding: .75rem 1.5rem; cursor: pointer;
}
.gated body > header, .gated body > main, .gated body > footer {
  filter: blur(22px);
  pointer-events: none;
  user-select: none;
}

/* ---------- Home: each series gets its own section ---------- */
.feature { padding: clamp(3.5rem, 9vw, 6.5rem) 0; border-top: 1px solid var(--rule); }
.feature-flip { background: var(--cloth); }
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.feature-flip .feature-text { order: 2; }
.feature .volume { width: 100%; max-width: 22rem; justify-self: center; min-height: 28rem; }
.feature-flip .volume { background:
    linear-gradient(90deg, var(--brass-bright) 0, var(--brass-bright) .5rem, rgba(0,0,0,.5) .5rem, rgba(0,0,0,0) 1.6rem),
    linear-gradient(160deg, var(--walnut-2), var(--walnut)); }
.feature-kind { font-style: italic; color: var(--brass-bright); font-size: 1.1rem; margin-bottom: .75rem; }
.feature h2 { font-size: clamp(3rem, 9vw, 6rem); line-height: .9; margin: 0 0 1.25rem; max-width: 10ch; }
.feature h2::after { content: ""; display: block; width: 4.5rem; height: .5rem; background: var(--brass-bright); margin-top: 1.25rem; }
.feature-tagline { font-style: italic; font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: .5rem; }
.feature-status { color: var(--brass-bright); margin-bottom: .5rem; }
.feature-note { color: var(--faded); }
.feature-link { margin-top: 1.5rem; }
.feature-link a {
  display: inline-block;
  font-family: var(--mono); font-weight: 700; font-size: .85rem; letter-spacing: .08em;
  text-decoration: none;
  color: var(--walnut); background: var(--brass-bright);
  padding: .7rem 1.2rem; border-radius: 2px;
}
.feature-link a:hover { background: var(--parchment); }
.short-works { border-top: 1px solid var(--rule); }

@media (max-width: 48rem) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
  .feature .volume { display: none; }
}

/* ---------- Necessary Evil: title only, until there's a cover ---------- */
.feature-solo .wrap { max-width: 68rem; }
.feature-solo h2 { max-width: none; }
.feature-soon { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: .25rem; }

/* ---------- North of Olympus cover on the home page ---------- */
.feature-cover { display: block; width: 100%; max-width: 20rem; justify-self: center; }
.feature-cover img { width: 100%; height: auto; box-shadow: 0 1.5rem 3rem -1rem rgba(0,0,0,.9); }
@media (max-width: 48rem) {
  .feature-cover { max-width: 15rem; justify-self: start; }
}

/* ---------- Quieter gold: keep yellow to the brand marks (short straw, MEDIA bar) ---------- */
a { color: var(--parchment); text-decoration-color: rgba(241, 236, 223, .45); }
a:hover { color: var(--brass-bright); text-decoration-color: currentColor; }
.feature-kind, .series-hero .kind, .piece .form, .volume .vol-kind { color: var(--faded); }
.feature-status, .book .status, .volume .vol-foot span:last-child { color: var(--parchment); }
.feature h2::after, .series-hero h1::after { width: 3rem; height: 2px; background: var(--faded); }
.feature-link a { background: transparent; color: var(--parchment); box-shadow: inset 0 0 0 1px var(--parchment); }
.feature-link a:hover { background: var(--parchment); color: var(--walnut); }
.badge { border-color: rgba(241, 236, 223, .5); color: var(--parchment); }
.notice { border-left-color: var(--faded); }
.prose > p:first-of-type::first-letter { color: var(--parchment); }
.age-actions button { background: var(--parchment); }
.age-gate[open] { border-color: var(--rule); }
.site-nav a[aria-current="page"] { text-decoration-color: var(--parchment); }

.piece .content-note { color: var(--faded); font-size: .9rem; font-style: italic; margin: 1rem auto 0; max-width: 26rem; }

/* ---------- Trigger warnings ---------- */
.site-footer .disclaimer { max-width: 44rem; margin: 0 0 1.75rem; font-size: .9rem; line-height: 1.6; color: var(--faded); }
.site-footer .disclaimer strong, .content-note strong { color: var(--parchment); font-weight: 700; font-style: normal; }
.list-note { margin-top: .75rem !important; font-size: .95rem; font-style: italic; }
.piece .content-note { color: var(--faded); font-size: .9rem; font-style: italic; margin: 1rem auto 0; max-width: 26rem; }
.contents .x { font-size: .9rem; }

/* ---------- Entry popup: the dramatic version ---------- */
.gated .age-gate[open] { max-width: 32rem; padding: 2.75rem 2.25rem 2.25rem; border-color: var(--rule); box-shadow: 0 2rem 6rem rgba(0,0,0,.9); }
.age-gate::backdrop { background: rgba(8, 7, 6, .88); }
.age-gate .gate-mark { width: 3.25rem; height: auto; margin: 0 auto 1.5rem; color: var(--parchment); }
.age-gate h2 { font-size: clamp(2.4rem, 8vw, 3.4rem); line-height: .95; margin-bottom: 1.25rem; }
.age-gate .gate-lede { font-style: italic; font-size: 1.25rem; line-height: 1.4; color: var(--parchment); }
.age-gate strong { color: var(--parchment); }
.age-gate .gate-care { font-style: italic; font-size: .95rem; }
