/* kristinmartz.com: The Feature. Tokens first; every page shares this file. */
:root {
  --red: #6A0D1C;
  --red-deep: #4A0A15;
  --ivory: #F3EDE2;
  --paper: #ECE4D6;
  --sky: #A9C8E8;
  --ink: #3A0912;
  --ink-soft: #5B2A31;
  --rule: rgba(58, 9, 18, .22);
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Gloock", Georgia, serif;
  --pad: clamp(16px, 3vw, 40px);
  --gap: clamp(12px, 1.4vw, 20px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-stretch: 104%; font-size: 17px; line-height: 1.55;
  color: var(--ink); background: var(--ivory); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
::selection { background: var(--sky); color: var(--ink); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ivory); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type voices */
.x { font-family: var(--sans); font-weight: 800; font-stretch: 68%; text-transform: uppercase; letter-spacing: -.012em; line-height: .9; }
.g { font-family: var(--serif); font-weight: 400; text-transform: none; letter-spacing: -.02em; font-stretch: 100%; }
.meta { font-size: 12px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; font-stretch: 112%; line-height: 1.6; }
.lede { font-size: clamp(19px, 1.5vw, 23px); line-height: 1.5; max-width: 52ch; }
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1em; }
.prose ul { padding-left: 1.1em; margin-top: .8em; }
.prose li + li { margin-top: .35em; }
.pic { display: inline-block; width: 1.6em; height: .7em; vertical-align: .03em; overflow: hidden; margin: 0 .05em; }
.pic img { width: 100%; height: 100%; object-fit: cover; }

/* Header: dainty, sits over whatever field the page opens on */
.bar { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 22px var(--pad); }
.bar .mark { font-family: var(--serif); font-size: 24px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.bar nav ul { list-style: none; padding: 0; display: flex; gap: clamp(14px, 2.2vw, 34px); align-items: baseline; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current="page"] { text-decoration: underline; }
.bar nav sup { font-family: var(--serif); font-size: 13px; letter-spacing: 0; margin-right: .45em; vertical-align: .25em; text-transform: none; }
.bar .cta { text-decoration: underline; text-decoration-color: var(--sky); text-decoration-thickness: 1.5px; }
.on-dark { color: var(--ivory); }
.on-light { color: var(--ink); }
.on-light .cta { text-decoration-color: var(--red); }
.menu-btn { display: none; font: inherit; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 0; }
@media (max-width: 1180px) { .bar nav ul { gap: 14px; } .bar nav .meta, .bar nav a { font-size: 11px; letter-spacing: .04em; } }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .bar nav { position: fixed; inset: 0; background: var(--red-deep); color: var(--ivory); padding: 88px var(--pad) 40px; display: none; }
  .bar nav.open { display: block; }
  .bar nav ul { flex-direction: column; align-items: flex-start; gap: 18px; }
  .bar nav a { font-size: 15px !important; }
  .bar .menu-btn[aria-expanded="true"] { position: relative; z-index: 2; color: var(--ivory); }
}

/* Home: hero */
.hero { min-height: 100svh; background: var(--red); color: var(--ivory); display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 1fr auto auto; column-gap: 16px; padding: 108px var(--pad) 40px; }
.hero .title { grid-column: 1 / -1; grid-row: 1; align-self: end; margin: 0 0 clamp(16px, 2vw, 28px); color: var(--sky); font-size: 13px; letter-spacing: .1em; }
.hero h1 { grid-column: 1 / -1; grid-row: 2; align-self: start; font-size: clamp(50px, 8vw, 148px); }
.hero h1 s { text-decoration-thickness: .06em; text-decoration-color: var(--sky); }
.hero h1 .g { color: var(--sky); font-size: 1.04em; }
.hero .second { grid-column: 6 / 13; grid-row: 3; font-family: var(--serif); font-size: clamp(24px, 2.5vw, 42px); line-height: 1.12; letter-spacing: -.015em; margin-top: 28px; }
.hero .second .pic { height: .8em; width: 1.5em; vertical-align: -.08em; }
.hero .second em { font-style: normal; color: var(--sky); }

/* Home: chapters side by side */
.chapters { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto 1fr auto auto auto auto; min-height: 80svh; }
.ch { display: grid; grid-row: span 6; grid-template-rows: subgrid; align-content: start; min-height: 80svh; padding: 28px var(--pad) 36px; text-decoration: none; }
.ch .num { font-family: var(--serif); font-size: 20px; }
.ch h2 { font-size: clamp(48px, 6.2vw, 112px); align-self: end; }
.ch .line { font-family: var(--serif); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; letter-spacing: -.015em; margin-top: 20px; }
.ch p { font-size: 15px; line-height: 1.55; margin-top: 14px; max-width: 38ch; }
.ch .skills { margin-top: 16px; font-size: 14px; line-height: 1.6; max-width: 40ch; font-weight: 500; }
.go { margin-top: 26px; display: inline-flex; justify-self: start; align-self: start; gap: 10px; align-items: center; }
.go svg { width: 22px; height: 10px; transition: transform .5s var(--ease); }
a:hover .go svg, .go:hover svg { transform: translateX(6px); }
.c1 { background: var(--sky); color: var(--ink); }
.c2 { background: var(--ivory); color: var(--ink); border-left: 1px solid var(--rule); }
.c3 { background: var(--red-deep); color: var(--ivory); }

/* Capabilities strip */
.caps { padding: clamp(56px, 8vw, 110px) var(--pad); background: var(--red); color: var(--ivory); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.caps h2 { grid-column: 1 / 4; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 56px); letter-spacing: -.02em; line-height: 1; }
.caps .cols { grid-column: 4 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.caps h3 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-stretch: 112%; padding-bottom: 10px; border-bottom: 1.5px solid var(--sky); color: var(--sky); }
.caps ul { list-style: none; padding: 0; }
.caps li { padding: 9px 0; border-bottom: 1px solid rgba(243,237,226,.28); font-size: 15px; line-height: 1.35; }

/* Case study index */
.index { padding: clamp(64px, 9vw, 130px) var(--pad); }
.index > h2 { font-family: var(--serif); font-size: clamp(36px, 3.6vw, 60px); letter-spacing: -.02em; font-weight: 400; margin-bottom: 28px; }
.index ol { list-style: none; padding: 0; border-top: 1.5px solid var(--ink); }
.index li a { display: grid; grid-template-columns: 4ch 1fr auto 150px; gap: 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.index .n { font-family: var(--serif); font-size: 18px; }
.index .t { font-size: clamp(32px, 4.2vw, 72px); }
.index .tags { font-family: var(--serif); font-size: 17px; white-space: nowrap; }
.index .th { height: 88px; overflow: hidden; background: transparent; }
.index li a.no-th { grid-template-columns: 4ch 1fr auto; }
.index .th img { width: 100%; height: 100%; object-fit: cover; }
.index li a:hover .t { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }

/* About */
.about { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(64px, 9vw, 130px) var(--pad); background: var(--ivory); border-top: 1.5px solid var(--ink); align-items: end; }
.about .portrait { grid-column: 1 / 5; aspect-ratio: 4 / 5; overflow: hidden; }
.about .portrait img { width: 100%; height: 100%; object-fit: cover; }
.about .words { grid-column: 6 / 13; }
.about h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.4vw, 58px); line-height: 1.05; letter-spacing: -.02em; max-width: 22ch; }
.about .career { margin-top: 32px; list-style: none; padding: 0; border-top: 1.5px solid var(--ink); }
.about .career li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.about .career li span:last-child { font-family: var(--serif); }

