:root {
  --bg: #111318;
  --bg-deep: #0d0f13;
  --panel: rgba(28, 31, 39, 0.72);
  --panel-strong: rgba(35, 38, 47, 0.9);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --muted: #898b96;
  --muted-bright: #b5b5be;
  --ink: #f2f0e9;
  --gold: #efc56b;
  --gold-soft: #d8b25d;
  --aqua: #9ee2d3;
  --coral: #f09a7d;
  --radius: 18px;
  --shell: min(1240px, calc(100% - 40px));
  --preview-size: 42px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); overflow-x: hidden; }
body { width: 100%; max-width: 100%; margin: 0; min-width: 320px; background: radial-gradient(circle at 75% -10%, rgba(92, 79, 54, .22), transparent 34rem), var(--bg); color: var(--ink); line-height: 1.5; overflow-x: hidden; }
body, button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; }
button { border: 0; cursor: pointer; }
.shell { width: var(--shell); margin-inline: auto; position: relative; z-index: 1; }
.grain { position: fixed; inset: 0; opacity: .035; pointer-events: none; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.52'/%3E%3C/svg%3E"); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .12; pointer-events: none; }
.orb-one { width: 28rem; height: 28rem; right: -12rem; top: 26rem; background: var(--aqua); }
.orb-two { width: 21rem; height: 21rem; left: -14rem; top: 56rem; background: var(--gold); }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; background: var(--gold); color: #151414; border-radius: 8px; transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; width: 35px; height: 35px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 11px; transform: rotate(-6deg); background: linear-gradient(135deg, var(--gold), #a9904e); color: #141516; font: 800 12px/1 Inter, sans-serif; }
.brand-mark span { display: grid; place-items: center; }
.brand-mark span:first-child { border-right: 1px solid rgba(20,21,22,.24); }
.brand-lockup { display: flex; flex-direction: column; line-height: 1.05; }
.brand-lockup strong { font-size: 14px; letter-spacing: -.02em; }
.brand-lockup small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.top-nav { display: flex; align-items: center; gap: clamp(12px, 2.2vw, 30px); color: var(--muted-bright); font-size: 12px; }
.top-nav a:not(.nav-pill) { transition: color .2s ease; }
.top-nav a:not(.nav-pill):hover { color: var(--ink); }
.nav-pill { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); }
.nav-pill span { color: var(--gold); font-size: 15px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: clamp(36px, 9vw, 140px); padding-top: clamp(64px, 10vw, 134px); padding-bottom: clamp(84px, 12vw, 150px); align-items: center; overflow-anchor: none; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 9px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-separator { color: var(--muted); }
.pulse-dot, .status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(158,226,211,.08); }
.pulse-dot { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(158,226,211,.02); opacity: .5; } }
h1, h2, h3, p { margin: 0; }
h1 { max-width: 690px; margin-top: 22px; font-size: clamp(64px, 10vw, 136px); line-height: .86; letter-spacing: -.08em; font-weight: 600; }
h1 em, h2 em { color: var(--gold); font-family: Georgia, serif; font-weight: 400; letter-spacing: -.08em; }
.hero-deck { max-width: 420px; margin-top: 32px; color: var(--muted-bright); font-size: 15px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 36px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 17px; border-radius: 10px; font-size: 12px; font-weight: 700; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .filter-chip:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; }
.button-primary { background: var(--gold); color: #191817; box-shadow: 0 12px 30px rgba(239,197,107,.12); }
.button-primary:hover { background: #f6d687; }
.button-secondary { border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); color: var(--ink); }
.button-secondary:hover { background: rgba(255,255,255,.08); }
.hero-note { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.hero-note-line { width: 24px; height: 1px; background: var(--line-strong); }
.glass-panel { border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 24px 70px rgba(0,0,0,.18); }
.hero-stage { position: relative; height: 410px; min-height: 410px; display: flex; flex-direction: column; border-radius: 23px; overflow: hidden; overflow-anchor: none; transform: rotate(2.5deg); }
.hero-stage::before { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -80px; background: var(--aqua); border-radius: 50%; filter: blur(74px); opacity: .14; }
.stage-topline, .stage-footer { display: flex; justify-content: space-between; align-items: center; padding: 19px 22px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.stage-topline { border-bottom: 1px solid var(--line); }
.stage-status { display: inline-flex; align-items: center; gap: 7px; color: var(--aqua); }
.hero-specimen-wrap { display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 38px 25px; }
.specimen-kicker { color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.hero-specimen { margin-top: 18px; color: var(--ink); font-family: Georgia, serif; font-size: clamp(45px, 6vw, 78px); line-height: .92; letter-spacing: -.08em; }
.specimen-index { margin-top: 26px; color: var(--gold); font-size: 11px; letter-spacing: .13em; }
.stage-footer { border-top: 1px solid var(--line); }
.stage-arrow { color: var(--gold); font-size: 18px; }

.control-deck { padding: 27px 29px 31px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(20,22,28,.72); box-shadow: 0 20px 60px rgba(0,0,0,.12); }
.control-head, .catalog-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.control-head h2, .catalog-heading h2 { margin-top: 7px; font-size: clamp(28px, 4vw, 42px); line-height: 1; letter-spacing: -.06em; font-weight: 500; }
.control-count { color: var(--muted); font-size: 11px; }
.control-grid { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr); gap: 25px; margin-top: 30px; }
.field-label, .range-stack { display: flex; flex-direction: column; gap: 11px; }
.field-label > span:first-child, .range-label { color: var(--muted-bright); font-size: 11px; }
.field-hint { margin-left: 8px; color: var(--muted); font-size: 10px; }
.field-label input[type="text"] { width: 100%; min-height: 42px; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; }
.field-label input[type="text"]:focus { border-color: var(--gold); }
.range-label { display: flex; justify-content: space-between; }
.range-label output { color: var(--gold); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; height: 3px; margin: 7px 0 0; accent-color: var(--gold); cursor: pointer; }

.catalog-shell { padding-top: clamp(86px, 11vw, 145px); }
.catalog-intro { max-width: 255px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.heading-period { color: var(--gold); }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; margin-top: 44px; }
.search-field { display: flex; align-items: center; min-height: 50px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.035); }
.search-field:focus-within { border-color: var(--line-strong); background: rgba(255,255,255,.06); }
.search-icon { margin-right: 8px; color: var(--gold); font-size: 23px; line-height: 1; transform: rotate(-20deg); }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-field input::placeholder { color: var(--muted); }
kbd { min-width: 20px; padding: 2px 5px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); font-size: 10px; text-align: center; }
.sort-field { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; }
.sort-field select { border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; cursor: pointer; }
.sort-field option { background: #20222a; }
.filter-row { display: flex; gap: 8px; padding: 17px 0 23px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--muted); font-size: 11px; transition: .2s ease; }
.filter-chip span { color: var(--muted); font-size: 10px; }
.filter-chip:hover, .filter-chip.is-active { border-color: rgba(239,197,107,.6); background: rgba(239,197,107,.1); color: var(--gold); }
.filter-chip.is-active span { color: var(--gold); }
.catalog-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 13px; contain: content; overflow-anchor: none; }
.catalog-sentinel { position: absolute; left: 0; right: 0; height: 1px; pointer-events: none; }
.catalog-spacer { grid-column: 1 / -1; width: 100%; pointer-events: none; }
.font-card { position: relative; min-width: 0; width: 100%; height: 257px; min-height: 0; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.022)); overflow: hidden; overflow-anchor: none; transition: border-color .25s ease, transform .25s ease, background .25s ease; }
.font-card { content-visibility: auto; contain: layout paint style; contain-intrinsic-size: 257px; }
.font-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)); }
.card-topline { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); font-size: 10px; }
.card-tag { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; color: var(--aqua); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.card-favorite { width: 28px; height: 28px; margin: -8px -7px 0 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 17px; transition: .2s ease; }
.card-favorite:hover, .card-favorite.is-favorite { color: var(--gold); background: rgba(239,197,107,.1); }
.font-name { max-width: calc(100% - 30px); margin-top: 21px; overflow: hidden; color: var(--ink); font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.font-sample-wrap { position: relative; flex: 0 0 105px; height: 105px; display: flex; align-items: center; min-height: 105px; margin-top: 2px; overflow: hidden; }
.font-sample { width: 100%; max-height: 100px; overflow: hidden; color: var(--ink); font-size: var(--preview-size); line-height: .95; letter-spacing: -.045em; overflow-wrap: anywhere; transition: font-size .18s ease, font-weight .18s ease, color .2s ease; }
.font-card.is-loading .font-sample { color: var(--muted); }
.font-card.is-loaded .font-sample { color: var(--ink); }
.loading-badge { position: absolute; right: 0; bottom: 1px; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
.font-card.is-loading .loading-badge { opacity: 1; }
.card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 15px; border-top: 1px solid var(--line); }
.card-meta { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 10px; }
.card-meta strong { color: var(--muted-bright); font-weight: 500; }
.download-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 10px; border: 1px solid rgba(239,197,107,.38); border-radius: 7px; background: rgba(239,197,107,.08); color: var(--gold); font-size: 10px; font-weight: 700; transition: .2s ease; }
.download-button:hover { background: var(--gold); color: #181716; }
.download-button span { font-size: 14px; }
.empty-state { padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.empty-mark { display: block; margin-bottom: 12px; color: var(--gold); font: 42px/1 Georgia, serif; }
.empty-state h3 { font-size: 18px; font-weight: 500; }
.empty-state p { margin: 8px 0 20px; color: var(--muted); font-size: 12px; }
.load-more-wrap { display: flex; justify-content: center; padding: 31px 0 0; }
.load-more { min-width: 205px; }
.load-more[hidden] { display: none; }

.about-shell { padding-top: clamp(100px, 15vw, 190px); }
.about-card { display: grid; grid-template-columns: .7fr 1fr 1fr auto; align-items: center; gap: 40px; min-height: 215px; padding: 35px 39px; border-radius: 18px; }
.about-mark { position: relative; display: grid; width: 84px; height: 84px; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 19px; font-weight: 800; letter-spacing: -.1em; }
.about-mark i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); }
.about-mark i:nth-child(2) { top: 2px; left: 50%; }.about-mark i:nth-child(3) { right: 3px; bottom: 22px; }.about-mark i:nth-child(4) { left: 4px; bottom: 20px; }
.about-copy h2 { margin-top: 9px; font-size: 31px; line-height: .98; letter-spacing: -.06em; font-weight: 500; }
.about-card > p { max-width: 250px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.signature { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; color: var(--muted); font-size: 10px; }
.signature strong, .site-footer span:last-child { color: var(--gold); font-size: 12px; letter-spacing: .02em; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; padding: 60px 0 34px; color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; }.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.about-card { grid-template-columns: .6fr 1fr 1fr; }.signature { grid-column: 2 / -1; align-items: flex-start; } }
@media (max-width: 650px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { min-height: 70px; }.top-nav a:not(.nav-pill) { display: none; }.top-nav { gap: 0; }
  .hero { display: block; padding-top: 58px; padding-bottom: 88px; }.hero-copy { padding-bottom: 52px; }.hero-stage { height: 350px; min-height: 350px; transform: rotate(1.5deg); margin-inline: 5px; }
  h1 { font-size: clamp(58px, 19vw, 94px); }.hero-deck { margin-top: 25px; font-size: 14px; }.hero-actions { margin-top: 30px; }.hero-note { font-size: 10px; }
  .control-deck { padding: 24px 19px 27px; }.control-grid { grid-template-columns: 1fr 1fr; gap: 21px 15px; }.field-label-wide { grid-column: 1 / -1; }.control-head h2 { font-size: 30px; }
  .catalog-shell { padding-top: 93px; }.catalog-heading { display: block; }.catalog-intro { margin-top: 17px; }.search-row { grid-template-columns: 1fr; gap: 9px; margin-top: 31px; }.sort-field { justify-content: space-between; }.filter-row { padding-top: 13px; }
  .catalog-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 11px; }.font-card { height: 240px; min-height: 0; padding: 16px; contain-intrinsic-size: 240px; }.font-sample-wrap { flex-basis: 92px; height: 92px; min-height: 92px; }.font-sample { font-size: clamp(34px, 13vw, var(--preview-size)); }.card-footer { padding-top: 12px; }
  .about-shell { padding-top: 105px; }.about-card { grid-template-columns: 75px 1fr; gap: 25px 20px; padding: 28px 22px; }.about-mark { width: 68px; height: 68px; font-size: 16px; }.about-copy h2 { font-size: 27px; }.about-card > p { grid-column: 1 / -1; max-width: none; }.signature { grid-column: 2; align-items: flex-end; }
  .site-footer { flex-wrap: wrap; padding-top: 45px; font-size: 8px; }.site-footer span:nth-child(2) { order: 3; width: 100%; margin-top: 5px; }
}
@media (max-width: 760px) { .catalog-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
