/* Words Women Hate: the website. The look follows the book: caution yellow, ink, page paper,
   red strike-throughs, Archivo for labels and numbers, Source Serif 4 for words and reading. */

/* Self-hosted variable fonts (SIL Open Font License; see assets/fonts). */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-standard-normal.woff2") format("woff2-variations"), url("../fonts/source-serif-4-latin-standard-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-ext-standard-normal.woff2") format("woff2-variations"), url("../fonts/source-serif-4-latin-ext-standard-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-standard-italic.woff2") format("woff2-variations"), url("../fonts/source-serif-4-latin-standard-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Source Serif 4"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url("../fonts/source-serif-4-latin-ext-standard-italic.woff2") format("woff2-variations"), url("../fonts/source-serif-4-latin-ext-standard-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  --yellow: #FFCE1F;
  --ink: #141210;
  --paper: #F5F0E3;
  --card: #FFFDF6;
  --strike: #D7261E;
  --red: #C8211A;
  --muted: #4A443B;
  --faint: rgba(20, 18, 16, 0.22);
  --sans: "Archivo", "Arial Narrow", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --shadow: 8px 8px 0 var(--ink);
  --couch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 24'%3E%3Cg fill='%23000'%3E%3Crect x='6' y='2' width='24' height='11' rx='2.5'/%3E%3Crect x='1' y='8' width='7' height='12' rx='2.5'/%3E%3Crect x='28' y='8' width='7' height='12' rx='2.5'/%3E%3Crect x='7' y='12' width='22' height='8'/%3E%3Crect x='3' y='19' width='2.5' height='5'/%3E%3Crect x='30.5' y='19' width='2.5' height='5'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 900; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.on-ink :focus-visible, .masthead :focus-visible, .colophon :focus-visible { outline-color: var(--yellow); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px;
  background: var(--yellow); color: var(--ink); font-family: var(--sans); font-weight: 800;
}
.skip:focus { top: 12px; }

/* Labels: the book's tracked caps (a hazard-manual convention, used where the book uses them). */
.label {
  font-family: var(--sans); font-size: 12px; font-weight: 800; line-height: 1.3;
  letter-spacing: 0.16em; text-transform: uppercase;
}

/* Masthead ------------------------------------------------------------------------------- */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); }
.masthead__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px;
}
.wordmark {
  font-family: var(--sans); font-weight: 900; font-stretch: 112%; font-size: 19px; line-height: 1;
  letter-spacing: 0.01em; text-transform: uppercase; color: var(--yellow); text-decoration: none; white-space: nowrap;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(14px, 2vw, 26px); }
.site-nav a {
  display: block; padding: 22px 0 19px; border-bottom: 3px solid transparent;
  font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.site-nav a:hover { color: var(--yellow); }
.site-nav a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }
.menu-toggle {
  display: none; padding: 9px 14px; background: transparent; border: 2px solid var(--yellow); color: var(--yellow);
  font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
}
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--ink); border-top: 2px solid var(--yellow); padding: 8px var(--gutter) 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid rgba(245, 240, 227, 0.16); font-size: 14px; }
  .site-nav a[aria-current="page"] { border-bottom-color: rgba(245, 240, 227, 0.16); }
}

