/* Adlin Group: a type specimen sheet. White stock, ink type, brass hairlines
   drawn at the cap height and baseline of the type they stand behind.
   Unbounded metrics used below (per em): cap 0.245,
   x-height 0.429, baseline 0.995, with line-height 1.24. */

:root {
  --stock: #ffffff;
  --tint: #f4f3ef;
  --ink: #17140f;
  --brass: #b8932e;
  --brass-pale: #e9d9a6;
  --graphite: #5a554c;
  --rule: #dad6cc;
  --display: "Unbounded", "Arial Black", sans-serif;
  --text: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;
  --pad: 20px;
  --h2: clamp(22px, 2.6vw, 32px);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--stock);
  color: var(--ink);
  font: 400 17px/1.65 var(--text);
  overflow-x: hidden;
}

::selection { background: var(--brass-pale); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--stock); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

main:focus { outline: none; }

/* Header */
.top { border-bottom: 1px solid var(--rule); background: var(--stock); }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: -0.01em; min-height: 44px; }
.mark { width: 34px; height: 34px; flex: none; }
.menu { display: none; font: 500 15px/1 var(--text); background: none; border: 1px solid var(--ink); color: var(--ink); min-height: 44px; padding: 0 16px; cursor: pointer; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { border-bottom-color: var(--brass); }

@media (max-width: 860px) {
  .menu { display: inline-block; }
  .nav { display: none; width: 100%; padding-bottom: 12px; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { width: 100%; border-bottom: 1px solid var(--rule); padding: 0; }
  .nav a[aria-current="page"] { border-bottom: 2px solid var(--brass); }
}

/* Type */
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; }
h1 { font-weight: 700; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -0.02em; max-width: 20ch; }
h2 { font-weight: 500; font-size: var(--h2); line-height: 1.24; letter-spacing: -0.01em; }
h3 { font-weight: 500; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; max-width: 40em; }
.eyebrow { font: 500 13px/1.2 var(--text); letter-spacing: 0.12em; text-transform: lowercase; color: var(--graphite); margin-bottom: 18px; }
.small { font-size: 14px; color: var(--graphite); }
.opt { color: var(--graphite); font-weight: 400; }

/* The guidelines behind an h2: cap and baseline of its first line. */
.split-head, .head-wide { position: relative; }
.guides { position: absolute; left: 0; right: 0; top: 0; height: calc(var(--h2) * 1.24); pointer-events: none; }
.gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--brass); }
.gl.cap { top: calc(var(--h2) * 0.245); }
.gl.base { top: calc(var(--h2) * 0.995); }
.gl b { position: absolute; right: 0; top: 2px; font: 500 10px/1 var(--text); letter-spacing: 0.1em; color: var(--graphite); }
.gl.cap b { top: auto; bottom: 3px; }
.split-head h2, .head-wide h2 { position: relative; }

/* Sections */
.block { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--rule); }
.intro { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.intro h1 { margin-bottom: 24px; }
.split { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 4fr 7fr; gap: 64px; }
}
.split-body > :last-child { margin-bottom: 0; }
.head-wide { margin-bottom: 40px; max-width: 760px; }
.more { margin: 32px 0 0; font-weight: 500; }

/* Hero: the specimen */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero-h { font-size: clamp(26px, 3.4vw, 44px); max-width: 24ch; margin-bottom: clamp(36px, 5vw, 64px); }
.specimen { container-type: inline-size; position: relative; }
.specimen-name {
  --fs: min(132px, 9.4cqi);
  margin: 0;
  font: 700 var(--fs)/1.24 var(--display);
  letter-spacing: -0.01em;
  white-space: nowrap;
  position: relative;
}
.specimen-name em { font-style: normal; color: var(--brass); }
.specimen { --fs: min(132px, 9.4cqi); }
@supports not (width: 1cqi) {
  .specimen, .specimen-name { --fs: min(132px, 9vw); }
}
.sl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--brass); z-index: 0; }
.sl.cap { top: calc(var(--fs) * 0.245 + 0px); }
.sl.xh { top: calc(var(--fs) * 0.429); }
.sl.bl { top: calc(var(--fs) * 0.995); border-top-width: 2px; }
.sl b { position: absolute; right: 0; bottom: 3px; font: 500 11px/1 var(--text); letter-spacing: 0.1em; color: var(--graphite); background: var(--stock); padding-left: 6px; }
.sl.xh b { bottom: auto; top: 4px; }
@media (max-width: 640px) { .sl.xh b { display: none; } }
.sl.bl b { bottom: auto; top: 6px; }
.small-spec { margin-bottom: 32px; max-width: 520px; }
.small-spec, .small-spec .specimen-name { --fs: min(160px, 30cqi); }

