/* Copied from the homepage (index.html) so /letters/ matches it exactly. */
  :root {
    /* This page commits to one look. Every colour is painted explicitly
       so it never borrows a theme from the browser. */
    --paper:      #FAF7F0;
    --paper-edge: #E0D6C4;
    --ink:        #14100D;
    --body:       #4A4238;
    --muted:      #7C7264;
    --faint:      #9A8F7E;
    --fieldline:  #C6B99F;

    --band:       #1E160F;
    --band-top:   #281D14;
    --band-btm:   #160F0A;
    --cream:      #F5EAD7;
    --cream-mute: rgba(245, 234, 215, 0.78);

    --gold:       #b08d57;  /* House Gold */
    --gold-bright:#d4a960;  /* Wink Gold */
    --gold-ink:   #8A6A2E;  /* House Gold darkened for cream ground */

    --serif:   'Cormorant Garamond', 'Hoefler Text', Georgia, serif;
    --display: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
    --sans:    'Karla', 'Helvetica Neue', Arial, sans-serif;
    --mono:    'IBM Plex Mono', 'SF Mono', Menlo, monospace;

    --measure: 640px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  /* Paper grain, multiplied over the whole page including the portrait,
     so the print and the page share one surface. */
  .gp-grain {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.5;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.40' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.30'/%3E%3C/svg%3E");
    background-size: 260px 260px;
  }

  /* ---------------- the ink band ---------------- */

  .gp-band {
    position: relative;
    z-index: 5;
    overflow: hidden;
    background: var(--band);
    border-bottom: 1px solid var(--gold);
    padding: clamp(20px, 4.4vw, 38px) clamp(20px, 5vw, 54px) clamp(17px, 3.4vw, 32px);
    text-align: center;
  }
  .gp-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
      url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.40' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E"),
      radial-gradient(ellipse 60% 90% at 50% 40%, rgba(214,180,132,0.16), transparent 72%),
      linear-gradient(to bottom, var(--band-top), var(--band-btm));
    background-size: 260px 260px, auto, auto;
    background-blend-mode: soft-light, normal, normal;
  }
  .gp-band-in { position: relative; z-index: 2; }

  .gp-locale {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--cream-mute);
    padding-left: 0.34em;
    margin-bottom: clamp(10px, 2.2vw, 18px);
  }

  .gp-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.05em;
    line-height: 0.95;
  }
  .gp-the {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(13px, 3.4vw, 17px);
    letter-spacing: 0.24em;
    text-transform: lowercase;
    color: var(--cream-mute);
    margin-bottom: 0.35em;
  }
  .gp-name {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(35px, 10.4vw, 62px);
    letter-spacing: 0.03em;
    color: var(--cream);
  }
  /* the "ai" wink, in Wink Gold */
  .gp-ai {
    font-family: var(--display);
    font-weight: 600;
    background: linear-gradient(135deg, #E4C28A 0%, var(--gold-bright) 30%, #8A6B40 50%, var(--gold-bright) 70%, #E4C28A 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gpShimmer 5s ease-in-out infinite;
  }
  @keyframes gpShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* ---------------- the cream page ---------------- */

  .gp-main {
    position: relative;
    z-index: 2;
    flex: 1;
    width: 100%;
    max-width: var(--measure);
    margin: 0 auto;
    padding: clamp(16px, 3.6vw, 40px) clamp(20px, 5vw, 40px) clamp(24px, 4.4vw, 44px);
    text-align: center;
  }

  .gp-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 1.62 / 1;
    overflow: hidden;
    margin-bottom: clamp(12px, 2.6vw, 26px);
    /* dissolve on every edge so the watercolour joins the paper
       instead of sitting on it as a rectangle */
    -webkit-mask-image:
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 48%, rgba(0,0,0,0.45) 80%, transparent 100%),
      linear-gradient(to right,  transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to bottom, transparent 0%, #000 8%, #000 48%, rgba(0,0,0,0.45) 80%, transparent 100%),
      linear-gradient(to right,  transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-composite: intersect;
  }
  .gp-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 4%;
    display: block;
  }

  .gp-headline {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(29px, 7.4vw, 38px);
    line-height: 1.04;
    letter-spacing: -0.018em;
    color: var(--ink);
    text-wrap: balance;
    margin-bottom: clamp(10px, 2.1vw, 18px);
  }

  .gp-body p {
    font-family: var(--serif);
    font-size: clamp(17px, 2.4vw, 19px);
    line-height: 1.55;
    color: var(--body);
    max-width: 40ch;
    margin: 0 auto clamp(8px, 1.7vw, 14px);
  }
  .gp-body p.gp-forward {
    font-style: italic;
    color: var(--muted);
  }
  .gp-nb { white-space: nowrap; }

  /* ---------------- form ---------------- */

  .cmb-form {
    max-width: 430px;
    margin: clamp(16px, 3.2vw, 30px) auto 0;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2.6vw, 16px);
  }
  .cmb-field { display: block; text-align: left; }
  .cmb-field-label {
    display: block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #6E6455;
    margin-bottom: 5px;
  }
  .cmb-field input {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid var(--fieldline);
    background: transparent;
    padding: 6px 0 7px;
    font-family: var(--serif);
    font-size: 19px;
    color: var(--ink);
    outline: none;
    transition: border-color 250ms ease;
  }
  .cmb-field input:focus,
  .cmb-field input:focus-visible { border-bottom-color: var(--ink); }
  .cmb-field input:-webkit-autofill {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 1000px var(--paper) inset;
    transition: background-color 9999s ease-out 0s;
  }

  .cmb-cta {
    margin-top: 6px;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--ink);
    padding: clamp(15px, 3.2vw, 18px);
    font-family: var(--sans);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 250ms ease, color 250ms ease;
  }
  .cmb-cta:hover,
  .cmb-cta:focus-visible {
    background: var(--band);
    border-color: var(--band);
    outline: none;
  }
  .cmb-cta:disabled { opacity: 0.6; cursor: default; }

  .cmb-discretion {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
  }

  /* The Ten. Added Sept 5 2026: the guide was live at /the-ten/ with nothing
     on the site linking to it. One line, below the form, out of the way of the ask. */
  .gp-gift {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--paper-edge);
    text-align: center;
  }
  .gp-gift p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--muted);
    margin: 0;
  }
  .gp-gift a {
    display: inline-block;
    margin-top: 7px;
    font-family: var(--display);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 3px;
    min-height: 44px;
    line-height: 30px;
  }
  .gp-gift a:hover { color: var(--ink); border-color: var(--ink); }

  .cmb-success p.gp-success-lead {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(24px, 5vw, 30px);
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 8px;
  }
  .cmb-success p.gp-success-sub {
    font-family: var(--serif);
    font-style: italic;
    font-size: 19px;
    color: var(--body);
  }

  .gp-footer {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
    text-align: center;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 18px clamp(20px, 5vw, 40px) clamp(28px, 5vw, 40px);
    border-top: 1px solid var(--paper-edge);
    position: relative;
    z-index: 2;
  }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .gp-ai { animation: none; background-position: 0% 50%; }
    * { transition-duration: 0.01ms !important; }
  }

