/* samanthalucia.com — Work
   Atmospheric dark ground, layered warm charcoals, one brass accent.
   The page still reads as a ledger, just lit from a single candle. */

:root {
  /* Keeping the same token names so nothing downstream has to change:
     --paper is now the deepest surface, --ink is the cream on top of it. */
  --paper:       #0f0d0b;   /* base background — warm near-black */
  --paper-band:  #17140f;   /* honors band, footer, secondary surface */
  --paper-deep:  #1f1a13;   /* elevated surfaces */
  --ink:         #efe6d3;   /* primary text — warm ivory */
  --ink-soft:    #b8ac95;   /* secondary text */
  --ink-faint:   #857b68;   /* metadata, timestamps */
  --rule:        #2a251c;   /* primary hairline */
  --rule-soft:   #221d15;   /* faint dividers */
  --brass:       #c9a24a;   /* single accent — antique brass */
  --brass-deep:  #9a7a2f;   /* hover / pressed */
  --ember:       #b25a3f;   /* honor chips, buy-the-issue, oxblood-warm */

  /* Back-compat aliases so we don't have to sweep the whole file. */
  --verdigris:      var(--brass);
  --verdigris-deep: var(--brass-deep);
  --oxblood:        var(--ember);

  --font-display: 'Fraunces', 'Zodiak', Georgia, 'Times New Roman', serif;
  --font-body:    'EB Garamond', 'Fraunces', Georgia, serif;

  --text-xs: 0.78rem;
  --text-sm: 0.92rem;
  --text-base: 1.125rem;                          /* larger for dark reading */
  --text-lg: 1.25rem;
  --text-xl: clamp(1.625rem, 2.6vw, 2.125rem);
  --text-2xl: clamp(2.25rem, 5.4vw, 3.75rem);

  --shell: 68rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 15% -10%, #1a1611 0%, transparent 65%),
    radial-gradient(900px 600px at 85% 110%, #191410 0%, transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-feature-settings: 'kern' 1, 'liga' 1, 'onum' 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Very fine film grain, subtle enough to only register in your peripheral
   vision. Data-URI so no extra request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; }

em { font-style: italic; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  z-index: 20;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.875rem;
  border-radius: 2px;
  font-size: var(--text-sm);
  text-decoration: none;
}

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

/* ---------- header ---------- */

.site {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(6px);
}

.site__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ink);
}

.logo {
  width: 2rem;
  height: 2rem;
  flex: none;
  color: var(--verdigris);
}

.brand__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 30;
  letter-spacing: 0.005em;
}

.brand__wordmark {
  display: block;
  height: 3.25rem;
  width: auto;
  user-select: none;
  margin-top: -0.15rem;
}

@media (max-width: 720px) {
  .brand__wordmark {
    height: 2.5rem;
  }

  .logo {
    width: 1.625rem;
    height: 1.625rem;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.375rem;
  flex-wrap: wrap;
}

.nav__link {
  font-size: var(--text-sm);
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a.nav__link:hover {
  color: var(--verdigris-deep);
  border-bottom-color: var(--verdigris);
}

.nav__link.is-active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--ink);
}

.nav__link.is-pending {
  color: var(--ink-faint);
  cursor: default;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--rule);
  text-underline-offset: 4px;
}

/* ---------- hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.25rem, 5vw, 3.5rem);
}

.hero__eyebrow {
  margin: 0 0 1.125rem;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verdigris);
  font-weight: 500;
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 22ch;
  text-wrap: balance;
}

/* Italicize the closing phrase of the hero to bring the display face's
   real personality forward. */
.hero__title em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--brass);
}

.hero__lede {
  margin: 1.75rem 0 0;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.55;
  font-weight: 400;
}

.hero__lede em { font-style: italic; }

