/* ==========================================================================
   ENGYRO — set like a research journal
   ========================================================================== */
:root {
  --paper: #f3ede5;
  --paper-2: #e9dfd3;
  --night: #1f0b16;
  --ink: #26101b;
  --ink-2: #5d4752;
  --ink-3: #8a7680;
  --wine: #7c1838;
  --flesh: #ecb7c2;
  --flesh-2: #f6dbe0;
  --rule: rgba(38, 16, 27, 0.85);
  --hair: rgba(38, 16, 27, 0.16);
  --hair-light: rgba(243, 237, 229, 0.18);

  --display: "Lora", Georgia, "Times New Roman", serif;
  --text: "Manrope", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;

  --wrap: 1240px;
  --toc-w: 210px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 0.75em; }
strong, b { font-weight: 600; }
code { font-family: var(--mono); font-size: 0.88em; }
ul, ol { margin: 0; padding: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.muted { color: var(--ink-2); }
em, i, caption, figcaption, .tablenote { font-family: var(--display); }

/* caps for every label */
.cover__kicker,
.sheet__title,
.sheet dt,
.specs dt,
.ws__meta dt,
.toc__label,
.toc__list::before,
.aside-note span,
.notice__label,
thead th,
.fname small,
.checklist__count,
.ws__no,
.juror__org,
caption span,
figcaption span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 500;
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-block;
  padding: 0.6em 1.2em 0.65em;
  border: 1px solid currentColor;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--wine { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.btn--wine:hover { background: var(--ink); border-color: var(--ink); }
/* the one call to action: pink fig flesh on the dark ground */
.btn--apply {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.7em 0.9em;
  background: var(--flesh);
  border-color: var(--flesh);
  color: var(--night);
  font-size: 19px;
  font-weight: 700;
  box-shadow: 6px 6px 0 var(--wine);
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn--apply::after { content: "→"; transition: transform 0.15s; }
.btn--apply:hover { background: var(--paper); border-color: var(--paper); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--wine); }
.btn--apply:hover::after { transform: translateX(4px); }
.btn--apply:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

.textlink {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.textlink { color: var(--wine); font-weight: 500; }
.textlink:hover { text-decoration-thickness: 2px; }

/* ==========================================================================
   Cover
   ========================================================================== */
.cover {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--night);
  color: var(--paper);
  padding-bottom: 72px;
}

/* fig leaves on the dark grounds */
.cover, .closing { position: relative; overflow: hidden; isolation: isolate; }
.cover::before, .cover::after, .closing::before, .closing::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: url("assets/fig-leaf.svg") center / contain no-repeat;
  opacity: 0.55;
  pointer-events: none;
}
.cover::before { width: 620px; aspect-ratio: 200 / 220; right: -140px; top: -90px; transform: rotate(-32deg); }
.cover::after { width: 440px; aspect-ratio: 200 / 220; left: -170px; bottom: -150px; transform: rotate(38deg); opacity: 0.4; }
.closing::before { width: 380px; aspect-ratio: 200 / 220; left: -120px; top: -60px; transform: rotate(118deg); opacity: 0.4; }
.closing::after { width: 460px; aspect-ratio: 200 / 220; right: -150px; bottom: -170px; transform: rotate(-24deg); }
.cover > .wrap { flex: 1; display: flex; flex-direction: column; width: 100%; }
.cover__grid { flex: 1; align-content: center; }
.cover--page { min-height: 0; }

.masthead {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hair-light);
}
.brand { display: block; flex: none; }
.brand img { width: auto; height: 32px; }
.masthead__nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14.5px;
  font-weight: 500;
}
.masthead__nav a { text-decoration: none; color: rgba(243, 237, 229, 0.78); }
.masthead__nav a:hover,
.masthead__nav a[aria-current] { color: var(--paper); text-decoration: underline; text-underline-offset: 0.25em; }

.cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 72px;
  padding-top: 80px;
  align-items: start;
}
.cover__kicker { color: var(--flesh); font-size: 14px; margin-bottom: 28px; }
.cover__title {
  max-width: 13em;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 32px;
}
.cover__title--page { font-size: clamp(36px, 4.4vw, 58px); }
.cover__lead {
  max-width: 32em;
  font-size: 19px;
  color: rgba(243, 237, 229, 0.82);
  margin-bottom: 36px;
}
.cover__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cover__dates {
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--flesh);
}
.cover__dates span { white-space: nowrap; }

/* sample proposal page */
.specimen { width: 540px; margin: 0; }
.specimen__page {
  padding: 44px 44px 38px;
  background: #fbf8f4;
  color: #1d1a1b;
  font-family: "Times New Roman", Times, serif;
  font-size: 16px;
  line-height: 1.5;
  box-shadow: 12px 12px 0 rgba(236, 183, 194, 0.16);
}
.specimen__page p { margin: 0 0 0.7em; }
.specimen__page i { font-family: inherit; }
.specimen__cat {
  font-family: var(--text);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #6b5f63;
}
.specimen__title { font-size: 21px; font-weight: 700; line-height: 1.25; }
.specimen mark {
  background: none;
  padding: 0;
  border-bottom: 1.5px solid var(--wine);
}
.specimen mark::before {
  content: attr(data-n);
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 5px;
  background: var(--wine);
  color: var(--paper);
  font-family: var(--text);
  font-weight: 700;
  font-size: 11px;
  line-height: 17px;
  text-align: center;
  vertical-align: 1px;
}
.specimen__lines {
  display: block;
  height: 48px;
  margin: 0 0 18px;
  background: repeating-linear-gradient(#cfc6c0 0 1.5px, transparent 1.5px 12px);
  -webkit-mask: linear-gradient(90deg, #000 70%, transparent);
  mask: linear-gradient(90deg, #000 70%, transparent);
}
.specimen__refs { font-weight: 700; text-align: center; }
.specimen__ref { padding-left: 2em; text-indent: -2em; }
.specimen__key {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(243, 237, 229, 0.82);
}
.specimen__key li { display: flex; gap: 10px; align-items: baseline; }
.specimen__key b { color: var(--flesh); }
.specimen figcaption {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid var(--hair-light);
  font-size: 13px;
  font-style: italic;
  color: rgba(243, 237, 229, 0.6);
}
.specimen figcaption span { color: var(--paper); }

/* spec sheet */
.sheet { width: 380px; border-top: 4px double var(--paper); padding-top: 12px; margin-top: 8px; }
.sheet__title { margin-bottom: 6px; }
.sheet dl { margin: 0; }
.sheet dl > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--hair-light);
  font-size: 15px;
  line-height: 1.4;
}
.sheet dt { color: var(--flesh); font-size: 12px; padding-top: 2px; }
.sheet dd { margin: 0; color: rgba(243, 237, 229, 0.88); }
.sheet code { font-size: 12px; }

/* ==========================================================================
   Document layout
   ========================================================================== */
.doc {
  display: grid;
  grid-template-columns: var(--toc-w) minmax(0, 1fr);
  gap: 72px;
  padding-top: 72px;
  padding-bottom: 96px;
}

/* contents */
.toc__toggle { display: none; }
.toc__list {
  position: sticky;
  top: 32px;
  list-style: none;
  font-size: 15px;
  line-height: 1.3;
  border-top: 4px double var(--rule);
  padding-top: 12px;
}
.toc__list::before {
  content: "Contents";
  display: block;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.toc__list a {
  display: flex;
  gap: 10px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--ink-2);
}
.toc__list a span { min-width: 24px; color: var(--ink-3); }
.toc__list a:hover { color: var(--ink); }
.toc__list a.is-active,
.toc__list a.is-active span { color: var(--wine); }
.toc__list a.is-active { font-weight: 500; }

/* sections */
.sec { padding-bottom: 88px; scroll-margin-top: 24px; }
.sec:last-child { padding-bottom: 0; }
.sec__head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  border-top: 4px double var(--rule);
  padding-top: 18px;
  margin-bottom: 36px;
}
.sec__no {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 600;
  line-height: 0.8;
  color: var(--wine);
}
.sec__head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.h3 {
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 8px 0 14px;
}
.lede { font-size: 20px; line-height: 1.5; }

