@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url(fonts/eb-garamond-latin-500-italic.woff2) format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --paper: #F5F0E6;
  --paper-2: #ECE4D3;
  --ink: #1C1812;
  --ink-2: #4A4136;
  --muted: #8C7A65;
  --rust: #B5602A;
  --rule: #D9CFBD;
  --dark: #1C1812;
  --dark-text: #EDE5D4;
  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --measure: 36rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--serif);
       font-size: 1.25rem; line-height: 1.6; font-kerning: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rust); }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 2rem; }
.label { font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.label.rust { color: var(--rust); }

/* header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.4rem; flex-wrap: wrap; }
.wordmark { font-size: 1.05rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; }
.site-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.site-nav a { font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--rust); }

/* sections */
section { padding: 6rem 0; border-bottom: 1px solid var(--rule); }
section.tint { background: var(--paper-2); }
section.dark { background: var(--dark); color: var(--dark-text); border-bottom: 0; }
section.dark .label { color: #B8A88F; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.1; }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-top: 0.6rem; }
p { margin: 0 0 1.1em; }
.prose { max-width: var(--measure); }
.prose p { color: var(--ink-2); }
.lede { font-size: 1.45rem; font-style: italic; color: var(--ink); }

/* hero */
.hero { padding: 7rem 0 6rem; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); line-height: 1; margin: 1rem 0 1.6rem; }
.hero h1 em { color: var(--rust); }
.hero p { max-width: 34rem; font-size: 1.4rem; color: var(--ink-2); }

/* book feature */
.feature { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 4rem; align-items: start; }
.feature .cover img { box-shadow: 0 1px 2px rgba(28,24,18,.15), 0 12px 32px rgba(28,24,18,.18); }
.feature h3 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-style: italic; margin: 0.5rem 0 1.2rem; }
.meta { font-size: 1rem; color: var(--muted); margin-bottom: 1.4rem; }

.buttons { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.8rem 0 1rem; }
.btn { display: inline-flex; flex-direction: column; padding: 0.85rem 1.4rem; border: 1px solid var(--ink); text-decoration: none; line-height: 1.25; min-width: 13rem; }
.btn strong { font-weight: 500; font-size: 1.05rem; letter-spacing: 0.04em; }
.btn span { font-size: 0.9rem; color: var(--muted); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary span { color: #C9BBA4; }
.btn:hover { border-color: var(--rust); color: var(--rust); }
.btn.primary:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); }
.btn.primary:hover span { color: var(--paper); }
.small { font-size: 1rem; color: var(--muted); }

/* novel */
.novel { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 4rem; align-items: start; }
.cover-soon { aspect-ratio: 5 / 8; border: 1px solid var(--rule); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; background: var(--paper); }
.cover-soon .t1 { font-size: 2.6rem; line-height: 1; }
.cover-soon .t2 { font-size: 2.6rem; line-height: 1; font-style: italic; color: var(--rust); margin-bottom: 1.5rem; }
blockquote { margin: 0 0 1.6rem; padding-left: 1.2rem; border-left: 2px solid var(--rust); font-style: italic; font-size: 1.4rem; color: var(--ink); max-width: var(--measure); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 4rem; }

/* subscribe */
.subscribe h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0.8rem 0 1.2rem; }
.subscribe p { color: #C9BBA4; max-width: 32rem; }
.subscribe .btn { border-color: var(--dark-text); color: var(--dark-text); margin-top: 1rem; }
.subscribe .btn:hover { background: var(--rust); border-color: var(--rust); color: var(--paper); }

/* story page */
.crumbs { font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.crumbs a { text-decoration: none; }
.excerpt { max-width: var(--measure); }
.excerpt p { text-indent: 1.4em; margin: 0; color: var(--ink); font-size: 1.3rem; }
.excerpt p:first-child { text-indent: 0; }
.excerpt .more { text-indent: 0; margin-top: 1.4rem; font-style: italic; color: var(--muted); }
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem; }
.howto h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.howto p { font-size: 1.1rem; color: var(--ink-2); }

/* series list */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 3rem 2.5rem; }
.book-card { text-decoration: none; }
.book-card img { box-shadow: 0 1px 2px rgba(28,24,18,.15), 0 10px 24px rgba(28,24,18,.15); margin-bottom: 1rem; }
.book-card .label { display: block; margin-bottom: 0.2rem; }
.book-card .title { font-style: italic; font-size: 1.45rem; line-height: 1.2; }
.book-card.soon .placeholder { aspect-ratio: 5 / 8; border: 1px dashed var(--rule); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--muted); font-style: italic; }

/* footer */
.site-footer { padding: 2.2rem 0; font-size: 1rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.site-footer a { text-decoration: none; }

@media (max-width: 800px) {
  body { font-size: 1.15rem; }
  .wrap { padding: 0 1rem; }
  section { padding: 4rem 0; }
  .hero { padding: 4.5rem 0 4rem; }
  .feature, .novel, .about { grid-template-columns: 1fr; gap: 2.2rem; }
  .feature .cover, .novel .cover-soon { max-width: 16rem; }
  .btn { flex: 1 1 100%; }
  .site-nav { gap: 1.1rem; }
}