.tally {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

@media (min-width: 34rem) {
  .tally {
    display: flex;
    flex-wrap: wrap;
    gap: 0 clamp(1.75rem, 4vw, 3.25rem);
  }
  .tally__item { min-width: 5.5rem; }
}

.tally dt {
  font-size: var(--text-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tally dd {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ---------- honors ---------- */

.honors {
  position: relative;
  z-index: 2;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--brass) 4%, transparent) 0%,
      transparent 60%),
    var(--paper-band);
  border-block: 1px solid var(--rule);
}

.honors__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: clamp(2rem, 4vw, 2.75rem);
}

.honors__title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  font-weight: 400;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  letter-spacing: -0.008em;
  color: var(--ink);
}

.honors__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.honor {
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule-soft);
}

.honor:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

.honor__label {
  margin: 0 0 0.35rem;
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}

.honor__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink);
  max-width: 62ch;
}

.honor__attr {
  margin: 0.25rem 0 0;
  font-size: var(--text-base);
  color: var(--ink-soft);
  max-width: 62ch;
}

.honor__dash {
  color: var(--ink-faint);
  margin-right: 0.15em;
}

.honor__link {
  margin-left: 0.4rem;
  font-size: var(--text-sm);
  color: var(--verdigris-deep);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--verdigris) 45%, transparent);
  text-underline-offset: 3px;
  white-space: nowrap;
}
.honor__link:hover { text-decoration-color: var(--verdigris); }

@media (min-width: 46rem) {
  .honors__inner {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 2.5rem;
  }

}

/* ---------- jump nav ---------- */

.jump {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
}