/* margin note */
.aside-note {
  max-width: 520px;
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding-top: 10px;
}
.aside-note span { display: block; color: var(--wine); margin-bottom: 4px; }
.aside-note strong { font-weight: 600; color: var(--ink); }

.dash { list-style: none; }
.dash li { position: relative; padding-left: 1.2em; margin-bottom: 3px; }
.dash li::before { content: "–"; position: absolute; left: 0; color: var(--wine); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 28px 0 12px; }
table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 10px;
  font-style: italic;
  color: var(--ink-2);
}
caption span, figcaption span { font-style: normal; color: var(--ink); margin-right: 6px; }
thead th {
  color: var(--ink-2);
  text-align: left;
  padding: 10px 12px 10px 0;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  vertical-align: bottom;
}
tbody th, tbody td { padding: 12px 12px 12px 0; vertical-align: top; text-align: left; }
tbody tr { border-bottom: 1px solid var(--hair); }
tbody:last-child tr:last-child { border-bottom: 2px solid var(--rule); }
tbody th { font-weight: 400; }

.tablenote { font-size: 14px; color: var(--ink-2); font-style: italic; }

.rubric td:first-child { width: 48px; color: var(--wine); font-weight: 600; }
.rubric tbody th {
  width: 34%;
  font-family: var(--display);
  font-weight: 600;
}
.rubric tbody td:last-child { color: var(--ink-2); }

/* figures */
.fig { margin: 24px 0 0; }
.fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.fig figcaption {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-2);
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--hair);
}
.fig--wide { max-width: 720px; }

.fig text { font-family: var(--text); font-size: 12px; fill: var(--ink-2); }
.fig text.lbl { fill: var(--ink); font-size: 13px; font-weight: 600; }
.fig .page { fill: #fbf8f4; stroke: var(--ink); stroke-width: 1; }
.fig .page--opt { stroke-dasharray: 4 3; }
.fig .ink { fill: var(--ink); }
.fig .ink-soft { fill: var(--ink-3); }
.fig .margin { fill: none; stroke: var(--wine); stroke-width: 0.8; stroke-dasharray: 3 3; }
.fig .ext { stroke: var(--ink-3); stroke-width: 0.6; stroke-dasharray: 2 2; }
.fig .dim { fill: none; stroke: var(--wine); stroke-width: 1; }
.fig .leader { fill: none; stroke: var(--ink-2); stroke-width: 0.8; }
.fig .dot, .fig .tag { fill: var(--wine); }
.fig text.tag-text { fill: var(--paper); font-weight: 600; }

.split { display: grid; gap: 36px; }
.split .fig { margin: 0; max-width: 680px; }
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.specs > div { padding: 12px 16px 14px 0; }
.specs > div + div { padding-left: 16px; border-left: 1px solid var(--hair); }
.specs dt { color: var(--wine); margin-bottom: 2px; }
.specs dd { margin: 0; font-size: 17px; font-weight: 500; }

.parts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  margin-top: 32px;
}
.part { border-top: 1px solid var(--rule); padding-top: 14px; font-size: 16px; }
.part h4 {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.part h4 span { color: var(--wine); margin-right: 10px; }
.part h4 em { display: block; font-style: normal; font-weight: 400; color: var(--ink-2); font-size: 15px; }

/* categories */
.cats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-top: 2px solid var(--rule);
}
.cats li {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 8px;
  align-content: start;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--hair);
}
.cats b {
  grid-row: span 2;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  color: var(--wine);
}
.cats h4 { font-size: 17px; line-height: 1.35; }
.cats p { margin: 3px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* filename anatomy */
.fname {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 18px;
  margin-bottom: 28px;
  padding: 28px 24px 22px;
  background: var(--paper-2);
}
.fname code {
  display: block;
  font-size: clamp(15px, 2.1vw, 26px);
  line-height: 1.2;
  color: var(--ink);
}
.fname__seg { display: flex; flex-direction: column; }
.fname__seg code { padding-bottom: 8px; border-bottom: 2px solid var(--wine); color: var(--wine); }
.fname__seg--fixed code { color: var(--ink); border-bottom-color: var(--ink-3); }
.fname__seg small { font-size: 11px; color: var(--ink-2); padding-top: 6px; }
.inline-code { background: var(--paper-2); padding: 2px 8px; white-space: nowrap; }

/* checklist */
.checklist {
  list-style: none;
  columns: 2;
  column-gap: 40px;
  margin-top: 16px;
  border-top: 2px solid var(--rule);
}
.checklist li { break-inside: avoid; border-bottom: 1px solid var(--hair); }
.checklist label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.45;
}
.checklist input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  position: relative;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1.5px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.checklist input:checked::after {
  content: "";
  position: absolute;
  left: 1px;
  top: -6px;
  width: 8px;
  height: 16px;
  border: solid var(--wine);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}
