/* ─────────────────────────────────────────────────────────
   eoncroft.com — shared styles
   palette: warm cream paper, warm dark ink,
            moss · crocus · umber accents
   ───────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Caveat:wght@400;500&display=swap');

:root {
  /* paper & ink — dappled forest floor */
  --paper:        oklch(0.955 0.014 110);   /* faint green-cream, light through leaves */
  --paper-deep:   oklch(0.91 0.020 120);    /* mossier paper */
  --ink:          oklch(0.22 0.020 140);    /* deep forest-floor */
  --ink-soft:     oklch(0.38 0.018 135);
  --ink-faint:    oklch(0.58 0.014 130);

  /* botanicals — spring forest with crocuses */
  --moss:         oklch(0.42 0.075 145);    /* deep mossy green */
  --moss-deep:    oklch(0.30 0.055 145);    /* forest shadow */
  --moss-soft:    oklch(0.82 0.035 140);    /* new-growth highlight */
  --crocus:       oklch(0.52 0.130 305);    /* saturated dappled purple */
  --crocus-deep:  oklch(0.40 0.110 305);    /* deeper crocus */
  --crocus-soft:  oklch(0.80 0.055 305);    /* pale lilac */
  --umber:        oklch(0.58 0.080 75);     /* warm sun-through-leaves */
  --umber-soft:   oklch(0.85 0.030 95);

  /* type */
  --serif:    'EB Garamond', 'Cormorant Garamond', Georgia, serif;
  --display:  'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --hand:     'Caveat', 'EB Garamond', cursive;
  --mono:     ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout */
  --measure:  62ch;
  --gutter:   clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  /* a faint paper grain — mossy specks of dappled-forest light */
  background-image:
    radial-gradient(oklch(0.30 0.04 140 / 0.022) 1px, transparent 1.4px),
    radial-gradient(oklch(0.30 0.04 140 / 0.016) 1px, transparent 1.4px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 4px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--crocus-soft); color: var(--ink); }

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-decoration-color: var(--umber);
  text-underline-offset: 4px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
a:hover { color: var(--crocus); text-decoration-color: var(--crocus); }

/* ─── shell ─────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  flex: 1;
}

/* ─── nav ───────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem 0 1.5rem;
  border-bottom: 1px solid oklch(0.62 0.010 60 / 0.25);
}

.nav__brand {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}
.nav__brand .glyph { width: 22px; height: 22px; align-self: center; }
.nav__brand { flex-shrink: 0; }
.nav__brand .name {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav__brand .name em {
  font-style: italic;
  color: var(--moss);
  font-weight: 400;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--crocus);
}

/* ─── kicker / smallcap labels ──────────────────────────── */

.kicker {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}
.kicker::before,
.kicker::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--umber);
}
.kicker--left::after { display: none; }
.kicker--left::before { width: 36px; }

/* ─── footer ────────────────────────────────────────────── */

.footer {
  margin-top: 6rem;
  padding: 3rem 0 2.5rem;
  border-top: 1px solid oklch(0.62 0.010 60 / 0.25);
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.footer__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer .colophon {
  font-style: italic;
  color: var(--ink-faint);
}
.footer .links {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer .links a {
  text-decoration: none;
  color: var(--ink-soft);
}
.footer .links a:hover { color: var(--crocus); }

/* ─── horizon motif (used on hero / section dividers) ──── */

.horizon {
  display: block;
  width: 100%;
  height: 56px;
  margin: 3rem 0;
  color: var(--umber);
  opacity: 0.7;
}

/* ─── crocus glyph (abstract, simple shapes only) ──────── */

.crocus {
  width: 28px;
  height: 28px;
  display: inline-block;
  vertical-align: middle;
}

/* ─────────────────────────────────────────────────────────
   HOME
   ───────────────────────────────────────────────────────── */

.hero {
  padding: 4.5rem 0 2rem;
  text-align: center;
  position: relative;
}
.hero .kicker { margin-bottom: 2rem; }

.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.hero h1 em {
  font-style: italic;
  color: var(--moss);
  font-weight: 300;
}

.hero .dek {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: var(--ink-soft);
  margin: 1.5rem auto 0;
  max-width: 36ch;
  line-height: 1.4;
}

.hero .hand {
  font-family: var(--hand);
  font-size: 1.5rem;
  color: var(--crocus);
  display: block;
  margin-top: 2rem;
  transform: rotate(-2deg);
}

/* intro paragraph */
.intro {
  max-width: 56ch;
  margin: 4rem auto 2rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink-soft);
  font-family: var(--serif);
}
.intro p + p { margin-top: 1rem; }
.intro .drop {
  font-family: var(--display);
  font-style: italic;
  color: var(--moss-deep);
}

/* recent writing */
.recent {
  margin-top: 5rem;
}
.recent__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid oklch(0.62 0.010 60 / 0.25);
}
.recent__head h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0;
}
.recent__head .all {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--umber);
  padding-bottom: 2px;
  white-space: nowrap;
}
.recent__head .all:hover { color: var(--crocus); border-bottom-color: var(--crocus); }

