/* Kohsee Plower series site */
:root {
  --ink: #1C1814;
  --ink-2: #2A241D;
  --ink-line: #3A3128;
  --parchment: #F2EADB;
  --parchment-2: #E8DDC9;
  --paper: #FBF6EC;
  --text: #1F1A14;
  --muted: #5A4E40;
  --rule: #CDBFA6;
  --on-dark: #EFE6D4;
  --on-dark-muted: #B9AC96;
  --brass: #C9A45C;
  --accent: #8A2E1F;
  --accent-hover: #6B2217;
  --display: 'IM Fell English', Georgia, 'Times New Roman', serif;
  --body: 'Spectral', Georgia, 'Times New Roman', serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; line-height: 1.1; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

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

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 10;
  background: var(--paper); color: var(--text); padding: .6rem 1rem;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--paper);
  text-decoration: none; font-weight: 600; border-radius: 4px;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); color: var(--paper); }
.btn-small { min-height: 44px; padding: 0 1.1rem; font-size: 1rem; }
.btn-large { min-height: 56px; padding: 0 2rem; font-size: 1.15rem; }

/* Header */
.site-header { background: var(--ink); border-bottom: 1px solid var(--ink-line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.wordmark {
  font-family: var(--display); font-size: 1.2rem; color: var(--on-dark);
  text-decoration: none; margin-right: auto;
}
.wordmark:hover { color: #fff; }
.site-nav { display: none; gap: 2rem; }
.site-nav a { color: #D9CDB6; text-decoration: none; }
.site-nav a:hover { color: #fff; }

/* Hero */
.hero { background: var(--ink); color: var(--on-dark); padding: 2.5rem 0 3.5rem; }
.hero-grid {
  display: grid; gap: 1.5rem;
  grid-template-areas: "intro" "cover" "body";
}
.hero-intro { grid-area: intro; }
.hero-cover { grid-area: cover; width: 100%; max-width: 420px; justify-self: center; border-radius: 4px; box-shadow: 0 18px 44px rgba(0, 0, 0, .55); }
.hero-body { grid-area: body; display: flex; flex-direction: column; gap: 1.25rem; }
.kicker { color: var(--brass); font-size: 1rem; margin-bottom: .6rem; font-style: italic; }
.hero h1 { font-size: clamp(2.6rem, 9vw, 5rem); color: #F6EEDD; line-height: 1.02; }
.lede { font-size: 1.2rem; line-height: 1.6; color: #E4D9C4; max-width: 38em; }
.lede-2 { font-size: 1.05rem; line-height: 1.7; color: var(--on-dark-muted); max-width: 38em; }
.buy { display: flex; flex-direction: column; gap: .7rem; padding-top: .5rem; }
.hero .btn-large { width: 100%; }
.formats { font-size: .98rem; color: var(--on-dark-muted); }

/* Section heads */
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem; margin-bottom: 2.5rem; }
.ornament { color: #8A7A64; }
.books h2, .author h2 { font-size: clamp(2.3rem, 6vw, 3.25rem); }
.section-head p { color: var(--muted); max-width: 34em; }

/* Books */
.books { padding: 4rem 0; }
.book-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem;
}
.book { display: flex; flex-direction: column; gap: .6rem; }
.book img { border-radius: 4px; box-shadow: 0 12px 28px rgba(60, 45, 25, .22); margin-bottom: .4rem; }
.book-placeholder {
  aspect-ratio: 974 / 1500; margin-bottom: .4rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--parchment-2); border: 1px solid var(--rule); border-radius: 4px;
  font-family: var(--display); font-size: clamp(2.5rem, 8vw, 4.5rem); color: #8A7A64;
}
.book-status { font-size: .95rem; color: var(--muted); }
.book.available .book-status { color: var(--accent); font-weight: 600; }
.book h3 { font-size: 1.5rem; }
.book.upcoming h3 { color: var(--muted); }
.book .btn { align-self: flex-start; margin-top: .3rem; }

/* Author */
.author { background: var(--parchment-2); padding: 4rem 0; }
.author .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
.author p { font-size: 1.15rem; line-height: 1.75; }

/* Closing call to action */
.closing { padding: 4rem 0; }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
.closing h2 { font-size: clamp(2rem, 5vw, 2.75rem); }
.closing .formats { color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 2.5rem 0; font-size: .95rem; }
.footer-inner { display: flex; flex-direction: column; gap: .4rem; }
.footer-mark { font-family: var(--display); font-size: 1.3rem; color: var(--on-dark); }

/* Larger screens */
@media (min-width: 760px) {
  .wrap { padding: 0 2.5rem; }
  .site-nav { display: flex; }
  .header-inner { min-height: 84px; }
  .wordmark { font-size: 1.55rem; }
  .book-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: baseline; }
}

@media (min-width: 960px) {
  .hero { padding: 5.5rem 0 6.5rem; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "intro cover" "body cover";
    grid-template-rows: auto 1fr;
    column-gap: 5rem; row-gap: 1.75rem;
    align-items: start;
  }
  .hero-intro { align-self: end; }
  .hero .btn-large { width: auto; align-self: flex-start; }
  .books, .author, .closing { padding: 6.5rem 0; }
}