/* Colophon -------------------------------------------------------------------------------- */
.hazard { height: 14px; background: repeating-linear-gradient(-45deg, var(--ink) 0 10px, var(--yellow) 10px 20px); }
.colophon { background: var(--ink); color: var(--paper); margin-top: 0; }
.colophon__inner {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 28px 48px;
}
.colophon__book p { margin-top: 12px; max-width: 30ch; font-size: 16px; color: #D8D1C0; }
.wordmark--footer { font-size: 22px; }
.colophon__links {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px;
  align-content: start;
}
.colophon__links a { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; }
.colophon__links a:hover, .colophon__links a[aria-current="page"] { color: var(--yellow); }
.colophon__fine { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(245, 240, 227, 0.16); font-size: 14px; color: #A8A193; }
@media (max-width: 720px) { .colophon__inner { grid-template-columns: 1fr; } }

/* Buttons --------------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 22px;
  border: 2.5px solid var(--ink); background: var(--ink); color: var(--yellow); cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: none; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.on-ink .btn--yellow { border-color: var(--yellow); }
.on-ink .btn--yellow:hover { box-shadow: 4px 4px 0 var(--yellow); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }

/* Couches: the book's couch icon as a mask, so color comes from the element. -------------- */
.couch {
  display: inline-block; width: 22px; height: 15px; background: var(--faint);
  -webkit-mask: var(--couch) center / contain no-repeat;
  mask: var(--couch) center / contain no-repeat;
}
.couch.is-on { background: var(--ink); }
.couch.is-red { background: var(--strike); }
.couches { display: flex; flex-wrap: wrap; gap: 3px; }

/* Struck words: a red line drawn through the word, line by line. -------------------------- */
.struck {
  background-image: linear-gradient(var(--strike), var(--strike));
  background-repeat: no-repeat; background-size: 100% 0.075em; background-position: 0 60%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
  .struck.is-drawing { animation: strike-draw 0.5s cubic-bezier(0.7, 0, 0.3, 1) both; animation-delay: var(--delay, 0s); }
}
@keyframes strike-draw { from { background-size: 0% 0.075em; } to { background-size: 100% 0.075em; } }

/* Page plate: the opening of each interior page, like a chapter opener. -------------------- */
.plate { padding: 28px 0 44px; }
.runhead {
  display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--ink);
  font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.plate__title {
  margin-top: 36px; font-family: var(--sans); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(60px, 11vw, 136px); line-height: 0.88; letter-spacing: -0.005em; overflow-wrap: anywhere;
}
.plate__dek { margin-top: 18px; max-width: 34ch; font-style: italic; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; color: var(--muted); }
.plate--yellow { background: var(--yellow); }
.plate--yellow .plate__dek { color: var(--ink); }
.plate--ink { background: var(--ink); color: var(--paper); }
.plate--ink .runhead { border-color: var(--yellow); color: var(--yellow); }
.plate--ink .plate__dek { color: #D8D1C0; }

.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--yellow { background: var(--yellow); }
.section--ink { background: var(--ink); color: var(--paper); }
.section__title {
  font-family: var(--sans); font-weight: 900; font-stretch: 62%; text-transform: uppercase;
  font-size: clamp(44px, 6.5vw, 80px); line-height: 0.92;
}
.section__dek { margin-top: 12px; max-width: 46ch; font-style: italic; font-size: 21px; line-height: 1.4; color: var(--muted); }
.section--ink .section__dek { color: #D8D1C0; }
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1em; }

/* Entry card: one page of the book. ------------------------------------------------------- */
.entry {
  position: relative; background: var(--paper); color: var(--ink); padding: 26px clamp(20px, 4vw, 36px) 40px;
  font-family: var(--sans); display: flex; flex-direction: column;
}
.entry--shadow { box-shadow: var(--shadow); border: 2.5px solid var(--ink); }
.entry__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.entry__word {
  margin-top: 26px; font-family: var(--serif); font-weight: 900; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(54px, 8vw, 92px);
}
.entry__word--long { font-size: clamp(38px, 5.4vw, 60px); }
.entry__meta { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); }
.entry__box { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2.5px solid var(--ink); }
.entry__box > div { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.entry__married { background: var(--yellow); border-left: 2.5px solid var(--ink); }
.entry__married .couches { flex-wrap: nowrap; }
.entry__married .couch { flex: 0 1 22px; min-width: 0; height: auto; aspect-ratio: 22 / 15; }
.entry__box p { font-family: var(--serif); font-size: 17px; line-height: 1.38; }
.nights { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 34px; line-height: 1; text-transform: uppercase; }
.entry__fields { margin-top: 22px; display: flex; flex-direction: column; gap: 16px; }
.entry__fields p { margin-top: 6px; font-family: var(--serif); font-size: 19px; line-height: 1.42; }
.entry__instead p { font-weight: 700; font-size: 22px; line-height: 1.4; }
.hl { background: var(--yellow); padding: 0 6px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.entry::after {
  content: ""; position: absolute; left: clamp(20px, 4vw, 36px); right: clamp(20px, 4vw, 36px); bottom: 18px; height: 8px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 6px, var(--yellow) 6px 12px);
}
@media (max-width: 420px) {
  .entry__box { grid-template-columns: 1fr; }
  .entry__married { border-left: 0; border-top: 2.5px solid var(--ink); }
}

/* Home ------------------------------------------------------------------------------------- */
.hero { background: var(--yellow); padding: 44px 0 64px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.hero__kicker { display: inline-block; padding: 8px 12px; background: var(--ink); color: var(--yellow); }
.hero__copy { container-type: inline-size; min-width: 0; }
.hero__title {
  margin-top: 22px; font-family: var(--sans); font-weight: 900; font-stretch: 112%; text-transform: uppercase;
  font-size: clamp(56px, 9vw, 140px); font-size: min(20.5cqi, 150px); line-height: 0.84; letter-spacing: -0.015em;
}
.hero__title span { display: block; }
.lookup { margin-top: 30px; }
.lookup__words { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; list-style: none; padding: 0; }
.lookup__words button {
  padding: 2px 8px 6px; border: 0; background: transparent; cursor: pointer;
  font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1;
}
.lookup__words button:hover { background: rgba(20, 18, 16, 0.08); }
.lookup__words button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
.caution {
  margin-top: 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center;
  max-width: 560px; padding: 16px 20px; border: 3px solid var(--ink);
}
.caution svg { width: 44px; height: 40px; }
.caution p { font-size: 22px; line-height: 1.3; }
.hero .btn-row { margin-top: 28px; }
.hero__entry { position: relative; }
.hero__entry .entry { min-height: 600px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__entry .entry { min-height: 0; }
}

.book { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.book__cover { max-width: 420px; width: 100%; border: 2.5px solid var(--ink); box-shadow: var(--shadow); }
.book__headline { font-family: var(--serif); font-weight: 900; font-size: clamp(42px, 5.6vw, 72px); line-height: 1; letter-spacing: -0.02em; }
.book__body { margin-top: 20px; max-width: 44ch; font-size: 20px; }
.inside { margin-top: 24px; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.inside li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--faint); font-size: 18px; }
.inside .couch { margin-top: 6px; background: var(--ink); }
.book__status { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
@media (max-width: 800px) { .book { grid-template-columns: 1fr; } .book__cover { max-width: 300px; } }

.scale { margin-top: 36px; border-top: 2px solid var(--yellow); }
.scale__row {
  display: grid; grid-template-columns: 74px minmax(0, 270px) minmax(0, 1fr); gap: 8px 28px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid rgba(245, 240, 227, 0.16);
}
.scale__n { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 48px; line-height: 1; color: var(--yellow); }
.scale__row .couch { background: rgba(245, 240, 227, 0.2); }
.scale__row .couch.is-on { background: var(--yellow); }
.scale__row .couch.is-red { background: #E5342A; }
.scale__text { font-size: 22px; line-height: 1.35; }
.scale__row--revised .scale__n { color: #E5342A; }
.scale__note { margin-top: 18px; font-style: italic; color: #D8D1C0; }
@media (max-width: 720px) {
  .scale__row { grid-template-columns: 56px minmax(0, 1fr); }
  .scale__row .couches { grid-column: 2; grid-row: 2; }
  .scale__n { grid-row: 1 / span 2; font-size: 40px; }
}

.tools { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.tool {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 22px;
  background: var(--card); border: 2.5px solid var(--ink); text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.tool:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.tool--wide { grid-column: span 2; }
.tool__name { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 40px; line-height: 0.95; text-transform: uppercase; }
.tool p { font-size: 17px; line-height: 1.45; }
.tool__go { margin-top: auto; }
.tool__preview { min-height: 112px; display: flex; align-items: center; }
@media (max-width: 900px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tools { grid-template-columns: 1fr; } .tool--wide { grid-column: auto; } }

.note-from { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 32px 64px; }
.note-from__body p { font-size: 21px; line-height: 1.55; }
.note-from__body p + p { margin-top: 1em; }
.note-from__sig { margin-top: 18px; font-style: italic; color: var(--muted); }
@media (max-width: 800px) { .note-from { grid-template-columns: 1fr; } }

.notify { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.notify__form { display: flex; gap: 0; }
.notify__form input { flex: 1; min-width: 0; }
.notify__form .btn { flex: none; }
@media (max-width: 800px) { .notify { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .notify__form { flex-direction: column; gap: 10px; } }

/* Forms ------------------------------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__hint { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--muted); letter-spacing: 0; text-transform: none; font-weight: 400; }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 12px 14px; background: var(--card); border: 2.5px solid var(--ink); border-radius: 0;
  font-family: var(--serif); font-size: 19px; line-height: 1.35;
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 3px solid var(--ink); outline-offset: 2px; }
.input::placeholder, .textarea::placeholder { color: #8A8273; }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 17px; line-height: 1.4; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.form-grid .span-2 { grid-column: span 2; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } .form-grid .span-2 { grid-column: auto; } }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 14px; font-size: 17px; }
.status--error { padding: 12px 14px; border-left: 6px solid var(--strike); background: var(--card); }
.status--ok { padding: 12px 14px; border-left: 6px solid var(--ink); background: var(--card); }

/* Couch shader: shade one per night (report form). */
.shader { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; }
.shader label { cursor: pointer; padding: 6px 4px; }
.shader input { position: absolute; opacity: 0; pointer-events: none; }
.shader .couch { width: 34px; height: 23px; background: var(--faint); }
.shader label.is-shaded .couch { background: var(--ink); }
.shader label.is-shaded.is-past7 .couch { background: var(--strike); }
.shader input:focus-visible + .couch { outline: 3px solid var(--ink); outline-offset: 3px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span {
  display: inline-block; padding: 10px 14px; border: 2px solid var(--ink); background: var(--card); cursor: pointer;
  font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
}
.seg input:checked + span { background: var(--ink); color: var(--yellow); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }

/* Calculator ------------------------------------------------------------------------------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc__picker, #zones { display: flex; flex-direction: column; gap: 26px; }
.zone { border-top: 2px solid var(--ink); padding-top: 10px; }
.zone__head { display: flex; justify-content: space-between; gap: 12px; }
.chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 9px; padding: 8px 12px 9px; background: var(--card); border: 2px solid var(--ink);
  cursor: pointer; font-family: var(--serif); font-size: 19px; line-height: 1.2; text-align: left;
}
.chip__n { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 17px; line-height: 1; color: var(--muted); }
.chip:hover { background: #FFF6D2; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.chip[aria-pressed="true"] .chip__w {
  background-image: linear-gradient(#E5342A, #E5342A); background-repeat: no-repeat; background-size: 100% 0.09em; background-position: 0 62%;
}
.chip[aria-pressed="true"] .chip__n { color: var(--yellow); }
.chip--mod { font-family: var(--sans); font-size: 14px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.mother { margin-top: 12px; }

.worksheet { position: sticky; top: 84px; background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: var(--shadow); padding: 20px 22px 24px; }
.worksheet__quote .input { background: #FFF6D2; }
.equation { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 76px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; border: 2px solid var(--ink); background: var(--card); min-width: 64px; }
.tile__w { font-family: var(--sans); font-size: 11px; font-weight: 800; font-stretch: 75%; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.15; max-width: 16ch; }
.tile__n { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 30px; line-height: 1; }
.tile--mod { background: transparent; border-style: dashed; }
.tile--red { background: var(--red); color: #fff; border-color: var(--red); }
.op { font-family: var(--sans); font-weight: 900; font-size: 24px; }
.equation__empty { font-style: italic; color: var(--ink); opacity: 0.7; }
.total { margin-top: 18px; padding-top: 14px; border-top: 2.5px solid var(--ink); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.total__n { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: clamp(80px, 9vw, 120px); line-height: 0.85; }
.total__unit { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 40px; line-height: 1; text-transform: uppercase; }
.verdict { margin-top: 10px; font-weight: 700; font-size: 24px; line-height: 1.3; }
.verdict__extra { margin-top: 8px; font-style: italic; font-size: 18px; }
.redcard { margin-top: 12px; display: inline-block; padding: 8px 12px; background: var(--red); color: #fff; font-family: var(--sans); font-weight: 900; font-stretch: 75%; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; }
.worksheet .couches { margin-top: 16px; max-height: 120px; overflow: hidden; }
.worksheet .couch.is-on { background: var(--ink); }
.worksheet .btn-row { margin-top: 20px; }
.couch-more { font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; align-self: center; margin-left: 4px; }
.sentence-bar { display: none; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .worksheet { position: static; }
  .sentence-bar.is-visible {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 15; justify-content: space-between; align-items: center; gap: 12px;
    padding: 10px 12px 10px 16px; background: var(--ink); color: var(--yellow); border: 2px solid var(--yellow);
  }
  .sentence-bar strong { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 30px; line-height: 1; text-transform: uppercase; }
  .sentence-bar a { color: var(--paper); }
}

/* Appeals ---------------------------------------------------------------------------------- */
.court { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.court__form { display: flex; flex-direction: column; gap: 20px; }
.ruling { position: relative; min-height: 420px; background: var(--card); border: 2.5px solid var(--ink); box-shadow: var(--shadow); padding: 24px 24px 30px; overflow: hidden; }
.ruling__empty { font-style: italic; color: var(--muted); font-size: 20px; }
.ruling__case { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 2px solid var(--ink); }
.ruling__word { margin-top: 22px; font-weight: 900; font-size: clamp(40px, 5vw, 60px); line-height: 1.02; letter-spacing: -0.02em; }
.ruling__defense { margin-top: 14px; font-size: 21px; font-style: italic; }
.ruling__opinion { margin-top: 18px; font-size: 21px; font-weight: 700; }
.stamp {
  display: inline-block; margin-top: 26px; padding: 6px 16px 4px; border: 5px solid var(--strike); color: var(--strike);
  font-family: var(--sans); font-weight: 900; font-stretch: 75%; font-size: clamp(54px, 7vw, 84px); line-height: 1; letter-spacing: 0.04em;
  text-transform: uppercase; transform: rotate(-7deg);
}
@media (prefers-reduced-motion: no-preference) {
  .stamp.is-landing { animation: stamp-land 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
}
@keyframes stamp-land { from { opacity: 0; transform: rotate(-7deg) scale(2.2); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
.ruling .btn-row { margin-top: 26px; }
@media (max-width: 860px) { .court { grid-template-columns: 1fr; } .ruling { min-height: 0; } }

.docket { margin-top: 28px; border-top: 2.5px solid var(--ink); }
.docket__row { display: grid; grid-template-columns: 110px minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px 28px; padding: 18px 0; border-bottom: 1px solid var(--faint); align-items: baseline; }
.docket__no { display: flex; flex-direction: column; gap: 4px; }
.docket__word { font-weight: 900; font-size: 22px; }
.docket__defense { font-size: 20px; font-style: italic; }
.docket__ruling { display: flex; gap: 12px; align-items: baseline; font-size: 18px; }
.docket__ruling b { flex: none; color: var(--strike); font-family: var(--sans); font-weight: 900; font-stretch: 75%; font-size: 18px; letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 720px) { .docket__row { grid-template-columns: 1fr; } }

/* Report ----------------------------------------------------------------------------------- */
.report { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.form-sheet { background: var(--card); border: 2.5px solid var(--ink); padding: clamp(20px, 3vw, 32px); }
.form-sheet__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2.5px solid var(--ink); margin-bottom: 24px; }
.form-sheet__title { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 40px; line-height: 1; text-transform: uppercase; }
.form-sheet fieldset { border: 0; padding: 0; margin: 0; }
.form-sheet legend { padding: 0; margin-bottom: 7px; }
.form-sheet .btn-row { margin-top: 26px; }
.aside-steps { list-style: none; padding: 0; margin: 0; border-top: 2.5px solid var(--ink); }
.aside-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--faint); font-size: 19px; }
.aside-steps .step-n { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 34px; line-height: 1; }
.filed { margin-top: 0; }
.filed__no { font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: clamp(56px, 8vw, 88px); line-height: 0.9; text-transform: uppercase; }
@media (max-width: 900px) { .report { grid-template-columns: 1fr; } }

/* Most Wanted ------------------------------------------------------------------------------ */
.posters { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.poster { display: flex; flex-direction: column; background: var(--card); border: 2.5px solid var(--ink); }
.poster__band { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 16px; background: var(--ink); color: var(--yellow); }
.poster__wanted { font-family: var(--sans); font-weight: 900; font-stretch: 112%; font-size: 30px; line-height: 1; text-transform: uppercase; }
.poster__body { padding: 22px 18px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.poster__word { font-weight: 900; font-size: clamp(32px, 3.4vw, 42px); line-height: 1.02; letter-spacing: -0.02em; }
.poster__seen p { margin-top: 5px; font-size: 18px; line-height: 1.4; }
.poster__body .text-link { margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .posters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posters { grid-template-columns: 1fr; } }

/* Penalty cards ---------------------------------------------------------------------------- */
.card-sheet { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard-cut { padding: 7px; border: 2px dashed var(--ink); border-radius: 18px; }
.pcard {
  aspect-ratio: 1.55; display: flex; flex-direction: column; gap: 4px; padding: 12px 13px; border-radius: 11px;
  background: var(--yellow); color: var(--ink); font-family: var(--sans);
}
.pcard--red { background: var(--red); color: #fff; }
.pcard__kind { font-size: 11px; font-weight: 800; font-stretch: 75%; letter-spacing: 0.12em; text-transform: uppercase; }
.pcard__offense { font-weight: 900; font-stretch: 62%; font-size: 24px; line-height: 1; text-transform: uppercase; }
.pcard__desc { font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.3; }
.pcard__penalty { margin-top: auto; font-size: 12.5px; line-height: 1.25; }
.pcard__penalty b { font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.pcard__line { display: block; height: 18px; border-bottom: 1.5px solid currentColor; opacity: 0.8; }
@media (max-width: 1000px) { .card-sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .card-sheet { grid-template-columns: 1fr; } }
.rules { margin-top: 24px; list-style: none; padding: 0; border-top: 2px solid var(--yellow); counter-reset: rule; }
.rules li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(245, 240, 227, 0.16); font-size: 20px; counter-increment: rule; }
.rules li::before { content: counter(rule); font-family: var(--sans); font-weight: 900; font-stretch: 62%; font-size: 38px; line-height: 1; color: var(--yellow); }
.download { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }

/* Cutting room floor ----------------------------------------------------------------------- */
.cut-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.cut-grid .entry { border: 2.5px solid var(--ink); }
.cut-tag { position: absolute; top: 58px; right: clamp(20px, 4vw, 36px); padding: 5px 10px 4px; border: 3px solid var(--strike); color: var(--strike); transform: rotate(4deg); background: var(--paper); }
.field-note { margin-top: 20px; padding: 14px 16px; background: var(--card); border: 2px dashed var(--ink); }
.field-note p { margin-top: 6px; font-size: 17px; font-style: italic; line-height: 1.45; }
@media (max-width: 860px) { .cut-grid { grid-template-columns: 1fr; } }
