/* Shared look for every page of the font site sample: near-black, lots of air,
   a sans for the interface and an italic serif for the odd accent word. */
:root {
  --bg: #0b0b0a;
  --ink: #f4f3ee;
  --muted: #8f8e88;
  --line: #262624;
  --soft: #161615;
  --hover: #121211;
  --head: 72px;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1360px;
  --serif: "Instrument Serif", Georgia, serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 "General Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* header: logo, quiet text links, current page marked with a dot */
.top { position: sticky; top: 0; z-index: 5; height: var(--head); background: rgba(11,11,10,.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; flex: none; }
.logo::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { position: relative; font-size: 14px; color: var(--muted); white-space: nowrap; padding: 6px 0; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink); }

/* page heading */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 64px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43,182,115,.22); }
.hero h1 { font-weight: 500; font-size: clamp(44px, 7.6vw, 124px); line-height: .95; letter-spacing: -0.05em; margin: 0; max-width: 13ch; }
.hero h1 em { letter-spacing: -0.03em; }
.hero p { color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); margin: 30px 0 0; max-width: 46ch; }

.label { font-size: 12px; color: var(--muted); }
.label b { color: var(--ink); font-weight: 500; }

/* the text people type into: a soft panel that stays pinned while scrolling */
.typebox { position: sticky; top: var(--head); z-index: 4; background: var(--bg); padding: 14px 0 16px; }
.typebox > input {
  width: 100%; font: 400 clamp(20px, 2.2vw, 28px)/1.2 "General Sans", sans-serif; color: var(--ink); letter-spacing: -0.015em;
  padding: 22px 26px; border: 1px solid transparent; border-radius: 18px; background: var(--soft); outline: none; transition: border-color .2s, background .2s;
}
.typebox > input:focus { background: var(--bg); border-color: var(--ink); }
.controls { display: flex; gap: 6px; align-items: center; padding-top: 14px; overflow-x: auto; }
.chip, .controls label, .search { flex: none; }
.chip { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 15px;
  font: 400 13px "General Sans", sans-serif; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.controls label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-left: auto; white-space: nowrap; }
.search { border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); padding: 7px 15px; font: 13px "General Sans", sans-serif; width: 170px; outline: none; margin-left: 10px; }
.search:focus { border-color: var(--ink); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 120px; height: 2px; border-radius: 2px; background: var(--line); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--ink); cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--bg); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }

/* pill buttons */
.btn { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 9px 18px; font: 500 13px "General Sans", sans-serif;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { border-color: var(--ink); }
.btn-main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-main::after { content: "↗"; font-size: 12px; }
.btn-main:hover { transform: translateY(-1px); }
.btn.done { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* section headings inside pages */
.section-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 88px 0 22px; border-bottom: 1px solid var(--line); }
.section-title h2 { font-weight: 500; font-size: clamp(30px, 3.8vw, 54px); letter-spacing: -0.045em; line-height: 1; margin: 0; }

/* ad placeholder */
.ad { background: var(--soft); border-radius: 16px; color: var(--muted); font-size: 11px; text-align: center; padding: 44px 12px; margin: 22px 0; letter-spacing: .14em; }

/* two-panel tool card used by the font finder */
.tool { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  background: var(--bg); box-shadow: 0 40px 90px -50px rgba(0,0,0,.6); }
.tool-bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 13px; }
.tool-bar::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.status { margin-left: auto; font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; display: flex; align-items: center; gap: 7px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2bb673; }
.status.busy::before { background: #e0a100; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.panel { padding: 22px; min-width: 0; }
.panel.left { background: var(--soft); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.step b { font-weight: 500; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 7px; padding: 1px 7px; font-variant-numeric: tabular-nums; }

.drop { display: grid; place-items: center; text-align: center; gap: 6px; padding: 34px 18px; border: 1.5px dashed #3a3a37; border-radius: 18px;
  background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--ink); }
.drop .ico { width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 18px; margin-bottom: 6px; }
.drop strong { font-weight: 500; font-size: 15px; }
.drop span { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .tool { grid-template-columns: 1fr; border-radius: 20px; }
  .panel.left { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 720px) { .panel { padding: 16px; } }

.foot { border-top: 1px solid var(--line); margin-top: 120px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 56px var(--pad) 64px; color: var(--muted); font-size: 13px;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot b { color: var(--ink); font-weight: 500; font-size: clamp(40px, 6vw, 88px); letter-spacing: -0.06em; line-height: .9; }
.foot .foot-txt { max-width: 52ch; display: grid; gap: 14px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink); }
.foot-links a:hover { text-decoration: underline; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(90px); background: var(--ink); color: var(--bg);
  padding: 11px 20px; border-radius: 999px; font-size: 13px; transition: transform .3s cubic-bezier(.2,.8,.2,1); z-index: 9; }
.toast.show { transform: translateX(-50%) translateY(0); }

.nav, .controls { scrollbar-width: none; }
.nav::-webkit-scrollbar, .controls::-webkit-scrollbar { display: none; }

@media (max-width: 720px) {
  :root { --head: 60px; }
  .logo { font-size: 17px; }
  .nav { gap: 12px; }
  .nav a { font-size: 13px; }
  .nav .nl { display: none; }
  .top-in { gap: 10px; }
  .typebox > input { padding: 16px 18px; border-radius: 14px; }
  /* one swipeable row of filters */
  .controls { overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 12px var(--pad) 0; }
  .chip, .controls label, .search { flex: none; }
  .controls label { margin-left: 6px; }
}

/* Fonts drop-down in the top bar */
.dd { position: relative; }
.dd-btn { border: 0; background: none; font: 14px "General Sans", sans-serif; color: var(--muted); padding: 6px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .2s; }
.dd-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.dd-btn:hover, .dd-btn[data-current="true"], .dd-btn[aria-expanded="true"] { color: var(--ink); }
.dd-menu { position: absolute; top: calc(100% + 10px); right: -14px; min-width: 210px; display: grid; padding: 8px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--soft); box-shadow: 0 24px 60px -20px rgba(0,0,0,.7); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.dd:hover .dd-menu, .dd-btn[aria-expanded="true"] + .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd:hover .dd-btn::after, .dd-btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(225deg); }
.nav .dd-menu a { padding: 10px 12px; border-radius: 10px; }
.dd-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 12px 4px; margin-top: 4px; border-top: 1px solid var(--line); }
.nav .dd-menu a:hover, .nav .dd-menu a[aria-current="page"] { background: var(--hover); color: var(--ink); }
.nav .dd-menu a[aria-current="page"]::after { display: none; }
@media (max-width: 720px) { .dd-btn { font-size: 13px; } .dd-menu { right: -8px; } }

/* live site: ad slots stay hidden until the ad network is approved */
.ad { display: none; }