.checklist input:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.checklist input:checked + span { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--wine); }
.checklist__count { margin: 12px 0 4px; color: var(--ink-2); }
.checklist__count.is-done { color: var(--wine); }
.checklist__hint { font-size: 14px; color: var(--ink-3); }

/* notice */
.notice {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  margin-top: 16px;
  padding: 26px 28px;
  background: var(--night);
  color: var(--paper);
}
.notice__label { font-size: 14px; color: var(--flesh); margin: 0; line-height: 1.6; }
.notice p:last-child { margin-bottom: 0; }

/* Q&A */
.qa { margin: 0 0 56px; border-top: 2px solid var(--rule); }
.qa > div {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
  align-items: baseline;
}
.qa dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--wine);
}
.qa dd { margin: 0; font-size: 18px; }

/* workshops */
.ws-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  margin: 28px 0 24px;
}
.ws { display: flex; flex-direction: column; border-top: 2px solid var(--rule); padding-top: 14px; }
.ws__no { color: var(--wine); margin-bottom: 6px; }
.ws .h3 { margin-top: 0; }
.ws__meta { margin: auto 0 0; padding-top: 8px; }
.ws__meta > div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--hair);
  font-size: 16px;
}
.ws__meta > div:last-child { border-bottom: 1px solid var(--hair); }
.ws__meta dt { color: var(--ink-2); font-size: 12px; padding-top: 3px; }
.ws__meta dd { margin: 0; }
.ws__cred { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }

/* ==========================================================================
   Home
   ========================================================================== */
.home { padding-top: 104px; }
.home .sec { padding-bottom: 80px; }
.home .sec__head { padding-top: 32px; margin-bottom: 28px; }
.home .sec__no { font-size: clamp(44px, 5vw, 72px); }
.home .sec__head h2 { font-size: clamp(32px, 4.4vw, 60px); }
.home .lede { max-width: 40em; font-size: clamp(18px, 1.6vw, 22px); }

/* path: four steps on one line */
.path {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.path::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 2px;
  background: var(--wine);
}
.path li { position: relative; padding-top: 44px; counter-increment: step; }
.path li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--wine);
  border-radius: 50%;
  background: var(--paper);
}
.path time {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--wine);
}
.path h3 {
  font-family: var(--display);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.path h3::before { content: counter(step) ". "; color: var(--ink-3); }
.path p { margin: 0; font-size: 18px; color: var(--ink-2); }


/* category list */
.fields {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  margin: 28px 0 20px;
  border-top: 2px solid var(--rule);
}
.fields li { border-bottom: 1px solid var(--hair); }
.fields summary {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 500;
}
.fields summary::-webkit-details-marker { display: none; }
.fields summary::after { content: "+"; margin-left: auto; color: var(--wine); font-size: 22px; line-height: 1; }
.fields details[open] summary::after { content: "−"; }
.fields summary:hover { color: var(--wine); }
.fields summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
.fields b { min-width: 1.6em; font-family: var(--display); font-weight: 600; color: var(--wine); }
.fields details p {
  margin: -4px 0 0;
  padding: 0 0 16px calc(1.6em + 14px);
  font-family: var(--display);
  font-style: italic;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}
.fields details p::before {
  content: "Example topic";
  display: block;
  font-family: var(--text);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wine);
}

