:root {
  color-scheme: light;

  --ink: #06070a;
  --muted: #666c7a;
  --quiet: #858e97;
  --faint: #b2b8c2;
  --line: #d6d9df;
  --soft-line: #e6e8ec;
  --paper: #f7f7f4;
  --panel: #f1f1ed;
  --white: #ffffff;

  --dark: #0a0b0e;
  --dark-line: #24262c;
  --dark-muted: #8e939e;

  --display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 28px;
  --max: 900px;
  --measure: 36rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin-top: 0; }
a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Dateline ---------- */

.dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  align-items: baseline;
  justify-content: space-between;
  padding: 13px var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}
.dateline strong {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* ---------- Sheet: rail + letter column ---------- */

.sheet {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin: 0 auto;
  padding: 72px 0 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.rail { display: none; }

.column {
  max-width: var(--measure);
  margin: 0 auto;
  width: 100%;
}

/* ---------- Masthead ---------- */

.masthead { margin-bottom: 44px; }

.from {
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead h1 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7.4vw, 4.15rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.masthead h1 em {
  font-style: italic;
}

.sub {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* ---------- Letter ---------- */

.letter {
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}

.letter p { margin-bottom: 1.5em; }
.letter strong { font-weight: 600; }

.letter a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
  transition: text-decoration-color 0.15s ease;
}
.letter a:hover { text-decoration-color: var(--ink); }

.lede:first-letter {
  float: left;
  margin: 0.06em 0.09em 0 0;
  font-family: var(--display);
  font-size: 3.4em;
  line-height: 0.82;
}

.lift {
  margin: 2.1em 0;
  padding: 1.05em 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.aside {
  display: block;
  margin: 2.4em 0;
  padding: 24px 26px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.6;
}
.aside-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing {
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.35;
}

/* ---------- Signature ---------- */

.signature {
  margin: 8px 0 96px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.sign-off {
  margin-bottom: 26px;
  font-style: italic;
  color: var(--muted);
}

.signed-by {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 22px 28px;
}
.signer { display: flex; flex-direction: column; gap: 3px; }
.signer strong {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 400;
  line-height: 1.2;
}
.signer .role {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Holdings ---------- */

.holdings-wrap {
  background: var(--dark);
  color: var(--paper);
}

.holdings-shell {
  width: min(calc(100% - (var(--gutter) * 2)), var(--max));
  margin: 0 auto;
  padding: 76px 0 84px;
}

.holdings-head {
  max-width: 44rem;
  margin-bottom: 52px;
}
.holdings-head .label {
  margin-bottom: 22px;
  color: var(--dark-muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.holdings-head h2 {
  margin-bottom: 18px;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4.6vw, 2.85rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.holdings-head .deck {
  margin-bottom: 0;
  max-width: 34rem;
  color: var(--dark-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.holdings { border-top: 1px solid var(--dark-line); }

.holding {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 30px 0;
  border-bottom: 1px solid var(--dark-line);
}

.holding .ix {
  color: var(--dark-muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.holding .name {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 1.72rem;
  line-height: 1.15;
  text-decoration: none;
}
a.name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: #3a3d45;
  transition: text-decoration-color 0.15s ease;
}
a.name:hover { text-decoration-color: var(--paper); }

.holding .descr {
  margin-bottom: 16px;
  max-width: 34rem;
  color: #cfd2d8;
  font-size: 0.98rem;
  line-height: 1.55;
}

.holding .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  color: var(--dark-muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.5;
}
.holding .meta strong {
  display: block;
  color: #5f636d;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.holding .right {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--dark-muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.holding .right strong {
  color: var(--paper);
  font-weight: 500;
}
.holding .right small {
  color: #5f636d;
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.holding.open .name { color: var(--dark-muted); }
.holding.open .descr { color: var(--dark-muted); }

/* ---------- Colophon ---------- */

.colophon {
  background: var(--paper);
  padding: 60px var(--gutter) 34px;
}

.colophon .inner {
  width: min(100%, var(--max));
  margin: 0 auto 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px 40px;
}

.colophon h3 {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.colophon p {
  margin-bottom: 0.7em;
  max-width: 30rem;
  font-size: 0.95rem;
  line-height: 1.55;
}
.colophon .small { color: var(--quiet); font-size: 0.86rem; }

.colophon ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.9;
}
.colophon a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
}
.colophon a:hover { text-decoration-color: var(--ink); }

.signoff {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  justify-content: space-between;
  color: var(--quiet);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Wider viewports ---------- */

@media (min-width: 900px) {
  :root { --gutter: 48px; }

  .sheet {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 56px;
    padding-top: 104px;
  }

  .rail {
    display: block;
    position: sticky;
    top: 56px;
    align-self: start;
    padding-top: 6px;
  }
  .rail-no {
    display: block;
    font-family: var(--display);
    font-size: 3.1rem;
    line-height: 1;
    color: var(--ink);
  }
  .rail-rule {
    display: block;
    width: 40px;
    height: 1px;
    margin: 16px 0;
    background: var(--line);
  }
  .rail-label {
    display: block;
    color: var(--quiet);
    font-family: var(--sans);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .column { margin: 0; }

  .holding {
    grid-template-columns: 96px minmax(0, 1fr) 190px;
    gap: 0 32px;
    padding: 36px 0;
  }
  .holding .ix { padding-top: 8px; }
  .holding .right { align-items: flex-end; text-align: right; padding-top: 8px; }
}

@media (min-width: 1180px) {
  body { font-size: 20px; }
}

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