.recent__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
@media (max-width: 800px) {
  .recent__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
  padding-top: 0.5rem;
  border-top: 1px solid var(--umber);
  transition: transform 220ms ease;
}
.card:hover { transform: translateY(-2px); }
.card:hover .card__title { color: var(--crocus); }

.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.card__meta > span { white-space: nowrap; }
.card__meta .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--crocus);
  border-radius: 50%;
  align-self: center;
}
.card__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  text-wrap: pretty;
  transition: color 200ms ease;
}
.card__excerpt {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

/* a featured / hero card variant — wider with a placeholder image */
.featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  margin: 4.5rem 0 2rem;
  align-items: center;
}
@media (max-width: 800px) { .featured { grid-template-columns: 1fr; gap: 2rem; } }

.featured__img {
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(
      45deg,
      oklch(0.86 0.025 75),
      oklch(0.86 0.025 75) 10px,
      oklch(0.82 0.030 75) 10px,
      oklch(0.82 0.030 75) 20px
    );
  border: 1px solid var(--umber);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 220ms ease;
}
.featured__img:hover { transform: translateY(-2px); }
.featured__img::after {
  content: attr(data-placeholder);
  position: absolute;
  inset: auto 0 1.2rem 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.featured__body .card__title { font-size: 2.2rem; margin-top: 0.6rem; }
.featured__body .card__excerpt { font-size: 1.08rem; margin-top: 0.8rem; }

/* ─────────────────────────────────────────────────────────
   WRITING (index)
   ───────────────────────────────────────────────────────── */

.page-head {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  margin: 1.5rem 0 0;
  letter-spacing: -0.01em;
}
.page-head h1 em { font-style: italic; color: var(--moss); font-weight: 300; }
.page-head .dek {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin: 1.2rem auto 0;
  max-width: 44ch;
  line-height: 1.45;
}

.year-group { margin-bottom: 4rem; }
.year-group__label {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.3em;
  color: var(--ink-faint);
  margin: 0 0 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid oklch(0.62 0.010 60 / 0.25);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.year-group__label .count {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
}

.entry {
  display: grid;
  grid-template-columns: 90px 1fr 110px;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid oklch(0.62 0.010 60 / 0.18);
  align-items: baseline;
  text-decoration: none;
  color: inherit;
  transition: background 200ms ease;
}
.entry:hover { background: oklch(0.92 0.020 75 / 0.5); }
.entry:hover .entry__title { color: var(--crocus); }

.entry__num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-faint);
}
.entry__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
  line-height: 1.2;
  color: var(--ink);
  transition: color 200ms ease;
  text-wrap: pretty;
}
.entry__excerpt {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
  max-width: 60ch;
}
.entry__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  text-align: right;
  line-height: 1.5;
}
@media (max-width: 720px) {
  .entry { grid-template-columns: 60px 1fr; gap: 1.2rem; }
  .entry__meta { grid-column: 2; text-align: left; }
}