.waterfall { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; container-type: inline-size; }
.waterfall li {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0 6px;
}
.wf-size { font: 500 12px/1 var(--text); color: var(--graphite); letter-spacing: 0.06em; }
.wf-text { font: 700 min(var(--s), 8.6cqi)/1.15 var(--display); white-space: nowrap; overflow: hidden; }
.wf-use { font-size: 14px; color: var(--graphite); text-align: right; }
@media (max-width: 640px) {
  .waterfall li { grid-template-columns: 34px 1fr; row-gap: 2px; }
  .wf-use { grid-column: 2; text-align: left; font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .waterfall .wf-text { clip-path: inset(0 100% 0 0); transition: clip-path 0.9s cubic-bezier(.2,.7,.2,1); }
  .js .waterfall li:nth-child(2) .wf-text { transition-delay: 0.12s; }
  .js .waterfall li:nth-child(3) .wf-text { transition-delay: 0.24s; }
  .js .waterfall li:nth-child(4) .wf-text { transition-delay: 0.36s; }
  .js .waterfall li:nth-child(5) .wf-text { transition-delay: 0.48s; }
  .js .waterfall.on .wf-text { clip-path: inset(0 0 0 0); }
}

/* The three measures on the home page */
.measures { display: grid; gap: 32px; margin: 0; }
@media (min-width: 800px) { .measures { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.measures > div { border-top: 2px solid var(--ink); padding-top: 18px; }
.measures dt { font: 500 19px/1.3 var(--display); margin-bottom: 10px; }
.measures dd { margin: 0; color: var(--ink); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 24px; width: 14px; height: 2px; background: var(--brass); }

/* Kinds of names */
.kinds { display: grid; gap: 48px; container-type: inline-size; }
@media (min-width: 760px) { .kinds { grid-template-columns: 1fr 1fr; gap: 56px 64px; } }
.kind-sample { font: 700 clamp(24px, 3vw, 36px)/1.24 var(--display); margin: 0 0 18px; padding-bottom: 4px; border-bottom: 1px solid var(--brass); overflow-wrap: anywhere; }
.kind-sample em { font-style: normal; color: var(--brass); }
.kind p:last-child { margin: 0; }

/* Purchase steps: each a size larger */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 92px 1fr; gap: 20px; align-items: start; padding: 26px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-size { font: 700 var(--s)/1 var(--display); color: var(--ink); position: relative; padding-bottom: 8px; border-bottom: 2px solid var(--brass); justify-self: start; min-width: 2ch; }
.step-size::after { content: "px"; font: 500 11px/1 var(--text); color: var(--graphite); margin-left: 4px; letter-spacing: 0.06em; }
.steps p { margin: 0; max-width: 40em; }
@media (min-width: 900px) { .steps li { grid-template-columns: 160px 1fr; gap: 40px; } }

.faq { margin: 0; display: grid; gap: 0; }
.faq > div { border-top: 1px solid var(--rule); padding: 22px 0; display: grid; gap: 6px; }
@media (min-width: 900px) { .faq > div { grid-template-columns: 4fr 7fr; gap: 64px; } }
.faq dt { font-weight: 700; }
.faq dd { margin: 0; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--ink); color: var(--stock); border: 0;
  font: 500 16px/1 var(--text); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 transparent; transition: box-shadow 0.15s;
}
.button:hover { box-shadow: inset 0 -4px 0 var(--brass); text-decoration: none; }
.button:disabled { opacity: 0.6; cursor: progress; }
.plain { font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }

/* About */
.about-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 380px 1fr; gap: 72px; align-items: start; } }
.portrait { margin: 0; max-width: 380px; }
.portrait-frame { position: relative; }
.portrait-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.pl { position: absolute; left: -12px; right: -12px; border-top: 1px solid var(--brass); }
.pl b { position: absolute; right: 12px; top: 3px; font: 500 10px/1 var(--text); letter-spacing: 0.1em; color: var(--ink); background: rgba(255,255,255,0.85); padding: 2px 4px; }
.pl-top { top: 5%; }
.pl-eye { top: 26%; }
.pl-chin { top: 46%; }
.portrait figcaption { margin-top: 18px; display: grid; gap: 2px; font-size: 15px; }
.portrait figcaption strong { font: 500 17px/1.3 var(--display); }
.portrait figcaption span { color: var(--graphite); }
.about-text h1 { margin-bottom: 20px; }
.office { font-style: normal; line-height: 1.8; margin: 24px 0; }

/* Contact */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; } }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { font-weight: 500; font-size: 15px; }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--text); color: var(--ink);
  background: var(--tint); border: 0; border-bottom: 2px solid var(--ink);
  border-radius: 0; padding: 12px 12px; min-height: 48px;
}
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--brass); outline-offset: 0; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .button { justify-self: start; }
.status { margin: 0; padding: 12px 14px; border-left: 3px solid var(--brass); background: var(--tint); }
.status.bad { border-left-color: var(--ink); font-weight: 500; }

/* Legal */
.narrowish { max-width: 820px; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; }

/* 404 */
.missing h1 { max-width: 22ch; }

/* Footer */
.foot { background: var(--ink); color: #f2efe8; padding: 56px 0 28px; margin-top: 0; }
.foot a { color: #f2efe8; text-decoration-color: var(--brass); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 5fr 4fr 3fr; gap: 56px; } }
.foot-name { font: 700 22px/1.2 var(--display); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--brass); display: inline-block; }
.foot-lede p:last-child { color: #cfc9bd; max-width: 34ch; }
.foot-h { font: 500 12px/1 var(--text); letter-spacing: 0.12em; text-transform: lowercase; color: var(--brass-pale); margin: 4px 0 14px; }
.foot address { font-style: normal; line-height: 1.8; color: #e7e2d8; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; min-height: 36px; align-items: center; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 44px; padding-top: 18px; border-top: 1px solid #3a352c; font-size: 14px; color: #cfc9bd; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