/* ---------------- /letters/ ---------------- */
a.gp-band-in { display: block; text-decoration: none; }
.gp-band { padding-top: clamp(16px, 3vw, 26px); padding-bottom: clamp(14px, 2.6vw, 22px); }
.gp-band .gp-name { font-size: clamp(30px, 8vw, 44px); }

.lt-main {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(22px, 4.4vw, 44px) clamp(20px, 5vw, 40px) clamp(28px, 5vw, 52px);
}
.lt-main a { color: var(--gold-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lt-main a:hover { color: var(--ink); }

.lt-meta {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--body);
}
.lt-crumb { margin-bottom: clamp(18px, 3.4vw, 30px); }
.lt-crumb a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  margin: -12px 0;
}

/* the letter */
.lt-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(31px, 7vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-wrap: balance;
  margin: 12px 0 clamp(22px, 4vw, 32px);
}
.lt-body p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.4vw, 20px);
  line-height: 1.68;
  color: #3a3026;
  margin: 0 0 1.05em;
  text-wrap: pretty;
}
.lt-body a { font-weight: 600; }
.lt-rule {
  border: 0;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 1.8em auto;
}
.lt-prompt {
  margin: 1.6em 0;
  padding: 20px 22px 16px;
  background: #F3EDE1;
  border-left: 2px solid var(--gold);
}
.lt-prompt figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 10px;
}
.lt-prompt blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17.5px, 2.3vw, 19px);
  line-height: 1.6;
  color: var(--ink);
}
.lt-copy {
  margin-top: 14px;
  min-height: 40px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid var(--fieldline);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.lt-copy:hover, .lt-copy:focus-visible { border-color: var(--ink); outline: none; }
.lt-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin-top: 0.4em;
}

/* earlier / next */
.lt-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: clamp(32px, 6vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--paper-edge);
}
.lt-pager a {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
}
.lt-pager a span {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 6px;
}
.lt-pager a:hover { color: var(--gold-ink); }
.lt-next { text-align: right; grid-column: 2; }

/* index */
.lt-index-h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 8vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-align: center;
}
.lt-index-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 2.4vw, 19px);
  line-height: 1.55;
  color: var(--body);
  text-align: center;
  max-width: 40ch;
  margin: 10px auto clamp(24px, 4.4vw, 36px);
}
.lt-list { list-style: none; border-top: 1px solid var(--paper-edge); }
.lt-list li { border-bottom: 1px solid var(--paper-edge); }
.lt-list a {
  display: block;
  padding: clamp(18px, 3.4vw, 26px) 0;
  text-decoration: none;
  color: inherit;
}
.lt-item-title {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 4.6vw, 28px);
  line-height: 1.15;
  color: var(--ink);
  margin: 8px 0 6px;
  transition: color 200ms ease;
}
.lt-item-ex {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--body);
}
.lt-list a:hover .lt-item-title, .lt-list a:focus-visible .lt-item-title { color: var(--gold-ink); }

/* subscribe */
.lt-join {
  margin-top: clamp(36px, 7vw, 56px);
  padding-top: clamp(26px, 5vw, 36px);
  border-top: 1px solid var(--gold);
  text-align: center;
}
.lt-join h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(25px, 5.4vw, 31px);
  line-height: 1.1;
  color: var(--ink);
}
.lt-join > p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--body);
  margin-top: 6px;
}
.lt-join .cmb-success { margin-top: 18px; }

@media (max-width: 420px) {
  .lt-pager { grid-template-columns: 1fr; }
  .lt-next { grid-column: 1; text-align: left; }
}
