/* The Heart of Service — site styles
   Palette taken from the Side Work cover. */
:root {
  --forest: #1F3A2C;      /* cover green */
  --forest-deep: #182E23;
  --linen: #F3EDE0;       /* page */
  --cream: #F2E6CF;       /* type on green */
  --copper: #B86B3C;      /* rules and marks */
  --copper-ink: #94532B;  /* copper dark enough for text on linen */
  --ink: #1E2B24;         /* body text, a green-black */
  --muted: #5B6660;
  --measure: 34rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: 1.1875rem;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--copper-ink); }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--forest);
  color: var(--cream);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.25rem 0;
}
.mark {
  font-size: 1.5rem; font-weight: 500; letter-spacing: 0.08em;
  text-decoration: none; color: var(--cream);
}
.mark span { color: var(--copper); font-size: 0.82em; vertical-align: 0.15em; }
.mark:hover { color: var(--cream); }
.nav { display: flex; gap: 1.75rem; font-size: 1.05rem; }
.nav a { text-decoration: none; color: var(--cream); opacity: .85; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; color: var(--cream); text-decoration: underline; text-decoration-color: var(--copper); }

.wrap { width: min(68rem, 100% - 3rem); margin-inline: auto; }

/* ---------- Hero: the one bold moment ---------- */
.hero {
  background: var(--forest);
  color: var(--cream);
  padding: 2rem 0 5rem;
}
.hero-frame {
  border: 1px solid var(--copper);
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-kicker { font-style: italic; font-size: 1.15rem; margin: 0 0 1.5rem; opacity: .9; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  max-width: 14ch;
}
.hero-rule { width: 3.5rem; height: 1px; background: var(--copper); border: 0; margin: 0 0 1.75rem; }
.hero p.lede { font-size: 1.2rem; max-width: 30rem; margin: 0 0 2.25rem; opacity: .92; }
.hero-status { font-style: italic; margin: 0 0 1rem; opacity: .85; }
.button {
  display: inline-block;
  background: var(--cream); color: var(--forest);
  font: inherit; font-size: 1.05rem; font-weight: 500;
  padding: .8rem 1.6rem; border: 1px solid var(--cream);
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.button:hover { background: transparent; color: var(--cream); }
.cover {
  justify-self: center;
  width: min(100%, 20rem);
  box-shadow: 0 1.5rem 3rem rgba(8, 20, 14, .45), 0 .25rem .5rem rgba(8, 20, 14, .3);
}
@media (prefers-reduced-motion: no-preference) {
  .cover { animation: settle 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
  @keyframes settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Reading sections ---------- */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section + .section { padding-top: 0; }
.column { width: min(var(--measure), 100% - 3rem); margin-inline: auto; }
.section h2 {
  font-weight: 500; font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2; margin: 0 0 2rem;
}
.section p { margin: 0 0 1.15em; }
.divider { width: 3.5rem; height: 1px; background: var(--copper); border: 0; margin: 0 auto; }

/* The excerpt reads like a page of the book */
.excerpt { hyphens: auto; }
.excerpt p { text-indent: 1.5em; margin: 0; }
.excerpt p.first, .excerpt p.break { text-indent: 0; }
.excerpt p.break { margin-top: 1.15em; }
.excerpt p.first::first-line { font-variant: small-caps; letter-spacing: .04em; }
.excerpt .source { text-indent: 0; margin-top: 2rem; font-style: italic; color: var(--muted); font-size: 1rem; }

/* Author */
.author { display: grid; grid-template-columns: 13rem 1fr; gap: 2.5rem; align-items: start; width: min(50rem, 100% - 3rem); margin-inline: auto; }
.author img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.9); }
.author.no-photo { grid-template-columns: 1fr; width: min(var(--measure), 100% - 3rem); }

/* Teams */
.note { border-top: 1px solid rgba(30,43,36,.18); padding-top: 2rem; }

/* ---------- Notify band ---------- */
.notify { background: var(--forest); color: var(--cream); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.notify h2 { font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .75rem; }
.notify p { margin: 0 0 1.75rem; opacity: .9; }
.notify form { display: flex; gap: .75rem; flex-wrap: wrap; }
.notify label { position: absolute; left: -9999px; }
.notify input[type="email"] {
  flex: 1 1 16rem; font: inherit; font-size: 1.05rem;
  padding: .8rem 1rem; background: transparent; color: var(--cream);
  border: 1px solid rgba(242,230,207,.55); border-radius: 0;
}
.notify input::placeholder { color: rgba(242,230,207,.6); }
.hidden { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: var(--cream); padding: 3.5rem 0 2.5rem; text-align: center; }
.site-footer .closing { font-style: italic; font-size: 1.3rem; margin: 0 0 2rem; }
.site-footer .small { font-size: .95rem; opacity: .75; margin: .35rem 0; }
.site-footer a { color: var(--cream); }

/* ---------- Journal ---------- */
.page-head { background: var(--forest); color: var(--cream); padding: 3.5rem 0 4rem; }
.page-head h1 { font-weight: 500; font-size: clamp(2.4rem, 5vw, 3.4rem); margin: 0 0 .5rem; }
.page-head p { margin: 0; font-style: italic; opacity: .88; font-size: 1.2rem; }
.entries { list-style: none; padding: 0; margin: 0; }
.entries li { padding: 1.75rem 0; border-bottom: 1px solid rgba(30,43,36,.15); }
.entries a { font-size: 1.45rem; text-decoration: none; }
.entries time { display: block; color: var(--muted); font-size: 1rem; margin-top: .25rem; }
.empty { font-style: italic; color: var(--muted); }
.post time { display: block; color: var(--muted); margin-bottom: 2.5rem; }
.post h1 { font-weight: 500; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; margin: 0 0 .5rem; }
.back { display: inline-block; margin-top: 3rem; font-style: italic; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 1.125rem; }
  .hero { padding-top: 1rem; }
  .hero-frame { grid-template-columns: 1fr; }
  .cover { order: -1; width: min(70%, 15rem); }
  .hero h1 { max-width: none; }
  .author { grid-template-columns: 1fr; }
  .author img { max-width: 14rem; }
  .nav { gap: 1.1rem; font-size: 1rem; }
}

/* Book section: principle and details */
.principle { margin: 2.25rem 0; padding: 0 0 0 1.5rem; border-left: 1px solid var(--copper); }
.principle p { font-size: 1.45rem; line-height: 1.35; font-style: italic; margin: 0 0 .5rem; }
.principle cite { font-style: normal; font-variant: small-caps; letter-spacing: .06em; color: var(--copper-ink); font-size: 1rem; }
.section p.book-details { color: var(--muted); font-size: 1rem; letter-spacing: .02em; margin-top: 2rem; }

/* /seen card landing page */
.seen .column { text-align: center; }
.seen .column h2 { margin-top: 2.5rem; }
.seen-ring { color: var(--copper); font-size: 2rem; margin: 0 0 .5rem; }
.seen-title { font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 400; margin: 0 0 1.5rem; }
.seen-lede { font-size: 1.2rem; }
.seen-thanks { font-size: 1.5rem; font-style: italic; margin: 1.5rem 0 2rem; }
.seen .hero-rule { margin: 2rem auto; }
.small-note { margin-top: 2rem; font-size: 1rem; }