/* FAQ */
.faq { max-width: 960px; border-top: 2px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--wine); font-weight: 400; font-size: 24px; line-height: 1.1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--wine); }
.faq summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.faq details p { max-width: 44em; padding-bottom: 12px; font-size: 18px; color: var(--ink-2); }


/* workshops */
.ws-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 40px;
}
.ws-home article { display: flex; flex-direction: column; border-top: 2px solid var(--rule); padding-top: 16px; }
.ws-home h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 6px 0 12px;
}
.ws-home p:not(.ws__no) { max-width: 30em; color: var(--ink-2); margin-bottom: 24px; }
.ws__date { display: block; margin-top: auto; font-family: var(--display); font-size: clamp(22px, 2vw, 26px); font-weight: 600; color: var(--wine); }
.ws-home p.ws__by { margin: -4px 0 10px; color: var(--ink); }

/* prize ladder */
.ladder { list-style: none; max-width: 980px; border-top: 2px solid var(--rule); }
.ladder li {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.ladder b {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--wine);
}
.ladder p { margin: 0; font-size: 18px; }
.ladder__top { padding: 26px 0 28px !important; }
.ladder__top b { font-size: 44px; line-height: 1; }
.ladder__top p {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tablenote { margin-top: 16px; }

/* jury: portraits set like author notes */
.jury {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  margin-top: 40px;
}
.juror {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  border-top: 2px solid var(--rule);
  padding-top: 20px;
}
.juror img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--flesh-2);
}
.juror__org { color: var(--wine); margin-bottom: 4px; }
.juror h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.juror p:last-child { margin: 0; color: var(--ink-2); }

/* publication: partner journal */
.pub { display: flex; align-items: center; gap: 48px; }
.pub__logo { flex: none; display: block; width: 220px; }
.pub__logo img { width: 100%; mix-blend-mode: multiply; }
.pub .lede { margin: 0; }
.nw { white-space: nowrap; }