/* Contact band, shared by every page */
.contact-band { background: var(--red); color: var(--ivory); padding: clamp(64px, 9vw, 130px) var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.contact-band h2 { grid-column: 1 / 8; font-size: clamp(48px, 7vw, 128px); }
.contact-band h2 .g { color: var(--sky); }
.contact-band .side { grid-column: 9 / 13; align-self: end; }
.contact-band .side p { font-size: 16px; }
.contact-band .side ul { list-style: none; padding: 0; margin-top: 20px; border-top: 1px solid rgba(243,237,226,.4); }
.contact-band .side li { padding: 10px 0; border-bottom: 1px solid rgba(243,237,226,.4); }
.contact-band .side a { text-decoration: none; }
.contact-band .side a:hover { text-decoration: underline; }
.foot { background: var(--red-deep); color: var(--ivory); padding: 22px var(--pad); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Inner page opener */
.opener { padding: 128px var(--pad) clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.opener h1 { grid-column: 1 / -1; font-size: clamp(64px, 12.5vw, 230px); margin: 12px 0 0 0; }
.opener .line { grid-column: 1 / 7; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 44px); line-height: 1.08; letter-spacing: -.015em; margin-top: 28px; }
.opener .lede { grid-column: 7 / 13; margin-top: 28px; align-self: end; }
.f-sky { background: var(--sky); color: var(--ink); }
.f-ivory { background: var(--ivory); color: var(--ink); }
.f-red { background: var(--red); color: var(--ivory); }
.f-deep { background: var(--red-deep); color: var(--ivory); }
.f-red .g, .f-deep .g { color: var(--sky); }

/* Generic section */
.sec { padding: clamp(56px, 8vw, 120px) var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.sec > .head { grid-column: 1 / 5; }
.sec > .body { grid-column: 5 / 13; }
.sec h2.g { font-size: clamp(32px, 3.2vw, 54px); line-height: 1.02; }
.sec h2.x { font-size: clamp(44px, 5.4vw, 96px); }
.sec + .sec { border-top: 1px solid var(--rule); }
.f-red + .sec, .f-deep + .sec { border-top: 0; }
.big-sentence { font-size: clamp(42px, 7vw, 128px); }
.big-sentence .g { color: var(--sky); }

/* Lists of things she does */
.ledger { list-style: none; padding: 0; border-top: 1.5px solid currentColor; }
.ledger li { display: grid; grid-template-columns: minmax(10ch, 1fr) 2fr; gap: var(--gap); padding: 16px 0; border-bottom: 1px solid var(--rule); }
.f-red .ledger li, .f-deep .ledger li { border-bottom-color: rgba(243,237,226,.35); }
.ledger b { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.ledger span { font-size: 16px; }

/* Pitch archive: a typeset table, not cards */
.pitches { width: 100%; border-collapse: collapse; }
.pitches th { text-align: left; font-weight: 600; padding: 0 16px 10px 0; border-bottom: 1.5px solid currentColor; }
.pitches td { vertical-align: top; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.pitches td.brand { font-family: var(--sans); font-weight: 800; font-stretch: 68%; text-transform: uppercase; font-size: clamp(24px, 2.4vw, 38px); line-height: .95; width: 22%; }
.pitches td.brand small { display: block; font-family: var(--serif); font-weight: 400; text-transform: none; font-size: 15px; font-stretch: 100%; margin-top: 8px; letter-spacing: 0; }
.pitches td.platform { font-family: var(--serif); font-size: 22px; line-height: 1.1; width: 26%; }

/* Images */
.plate { margin: 0; }
.plate img { width: 100%; height: auto; }
.plate figcaption { margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.f-red .plate figcaption, .f-deep .plate figcaption { color: rgba(243,237,226,.8); }
.grid { display: grid; gap: var(--gap); padding: 0 var(--pad) clamp(56px, 8vw, 120px); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.grid .plate img { aspect-ratio: auto; }
.grid.crop .plate img { aspect-ratio: 4 / 5; object-fit: cover; }
.wide { padding: 0 var(--pad) clamp(56px, 8vw, 120px); }

/* Case study */
.cs-meta { grid-column: 1 / -1; display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.steps { counter-reset: s; }
.step { padding: clamp(32px, 4vw, 60px) var(--pad); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); border-top: 1px solid var(--rule); }
.step .label { grid-column: 1 / 4; }
.step .label b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.8vw, 48px); line-height: 1; letter-spacing: -.02em; margin-top: 8px; }
.step .content { grid-column: 4 / 11; }
.step .content > p:first-child.say { font-family: var(--serif); font-size: clamp(26px, 2.4vw, 40px); line-height: 1.12; letter-spacing: -.015em; margin-bottom: 20px; }
.step .content .facts { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-top: 28px; }
.step .content .facts li { border-top: 1.5px solid var(--ink); padding-top: 10px; font-size: 15px; }
.step .content .facts b { display: block; font-family: var(--sans); font-weight: 800; font-stretch: 68%; font-size: clamp(30px, 3vw, 48px); line-height: 1; margin-bottom: 6px; }
.platform-name { font-size: clamp(48px, 7vw, 120px); color: var(--red); }
.next { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding: clamp(56px, 8vw, 110px) var(--pad); text-decoration: none; background: var(--sky); color: var(--ink); }
.next .meta { grid-column: 1 / -1; }
.next .t { grid-column: 1 / -1; font-size: clamp(56px, 10vw, 180px); margin-top: 12px; }
.next:hover .t { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: .1em; }
.note { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); }

/* Personal work */
.galleries { list-style: none; padding: 0 var(--pad) clamp(56px, 8vw, 120px); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.galleries a { display: block; text-decoration: none; }
.galleries .th { aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper); }
.galleries .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.galleries a:hover .th img { transform: scale(1.03); }
.galleries .t { font-size: clamp(32px, 3.4vw, 56px); margin-top: 12px; display: block; }
.galleries .c { font-family: var(--serif); font-size: 16px; }
.masonry { columns: 3 320px; column-gap: var(--gap); padding: 0 var(--pad) clamp(56px, 8vw, 120px); }
.masonry figure { break-inside: avoid; margin: 0 0 var(--gap); }
.masonry a { display: block; }

/* Contact page form */
.form { grid-column: 5 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.form label { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-stretch: 112%; margin-bottom: 6px; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: 10px 0; border-radius: 0; }
.form textarea { min-height: 160px; resize: vertical; border: 1.5px solid var(--ink); padding: 12px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 2px 0 -0.5px var(--red); }
.form button { justify-self: start; font: inherit; font-weight: 600; font-size: 15px; letter-spacing: .02em; color: var(--ivory); background: var(--red); border: 0; padding: 16px 26px; cursor: pointer; transition: background .3s var(--ease); }
.form button:hover { background: var(--red-deep); }
.form button[disabled] { opacity: .6; cursor: progress; }
.form .status { grid-column: 1 / -1; font-family: var(--serif); font-size: 22px; min-height: 1.2em; }

@media (max-width: 900px) {
  .hero h1 { font-size: 12.6vw; }
  .hero .second { grid-column: 1 / -1; }
  .chapters, .caps .cols, .grid.three, .grid.four, .galleries { grid-template-columns: 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .chapters { grid-template-rows: none; }
  .ch { display: flex; flex-direction: column; grid-row: auto; min-height: 0; padding-top: 48px; }
  .c2 { border-left: 0; }
  .ch h2 { align-self: auto; }
  .about .career li { grid-template-columns: 1fr; gap: 2px; }
  .caps h2, .caps .cols, .about .portrait, .about .words, .contact-band h2, .contact-band .side,
  .opener .line, .opener .lede, .sec > .head, .sec > .body, .step .label, .step .content, .form { grid-column: 1 / -1; }
  .about .portrait { max-width: 420px; }
  .index li a { grid-template-columns: 3ch 1fr; }
  .index .tags, .index .th { display: none; }
  .ledger li { grid-template-columns: 1fr; gap: 4px; }
  .step .content .facts { grid-template-columns: 1fr; }
  .pitches thead { display: none; }
  .pitches tr, .pitches td { display: block; width: auto !important; }
  .pitches td { border-bottom: 0; padding: 4px 0; }
  .pitches tr { padding: 18px 0; border-bottom: 1px solid var(--rule); }
  .form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.nowrap { white-space: nowrap; }
.masonry.tight { columns: 4 260px; }

/* Collage: justified rows, every image the same height */
.collage { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad) clamp(56px, 8vw, 120px); --row: clamp(150px, 17vw, 260px); }
.collage figure { margin: 0; height: var(--row); flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--row)); overflow: hidden; }
.collage figure img { width: 100%; height: 100%; object-fit: cover; }
.collage-head { padding: clamp(48px, 6vw, 88px) var(--pad) 20px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.collage-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.2vw, 54px); letter-spacing: -.02em; line-height: 1; }
.disclose { grid-column: 1 / -1; font-size: 14px; color: var(--ink-soft); max-width: 70ch; margin-top: 18px; }
.press { list-style: none; padding: 0; margin-top: 20px; display: flex; gap: 10px 24px; flex-wrap: wrap; }
.press a { font-family: var(--serif); font-size: 19px; }
.brandline { font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); line-height: 1.35; letter-spacing: -.01em; }
.brandline span { white-space: nowrap; }
.brandline span + span::before { content: "/"; color: var(--red); margin: 0 .45em 0 .1em; }
@media (max-width: 900px) { .collage { --row: 130px; gap: 6px; } }

/* Proposals overview */
.props { padding: clamp(40px, 6vw, 88px) var(--pad) clamp(64px, 9vw, 130px); }
.props ol { list-style: none; padding: 0; border-top: 1.5px solid var(--ink); }
.props li a { display: grid; grid-template-columns: 4ch minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.props .n { font-family: var(--serif); font-size: 18px; }
.props .t { font-size: clamp(30px, 3.4vw, 58px); }
.props .pf { font-size: clamp(20px, 1.8vw, 28px); color: var(--red); line-height: 1.1; }
.props .sum { font-size: 15px; line-height: 1.5; }
.props .go { margin-top: 0; white-space: nowrap; }
.props li a:hover .t { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
@media (max-width: 900px) { .props li a { grid-template-columns: 3ch 1fr; } .props .pf, .props .sum, .props .go { grid-column: 2; } }
.roles { font-family: var(--serif); font-size: 17px; line-height: 1.4; margin-top: 24px; color: var(--ink-soft); max-width: 60ch; }
.collage-head .roles { margin-top: 0; }

/* Inline chapter number, next-case link */
.opener h1 sup { font-size: .16em; vertical-align: top; line-height: 1; margin-left: .15em; letter-spacing: 0; color: inherit !important; position: relative; top: .08em; }
.next .nl { grid-column: 1 / -1; margin-top: 14px; display: inline-flex; gap: 10px; align-items: center; }
.next .nl svg { width: 22px; height: 10px; transition: transform .5s var(--ease); }
.next:hover .nl svg { transform: translateX(6px); }
.opener .line a { text-decoration-thickness: 1px; }
.mailbtn { display: inline-block; font-weight: 600; font-size: 15px; color: var(--ivory); background: var(--red); padding: 16px 26px; text-decoration: none; transition: background .3s var(--ease); }
.mailbtn:hover { background: var(--red-deep); }
