:root {
  --paper: #ffffff;
  --ink: #16191d;
  --muted: #7b8086;
  --rule: #e4e2dc;
  --serif: "Cormorant Garamond", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-weight: 300;
       -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 64px; } }

header { border-bottom: 1px solid var(--rule); }
header .wrap { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.mark { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.01em; }
.nav { font-size: 13px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.nav:hover, .nav[aria-current] { color: var(--ink); }

main { flex: 1; }
.label { font-size: 13px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

main.home { display: flex; align-items: center; }
.hero { padding-top: clamp(72px, 14vh, 180px); padding-bottom: clamp(72px, 12vh, 160px); }
.hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(46px, 6.6vw, 84px); line-height: 1.05;
           letter-spacing: -0.005em; margin: 0 0 44px; }
.hero p { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.85; max-width: 43em; margin: 0 0 28px; }

.list { padding-top: clamp(64px, 12vh, 140px); padding-bottom: 96px; }
.list .label { color: var(--ink); margin: 0 0 32px; }
.entry { display: block; max-width: 1100px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 40px 0 44px; }
.entry .top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; }
.entry h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.2; margin: 0; }
.entry .date { font-size: 16px; color: var(--muted); white-space: nowrap; }
.entry .date::after { content: "\2192"; margin-left: 14px; }
.entry p { font-size: 18px; line-height: 1.75; color: var(--muted); max-width: 40em; margin: 18px 0 0; }
.entry:hover h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }

.letter { padding-top: 20px; padding-bottom: 96px; }
.back { display: inline-block; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 64px; }
.back::before { content: "\2190"; margin-right: 10px; }
.letter h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 4vw, 52px); line-height: 1.12; margin: 0 0 18px;
             max-width: 24ch; }
.letter .date { font-size: 15px; margin: 0 0 64px; }
.letter .body { max-width: 980px; font-family: var(--serif); font-weight: 500; font-size: 21px; line-height: 1.75; }
.letter .body p { margin: 0 0 26px; }
.letter .body .label { font-family: var(--sans); margin: 60px 0 22px; }
.todo { color: var(--muted); font-style: italic; }
.quote { margin: 0 0 40px; padding: 4px 0 4px 28px; border-left: 1px solid var(--ink); }
.quote p { font-style: italic; font-size: 25px; line-height: 1.6; margin: 0 0 14px; }
.quote .cite { font-family: var(--sans); font-style: normal; font-weight: 400; font-size: 13px; letter-spacing: 0.16em;
               text-transform: uppercase; color: var(--muted); margin: 0; }
.sign { max-width: 980px; border-top: 1px solid var(--rule); margin-top: 64px; padding-top: 36px; }
.sign .name { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0; }
.sign .role { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
               font-size: 14px; color: var(--muted); }