/* closing */
.closing {
  display: flex;
  align-items: center;
  padding: 128px 0;
  background: var(--night);
  color: var(--paper);
  text-align: center;
}
.closing__inner { display: flex; flex-direction: column; align-items: center; width: 100%; }
.closing__title {
  margin: 0 0 56px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(44px, 7.4vw, 112px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.closing__title span { color: #a6908f; }
.btn--xl { padding: 1em 2.4em 1.05em; font-size: 23px; }
.closing__note { margin: 22px 0 0; font-size: 15px; font-weight: 600; color: var(--flesh); }

/* contacts */
.contacts { max-width: 960px; margin: 0 0 24px; border-top: 2px solid var(--rule); }
.contacts > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
.contacts dt { display: flex; align-items: center; gap: 12px; }
.contacts__icon { flex: none; width: 22px; height: 22px; fill: currentColor; }
.contacts dt { text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 500; color: var(--wine); }
.contacts dd { margin: 0; font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.contacts a { color: var(--wine); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.contacts a:hover { color: var(--ink); }

/* ==========================================================================
   Inner pages: judging, resources
   ========================================================================== */
.page { padding-top: 72px; padding-bottom: 96px; }
.page .sec { max-width: 1040px; }

/* points in the rubric */
.score tbody th { width: 26%; }
.score .pts { width: 112px; white-space: nowrap; }
.score .pts b { font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1; color: var(--wine); }
.pts__bar {
  display: block;
  width: calc(var(--p) / 20 * 64px);
  height: 5px;
  margin-top: 8px;
  background: var(--wine);
}
.score tfoot tr { border-top: 2px solid var(--rule); border-bottom: 2px solid var(--rule); }
.score tfoot th, .score tfoot td { padding: 14px 12px 14px 0; text-align: left; vertical-align: baseline; }
.score tfoot th { font-family: var(--display); font-size: 20px; font-weight: 600; }
.score tfoot td:last-child { color: var(--ink-2); }
.page .notice { margin-top: 32px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* judging summary in the guidelines */
.points { list-style: none; max-width: 640px; margin: 8px 0 20px; border-top: 2px solid var(--rule); counter-reset: crit; }
.points li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hair);
  counter-increment: crit;
}
.points li::before { content: counter(crit); min-width: 18px; color: var(--ink-3); font-weight: 600; }
.points b { margin-left: auto; font-family: var(--display); font-size: 20px; color: var(--wine); }

/* resources */
.res { list-style: none; margin: 20px 0 0; border-top: 2px solid var(--rule); }
.res li { padding: 16px 0 18px; border-bottom: 1px solid var(--hair); }
.res .h3 { margin: 0 0 8px; }
.res p:last-child { margin-bottom: 0; }
.res__status { font-family: var(--display); font-style: italic; color: var(--ink-3); }

/* ---------- footer ---------- */
.footer { background: var(--paper-2); border-top: 4px double var(--rule); padding: 48px 0 40px; }
.footer__inner {
  display: grid;
  grid-template-columns: 460px 1fr auto;
  gap: 48px;
  align-items: end;
}
.footer__logo { width: 320px; align-self: center; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.footer__nav a { text-decoration: none; color: var(--ink-2); }
.footer__nav a:hover { color: var(--wine); text-decoration: underline; text-underline-offset: 0.2em; }
.footer__contacts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 0; font-size: 14px; }
.footer__contacts a { color: var(--wine); text-underline-offset: 0.2em; }
.footer__note { max-width: 46em; margin: 16px 0 0; font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.footer__copy { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
/* nav drops under the logo once the links stop fitting */
@media (max-width: 1160px) {
  .masthead { flex-wrap: wrap; gap: 32px; row-gap: 0; padding-bottom: 0; }
  .masthead__nav {
    order: 3;
    width: 100%;
    gap: 22px;
    margin: 18px 0 0;
    padding: 12px 0 14px;
    border-top: 1px solid var(--hair-light);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .masthead__nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 1180px) {
  .cover__grid { gap: 48px; }
  .specimen { width: 440px; }
  .specimen__page { padding: 34px 34px 30px; font-size: 15px; }
  .specimen__title { font-size: 19px; }
  .sheet { width: 340px; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .specs > div:nth-child(n + 3) { border-top: 1px solid var(--hair); }
  .qa > div { grid-template-columns: 220px 1fr; }
  .jury { grid-template-columns: 1fr; gap: 36px; max-width: 820px; }
}

@media (max-width: 960px) {
  .cover__grid { grid-template-columns: 1fr; padding-top: 56px; gap: 56px; }
  .specimen { width: auto; max-width: 620px; }
  .sheet { width: auto; max-width: 520px; }
  .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .doc { display: block; padding-top: 0; }
  .toc {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 -32px 48px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .toc__toggle {
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: 100%;
    padding: 14px 32px;
    background: none;
    border: 0;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }
  .toc__label { color: var(--wine); }
  .toc__current { flex: 1; }
  .toc__toggle::after { content: "+"; font-size: 22px; line-height: 1; color: var(--wine); }
  .toc__toggle[aria-expanded="true"]::after { content: "−"; }
  .toc__list {
    position: static;
    display: none;
    border-top: 1px solid var(--hair);
    padding: 8px 32px 18px;
    max-height: 70vh;
    overflow-y: auto;
  }
  .toc__list::before { display: none; }
  .toc.is-open .toc__list { display: block; }

  .parts { grid-template-columns: 1fr; gap: 24px; }
  .ws-list { grid-template-columns: 1fr; gap: 32px; }
  .ws-home { grid-template-columns: 1fr; gap: 36px; }
  .ladder li { grid-template-columns: 120px minmax(0, 1fr); gap: 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .footer__logo { width: 100%; max-width: 320px; }
  .contacts > div { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .toc { margin: 0 -16px 40px; }
  .toc__toggle { padding: 12px 16px; }
  .toc__list { padding: 8px 16px 16px; }
  .brand img { height: 26px; }
  .cover { padding-bottom: 56px; }
  .cover__lead { font-size: 17px; }
  .sheet dl > div { grid-template-columns: 84px 1fr; }
  /* phone: logo and the two page links (Judging, Resources) on one row; home sections are hidden */
  .masthead { flex-wrap: nowrap; gap: 16px; padding-bottom: 22px; }
  .masthead__nav { order: 0; width: auto; margin: 0 0 0 auto; padding: 0; border-top: 0; gap: 18px; font-size: 15px; white-space: normal; overflow: visible; }
  .masthead__nav a[href*="#"] { display: none; }
  .cover__grid { padding-top: 40px; }
  .specimen__page { padding: 26px 20px 22px; font-size: 14.5px; box-shadow: 6px 6px 0 rgba(236, 183, 194, 0.16); }
  .specimen__title { font-size: 18px; }
  .specimen__key { grid-template-columns: 1fr; }
  .cover::before { width: 340px; right: -150px; top: -40px; }
  .cover::after { width: 260px; left: -130px; bottom: -110px; }
  .closing::before { width: 220px; left: -110px; }
  .closing::after { width: 260px; right: -130px; bottom: -120px; }

  .sec { padding-bottom: 64px; }
  .sec__head { gap: 14px; margin-bottom: 28px; }
  .sec__no { font-size: 40px; }
  .lede { font-size: 18px; }

  .home { padding-top: 64px; }
  .home .sec { padding-bottom: 56px; }
  .home .sec__head { padding-top: 24px; margin-bottom: 20px; }
  .closing { padding: 88px 0; }
  .path { grid-template-columns: 1fr; row-gap: 28px; }
  .path::before { display: none; }
  .path li { border-top: 2px solid var(--wine); padding-top: 26px; }
  .path li::before { top: -12px; }
  .fields { grid-template-columns: 1fr; }
  .fields summary { gap: 10px; padding: 12px 0; font-size: 17px; }
  .fields b { min-width: 1.4em; }
  .fields details p { padding-left: calc(1.4em + 10px); font-size: 16px; }
  .contacts > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .page { padding-top: 48px; padding-bottom: 64px; }
  .ladder li { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .juror { grid-template-columns: 1fr; gap: 18px; }
  .juror img { max-width: 240px; }
  .pub { gap: 16px; }
  .pub__logo { width: 110px; }
  .ladder__top { padding: 18px 0 20px !important; }
  .ladder__top b { font-size: 34px; }
  .ladder p { font-size: 16px; }
  .faq summary { font-size: 18px; padding: 18px 0; }
  .faq details p { font-size: 16px; }
  .path p { font-size: 16px; }
  .btn--xl { font-size: 18px; padding: 0.9em 2.2em 0.95em; }

  .cats { grid-template-columns: 1fr; }
  .checklist { columns: 1; }
  .fname { padding: 22px 16px 18px; row-gap: 14px; }

  table { font-size: 15px; }
  .rubric thead { display: none; }
  .rubric tbody tr { display: grid; grid-template-columns: 32px 1fr; padding: 12px 0; }
  .rubric tbody th, .rubric tbody td { padding: 0; width: auto; }
  .rubric tbody td:last-child { grid-column: 2; padding-top: 4px; }
  .score tbody th { width: auto; }
  .score .pts { grid-column: 2; width: auto; padding-top: 6px; }
  .score .pts__bar { display: inline-block; margin: 0 0 0 10px; vertical-align: middle; }
  .score tfoot tr { display: flex; align-items: baseline; gap: 12px; padding: 12px 0; }
  .score tfoot td:first-child { display: none; }
  .score tfoot th, .score tfoot td { padding: 0; }

  .notice { grid-template-columns: 1fr; gap: 8px; padding: 22px 20px; }
  .qa > div { grid-template-columns: 1fr; gap: 6px; }
  .qa dt { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn--apply, .btn--apply::after { transition: none; }
  .btn--apply:hover, .btn--apply:hover::after { transform: none; }
}