.jump__label {
  margin: 0;
  font-size: var(--text-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.jump__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.jump__link {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.jump__link:hover {
  color: var(--verdigris-deep);
  border-bottom-color: var(--verdigris);
}

.jump__n {
  font-size: var(--text-xs);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ---------- groups ---------- */

.body { padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.group {
  border-top: 1px solid var(--rule);
  padding-top: 1.75rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  scroll-margin-top: 1.5rem;
  position: relative;
}

/* A brass tick where each group starts. */
.group::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 3rem;
  height: 1px;
  background: var(--brass);
}

.group__head { margin-bottom: 0.5rem; }

.group__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  line-height: 1.15;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.group__note {
  margin: 0.4rem 0 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 50ch;
}

.group__count {
  margin: 0.3rem 0 0;
  font-size: var(--text-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.credits {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.credit {
  display: flex;
  align-items: baseline;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-block: 1.125rem;
  border-top: 1px solid var(--rule-soft);
}

.credit:first-child { border-top: none; padding-top: 0.25rem; }

.credit__main {
  flex: 1 1 20rem;
  min-width: 0;
}

.credit__title {
  display: inline;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  font-variation-settings: "opsz" 48, "SOFT" 40;
  line-height: 1.22;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
  overflow-wrap: break-word;
}

.credit__title:hover {
  color: var(--brass);
  text-decoration-color: color-mix(in srgb, var(--brass) 55%, transparent);
}

.credit__title--plain {
  text-decoration: none;
  color: var(--ink);
}

.credit__arrow {
  width: 0.5em;
  height: 0.5em;
  margin-left: 0.38em;
  color: var(--ink-faint);
  vertical-align: baseline;
  transition: color 0.18s ease, transform 0.18s ease;
}

.credit__title:hover .credit__arrow {
  color: var(--brass);
  transform: translate(2px, -2px);
}

.credit__source {
  margin: 0.35rem 0 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--ink-soft);
  overflow-wrap: break-word;
}

.credit__source em {
  font-style: italic;
  color: color-mix(in srgb, var(--ink) 85%, var(--brass));
}

.credit__venue-note { color: var(--ink-faint); }

.credit__meta {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
  color: var(--ink-faint);
}

.credit__sep { color: var(--rule); padding-inline: 0.1em; }

.credit__nolink { font-style: italic; }

.credit__buy {
  display: inline-block;
  padding: 0.05rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--ember) 55%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--ember) 88%, var(--ink));
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--ember) 10%, transparent);
}

.credit__marks {
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mark {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brass);
  border: 1px solid color-mix(in srgb, var(--brass) 40%, transparent);
  border-radius: 2px;
  padding: 0.2rem 0.55rem;
  text-decoration: none;
  background: color-mix(in srgb, var(--brass) 6%, transparent);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

a.mark:hover {
  background: color-mix(in srgb, var(--brass) 14%, transparent);
  border-color: color-mix(in srgb, var(--brass) 70%, transparent);
  color: var(--ink);
}

/* Mobile: the stamp sits under the credit as one inline line. Desktop: it
   becomes the right-hand column of the ledger. */
.credit__stamp {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  flex-flow: row wrap;
  align-items: baseline;
  gap: 0.15rem 0.6rem;
}

.credit__date {
  font-size: var(--text-sm);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.credit__date--soft { color: var(--ink-faint); font-size: var(--text-xs); }

.credit__status {
  font-size: var(--text-xs);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--verdigris-deep);
}

@media (min-width: 46rem) {
  .credit__stamp {
    flex: 0 0 9.5rem;
    width: 9.5rem;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 0.2rem;
    padding-top: 0.15rem;
  }
  .credit__date { white-space: normal; }
}

/* ---------- dispatches (newsletter signup) ---------- */

.dispatches {
  border-top: 1px solid var(--rule);
  padding-block: clamp(3.5rem, 7vw, 5rem);
  position: relative;
}

.dispatches::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(2rem, 5vw, 3.5rem);
  height: 1px;
  background: var(--brass);
}

.dispatches__eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.dispatches__lede {
  margin: 0 0 2rem;
  max-width: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 72, "SOFT" 60;
  font-size: 1.4rem;
  letter-spacing: -0.005em;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
}

.dispatches__lede em {
  font-style: italic;
  color: var(--brass);
}

@media (max-width: 900px) {
  .dispatches__lede {
    white-space: normal;
    max-width: 42ch;
    font-size: 1.2rem;
  }
}

.dispatches__form {
  max-width: 30rem;
}

.dispatches__label {
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.dispatches__row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dispatches__input {
  flex: 1 1 16rem;
  min-width: 0;
  padding: 0.75rem 0.95rem;
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dispatches__input::placeholder {
  color: color-mix(in srgb, var(--ink-soft) 70%, transparent);
  font-style: italic;
}

.dispatches__input:focus {
  outline: none;
  border-color: var(--brass);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.dispatches__submit {
  flex: 0 0 auto;
  padding: 0.75rem 1.4rem;
  background: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.dispatches__submit:hover,
.dispatches__submit:focus-visible {
  background: color-mix(in srgb, var(--brass) 85%, var(--ink) 15%);
  outline: none;
}

.dispatches__foot {
  margin: 1.1rem 0 0;
  font-size: var(--text-xs);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.dispatches__link {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--brass) 40%, transparent);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.dispatches__link:hover {
  color: var(--brass);
  text-decoration-color: var(--brass);
}

/* ---------- colophon + footer ---------- */

.colophon {
  border-top: 1px solid var(--rule);
  background: var(--paper-band);
  padding-block: clamp(2rem, 4vw, 2.75rem);
}

.colophon__note {
  margin: 0;
  max-width: 58ch;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.colophon__link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--brass) 45%, transparent);
  text-underline-offset: 4px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.colophon__link:hover {
  color: var(--brass);
  text-decoration-color: var(--brass);
}

.foot {
  border-top: 1px solid var(--rule);
  background: var(--paper-band);
  padding-block: 2rem;
  position: relative;
  z-index: 2;
}

.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}

.foot__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  font-variation-settings: "opsz" 24, "SOFT" 40;
  color: var(--ink);
}

.foot__meta {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

.foot__id { flex: 1 1 20rem; min-width: 0; }

.foot__social {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
}

.foot__social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.foot__social-link:hover {
  color: var(--brass);
  border-bottom-color: var(--brass);
}

.foot__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  color: var(--brass);
  transition: color 0.18s ease;
}

.foot__social-link:hover .foot__icon { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
