:root {
  --ink: #211d20;
  --muted: #70686b;
  --paper: #f2efe9;
  --paper-deep: #e6e0d6;
  --plum: #39242f;
  --plum-light: #563544;
  --amber: #b96f2e;
  --amber-light: #f1d5b6;
  --line: #cfc7bb;
  --white: #fffdfa;
  --shadow: 0 26px 80px rgba(48, 35, 40, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}

a { color: var(--plum-light); text-underline-offset: .2em; }
a:hover { color: var(--amber); }
img { display: block; max-width: 100%; }
button, select { font: inherit; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: .78rem;
  font-weight: 820;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-mark {
  width: 18px;
  height: 26px;
  display: inline-block;
  border: 2px solid var(--plum);
  border-radius: 10px 10px 2px 2px;
  position: relative;
}

.wordmark-mark::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  position: absolute;
  left: 5px;
  top: 5px;
}

.header-jump {
  color: var(--plum);
  font-size: .84rem;
  font-weight: 760;
  text-decoration: none;
}

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 76px;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .42fr);
  align-items: end;
  column-gap: clamp(40px, 9vw, 120px);
}

.kicker {
  grid-column: 1 / -1;
  margin: 0 0 19px;
  color: var(--amber);
  font-size: .77rem;
  font-weight: 820;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2 {
  margin-top: 0;
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.025em;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3rem, 6.2vw, 6rem);
  line-height: .98;
}

.dek {
  margin: 0 0 16px;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2.15vw, 1.52rem);
  line-height: 1.48;
}

.meta {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: .78rem;
}

.hero-image {
  margin: 54px 0 0;
  position: relative;
  background: var(--plum);
  box-shadow: var(--shadow);
}

.hero-image::before {
  content: "";
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  position: absolute;
  right: 28px;
  top: 28px;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-image figcaption {
  padding: 13px 18px 15px;
  color: #e9dde2;
  font-size: .78rem;
  letter-spacing: .02em;
}

.article-shell {
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 110px minmax(0, 760px);
  gap: clamp(38px, 7vw, 80px);
  padding-bottom: 104px;
}

.article-rail {
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #8d8186;
  font-size: .69rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.article-rail::before {
  content: "";
  width: 1px;
  height: 72px;
  margin-bottom: 8px;
  background: var(--amber);
}

article { min-width: 0; }
article p, article li { font-size: 1.035rem; }
article p { margin: 0 0 21px; }

.lede {
  margin-bottom: 28px;
  color: var(--plum);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.33rem, 3vw, 1.72rem);
  line-height: 1.48;
}

article h2 {
  margin: 62px 0 20px;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.14;
}

article h2 > span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .69rem;
  font-weight: 840;
  letter-spacing: .16em;
}

article em { color: var(--plum); }

.callout {
  margin: 38px 0 44px;
  padding: 26px 28px;
  border-left: 4px solid var(--amber);
  background: var(--paper-deep);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--plum);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.callout p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.check-list {
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.check-list li {
  padding: 15px 0 15px 34px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.check-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid var(--amber);
  border-radius: 50%;
  position: absolute;
  left: 2px;
  top: 23px;
}

.builder {
  width: min(1000px, calc(100vw - 32px));
  margin: 66px 50%;
  padding: clamp(26px, 5vw, 48px);
  color: #f8f2f5;
  background:
    radial-gradient(circle at 100% 0%, rgba(185,111,46,.28), transparent 26rem),
    var(--plum);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.builder-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
}

.builder-label {
  margin: 0 0 8px;
  color: #e0ac7c;
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.builder h2 {
  margin: 0 0 10px;
  color: white;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.builder-heading p:last-child {
  max-width: 650px;
  margin: 0;
  color: #d8c8cf;
}

.copy-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.34);
  color: white;
  background: transparent;
  cursor: pointer;
}

.copy-button:hover { border-color: white; background: rgba(255,255,255,.08); }

.builder-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #c8b4bd;
  font-size: .72rem;
  font-weight: 780;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.field select {
  width: 100%;
  min-height: 50px;
  padding: 0 36px 0 13px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  color: white;
  background: var(--plum-light);
}

.note-preview {
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.055);
}

.note-preview > div {
  min-height: 62px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}

.note-preview > div:last-child { border-bottom: 0; }
.note-preview span { color: #d79c68; font-size: .68rem; font-weight: 840; letter-spacing: .12em; }
.note-preview strong { color: #fff; font-size: .96rem; font-weight: 620; }
.copy-status { min-height: 1.6em; margin: 8px 0 0; color: #e0ac7c; font-size: .8rem; }

.table-wrap {
  width: min(940px, calc(100vw - 32px));
  margin: 32px 50% 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--white);
  transform: translateX(-50%);
}

table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--plum); background: var(--paper-deep); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: .91rem; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--plum); font-weight: 780; }

.closing-panel {
  margin-top: 68px;
  padding: clamp(28px, 5vw, 46px);
  border-top: 6px solid var(--amber);
  color: var(--white);
  background: var(--plum);
}

.closing-panel .closing-label {
  margin-bottom: 12px;
  color: #e0ac7c;
  font-size: .72rem;
  font-weight: 820;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.closing-panel h2 { margin: 0 0 18px; color: white; }
.closing-panel p:last-child { margin-bottom: 0; color: #e4d9de; }

footer {
  min-height: 108px;
  padding: 30px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #dacbd2;
  background: var(--plum);
  font-size: .78rem;
}

footer span:first-child { color: white; font-weight: 780; letter-spacing: .08em; text-transform: uppercase; }

.not-found {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.not-found-card { max-width: 620px; text-align: center; }
.not-found-code { color: var(--amber); font-size: .8rem; font-weight: 820; letter-spacing: .16em; }
.not-found h1 { margin: 16px 0 24px; font-size: clamp(3rem, 10vw, 6rem); }
.not-found a { display: inline-block; margin-top: 12px; font-weight: 760; }

@media (max-width: 820px) {
  .hero-copy { grid-template-columns: 1fr; }
  .dek { margin-top: 26px; }
  .meta { grid-column: 1; margin-top: 12px; }
  .article-shell { grid-template-columns: 1fr; }
  .article-rail { display: none; }
  .builder-controls { grid-template-columns: 1fr; }
  .builder-heading { flex-direction: column; }
}

@media (max-width: 560px) {
  .site-header, .hero, .article-shell { width: calc(100% - 28px); }
  .site-header { min-height: 66px; }
  .header-jump { display: none; }
  .hero { padding: 50px 0 54px; }
  h1 { font-size: 2.72rem; line-height: 1.03; }
  .hero-image { margin-top: 36px; }
  .hero-image::before { width: 48px; height: 48px; right: 16px; top: 16px; }
  .builder { width: calc(100vw - 18px); padding: 24px 14px; }
  .note-preview > div { grid-template-columns: 1fr; gap: 4px; }
  .table-wrap { width: calc(100vw - 18px); }
  footer { align-items: start; flex-direction: column; }
}
