:root {
  --bg: #fffaf7;
  --paper: #ffffff;
  --blush: #fcecf0;
  --rose: #e98aa5;
  --rose-deep: #b84a6e;
  --sage: #e6efe3;
  --leaf: #5f8a63;
  --forest: #2f4b3a;
  --ink: #2d2a2b;
  --muted: #6f6668;
  --line: #f0dde2;
  --display: "Cormorant Garamond", Georgia, serif;
  --serif: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--rose-deep); text-decoration-color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--forest); }

::selection { background: var(--blush); }

/* ---------- header & footer ---------- */

.site-header {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--forest);
  text-decoration: none;
}

.site-header nav { display: flex; gap: 22px; flex-wrap: wrap; }

.site-header nav a {
  font-variant: small-caps;
  letter-spacing: .08em;
  font-size: 1.05rem;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { border-bottom-color: var(--rose); color: var(--rose-deep); }

.site-footer {
  text-align: center;
  padding: 56px 24px 48px;
  color: var(--muted);
  font-size: .95rem;
}
.site-footer img { width: 200px; display: block; margin: 0 auto 14px; }

/* ---------- shared bits ---------- */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-variant: small-caps;
  letter-spacing: .12em;
  color: var(--leaf);
  font-size: 1rem;
  margin: 0 0 8px;
}

.sprig { display: block; width: 220px; margin: 48px auto; }

h1, h2, h3 {
  font-family: var(--display);
  color: var(--forest);
  font-weight: 600;
  line-height: 1.15;
}

.tag {
  display: inline-block;
  font-size: .85rem;
  font-variant: small-caps;
  letter-spacing: .08em;
  color: var(--forest);
  background: var(--sage);
  border-radius: 999px;
  padding: 1px 12px;
}
.tag.pink { background: var(--blush); color: var(--rose-deep); }

/* ---------- home ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
}
.hero h1 { font-size: clamp(3.2rem, 9vw, 5.6rem); font-style: italic; margin: 0 0 6px; }
.hero .lede { font-size: 1.3rem; max-width: 34ch; color: var(--muted); }
.hero img { width: 100%; max-width: 380px; justify-self: center; }

.epigraph {
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--rose);
  font-family: var(--display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--forest);
}
.epigraph cite { display: block; font-size: 1rem; font-style: normal; color: var(--muted); margin-top: 4px; }

.section-head { text-align: center; margin: 72px 0 28px; }
.section-head h2 { font-size: 2.4rem; margin: 0; font-style: italic; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }

.card {
  display: block;
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 28px 26px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(184, 74, 110, .45); color: inherit; }
.card h3 { font-size: 1.75rem; margin: 12px 0 8px; }
.card p { margin: 0; color: var(--muted); }
.card .meta { font-size: .95rem; color: var(--muted); margin-top: 14px; }
.card .more { display: inline-block; margin-top: 14px; color: var(--rose-deep); font-style: italic; }
.card.feature { background: linear-gradient(135deg, var(--paper) 55%, var(--blush)); }
.card.feature::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  background: url("../img/blossom.svg") center / contain no-repeat;
}
.card ul { margin: 12px 0 0; padding: 0; list-style: none; font-family: var(--display); font-style: italic; font-size: 1.25rem; color: var(--forest); }

/* ---------- reading pages ---------- */

.reading { max-width: 700px; margin: 0 auto; padding: 24px 24px 0; }

.page-title { text-align: center; margin: 24px 0 8px; }
.page-title h1 { font-size: clamp(2.4rem, 7vw, 3.6rem); font-style: italic; margin: 6px 0 10px; }
.page-title .sub { color: var(--muted); margin: 0 auto; max-width: 52ch; }
.page-title .meta { margin-top: 14px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.essay p { margin: 0 0 1.1em; text-indent: 1.6em; }
.essay p.first { text-indent: 0; }
.essay p.first::first-letter {
  float: left;
  font-family: var(--display);
  font-size: 4.2rem;
  line-height: .8;
  padding: 6px 10px 0 0;
  color: var(--rose-deep);
}
.essay h2 { font-size: 1.9rem; margin: 2.2em 0 .2em; }
.essay h2 + .note { margin-top: 0; }
.note { color: var(--muted); font-style: italic; font-size: 1.05rem; }

.works-cited { margin-top: 3em; }
.works-cited h2 { text-align: center; }
.works-cited p { text-indent: -2em; padding-left: 2em; font-size: 1rem; overflow-wrap: anywhere; margin: 0 0 .8em; }

.question {
  margin: 28px 0;
  padding: 22px 26px;
  background: var(--blush);
  border-radius: 18px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--forest);
  text-align: center;
}

/* ---------- poetry ---------- */

.toc { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; list-style: none; }
.toc a { font-family: var(--display); font-style: italic; font-size: 1.3rem; text-decoration: none; }

.poem-block { margin-top: 24px; scroll-margin-top: 24px; }
.poem-block .num { text-align: center; margin: 0; }
.poem-block h2 { text-align: center; font-size: 2.5rem; font-style: italic; margin: 4px 0 28px; }

.poem { font-size: 1.22rem; line-height: 1.85; }
.poem p { margin: 0 0 1.5em; }
.poem.centered { text-align: center; }
.poem.left { max-width: 30em; margin: 0 auto; }

details.statement {
  margin: 32px 0 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
details.statement summary {
  cursor: pointer;
  padding: 16px 24px;
  font-family: var(--display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--forest);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details.statement summary::-webkit-details-marker { display: none; }
details.statement summary::after { content: "+"; font-style: normal; color: var(--rose-deep); font-size: 1.5rem; }
details.statement[open] summary::after { content: "–"; }
details.statement .body { padding: 0 24px 8px; }
details.statement .body p { margin: 0 0 1em; }

/* ---------- project ---------- */

figure.diagram {
  margin: 32px 0;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}
figure.diagram svg { width: 100%; max-width: 420px; height: auto; }
figure.diagram figcaption { color: var(--muted); font-size: .98rem; font-style: italic; }

.table-wrap { overflow-x: auto; margin: 24px 0 32px; }
table.specs { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 520px; }
table.specs th, table.specs td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { font-variant: small-caps; letter-spacing: .06em; color: var(--forest); font-weight: 500; }
table.specs td:first-child { font-weight: 600; color: var(--forest); }
table.specs td:last-child { white-space: nowrap; }

blockquote.excerpt { margin: 0; }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
  max-width: 860px;
  margin: 24px auto 0;
  padding: 0 24px;
}
.portrait {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush) url("../img/blossom.svg") center 32% / 34% no-repeat;
  border: 2px dashed var(--rose);
  display: grid;
  place-items: end center;
  padding-bottom: 18%;
  color: var(--rose-deep);
  font-size: .9rem;
  font-style: italic;
}
.placeholder {
  background: var(--sage);
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding: 0 6px;
  color: var(--forest);
}
.facts { list-style: none; padding: 0; margin: 24px 0; }
.facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts strong { font-variant: small-caps; letter-spacing: .06em; color: var(--leaf); font-weight: 500; display: inline-block; min-width: 7em; }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  body { font-size: 1.08rem; }
  .site-header { padding: 20px 16px; }
  .site-header nav { gap: 16px; }
  .wrap, .reading { padding-left: 16px; padding-right: 16px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero img { max-width: 220px; grid-row: 1; }
  .epigraph { text-align: left; display: inline-block; }
  .about { grid-template-columns: 1fr; padding: 0 16px; justify-items: center; }
  .portrait { width: 180px; }
  .poem.left { padding-left: 4px; }
}