/* ─────────────────────────────────────────────────────────
   ARTICLE (single)
   ───────────────────────────────────────────────────────── */

.article {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.5rem 0 2rem;
}
.article__cover {
  margin: 0 0 3rem;
  max-width: none;
  /* break out of the narrow measure */
  width: calc(100vw - var(--gutter) * 2);
  max-width: 1080px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.article__cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid oklch(0.62 0.010 60 / 0.30);
  box-shadow: 0 2px 0 oklch(0.30 0.040 140 / 0.04),
              0 18px 40px -20px oklch(0.30 0.040 140 / 0.22);
}
.article__head {
  text-align: center;
  margin-bottom: 3rem;
}
.article__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 1.2rem 0 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.article__title em { font-style: italic; color: var(--moss); font-weight: 300; }
.article__dek {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin: 1rem auto 0;
  max-width: 38ch;
  line-height: 1.45;
}
.article__meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2rem;
}

.article__body {
  font-size: 1.12rem;
  line-height: 1.78;
}
.article__body > p { margin: 0 0 1.3rem; }
.article__body > p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 400;
  float: left;
  font-size: 4.2rem;
  line-height: 0.85;
  padding: 0.3rem 0.7rem 0 0;
  color: var(--moss-deep);
}
.article__body h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.005em;
}
.article__body blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--crocus);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.15rem;
}
.article__body hr {
  border: none;
  text-align: center;
  margin: 3rem 0;
  height: 1em;
  overflow: visible;
}
.article__body hr::after {
  content: "❦";
  color: var(--crocus);
  font-size: 1.4rem;
  display: inline-block;
}

.article__foot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(0.62 0.010 60 / 0.25);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 1rem;
}
.article__foot .back {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--umber);
  padding-bottom: 2px;
}
.article__foot .back:hover { color: var(--crocus); border-bottom-color: var(--crocus); }

/* prev / next at the bottom of an article */
.article__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(0.62 0.010 60 / 0.25);
}
.article__nav a {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.article__nav__next { text-align: right; align-items: flex-end; }
.article__nav .lbl {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.article__nav .ttl {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--ink);
  transition: color 200ms ease;
  text-wrap: balance;
}
.article__nav a:hover .ttl { color: var(--crocus); }
@media (max-width: 600px) {
  .article__nav { grid-template-columns: 1fr; }
  .article__nav__next { text-align: left; align-items: flex-start; }
}

/* ─────────────────────────────────────────────────────────
   ABOUT
   ───────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  margin: 3rem 0;
  align-items: start;
}
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
}

.about__portrait {
  aspect-ratio: 3 / 4;
  background:
    repeating-linear-gradient(
      45deg,
      oklch(0.86 0.025 75),
      oklch(0.86 0.025 75) 10px,
      oklch(0.82 0.030 75) 10px,
      oklch(0.82 0.030 75) 20px
    );
  border: 1px solid var(--umber);
  position: relative;
}
.about__portrait::after {
  content: "place a portrait here  ·  3:4";
  position: absolute;
  inset: auto 0 1rem 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.about__body p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.about__body p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 400;
  float: left;
  font-size: 3.6rem;
  line-height: 0.85;
  padding: 0.3rem 0.6rem 0 0;
  color: var(--moss-deep);
}
.about__body .hand {
  font-family: var(--hand);
  font-size: 1.6rem;
  color: var(--crocus);
  display: inline-block;
  transform: rotate(-2deg);
  margin-top: 0.5rem;
}

.affinities {
  margin: 5rem 0 1rem;
}
.affinities__head {
  font-family: var(--display);
  font-weight: 400;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 2rem;
}
.affinities__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem 2.4rem;
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
}
@media (max-width: 720px) { .affinities__grid { grid-template-columns: repeat(2, 1fr); } }

.affinities__grid li {
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.affinities__grid li::before {
  content: "·";
  color: var(--crocus);
  font-size: 1.6rem;
  line-height: 0;
  position: relative;
  top: 0.05em;
}
.affinities__grid li em {
  font-style: italic;
  color: var(--moss);
}
