/* Firizi one-page site. Tokens from the Firizi Design System. States live here, never inline. */

@font-face { font-family: "Inter"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/inter-light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-semibold.woff2") format("woff2"); }
@font-face { font-family: "Zodiak"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/zodiak-regular.woff2") format("woff2"); }
@font-face { font-family: "Zodiak"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/zodiak-bold.woff2") format("woff2"); }

:root {
	--navy: #0A1C45;
	--blue: #123B8C;
	--link: #1C59D9;
	--sand: #F2EDE3;
	--ink: #1C1C1C;
	--gold: #C7A36B;
	--white: #FFFFFF;
	--error: #B42318;
	--rule: rgba(10, 28, 69, 0.2);
	--serif: "Zodiak", "Libre Baskerville", Georgia, serif;
	--sans: "Inter", "DM Sans", Arial, sans-serif;
	--ease: cubic-bezier(0.2, 0, 0, 1);
	--pad-top: clamp(104px, 11vw, 160px);
	--pad-bottom: clamp(120px, 13vw, 192px);
}

[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.fz { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 28px; }
.fz *, .fz *::before, .fz *::after { box-sizing: border-box; }
.fz img { max-width: 100%; height: auto; }
.fz p { margin: 0; text-wrap: pretty; }
.fz a { color: var(--link); text-decoration: none; }
.fz a:hover { color: var(--link); text-decoration: underline; }
.fz a:active { color: var(--navy); }
.fz :where(a, button, input):focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.fz-hero :where(a, button):focus-visible, .fz-footer a:focus-visible { outline-color: var(--white); }
[id] { scroll-margin-top: 0; }

.fz-skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--navy); color: var(--white) !important; padding: 10px 16px; font-weight: 600; font-size: 15px; }
.fz-skip:focus { top: 16px; }

.fz-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Type */
.fz-h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -0.01em; color: var(--white); max-width: 600px; text-wrap: balance; overflow-wrap: break-word; }
.fz-h2 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.005em; color: var(--navy); text-wrap: balance; overflow-wrap: break-word; }
.fz-h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; color: var(--navy); }
.fz-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); line-height: 16px; }
.fz-small { font-size: 15px; line-height: 24px; }
.fz-tiny { font-size: 13px; line-height: 20px; }
.fz-head { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }

/* Buttons and links. Rest, hover, press. */
.fz-btn { display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 24px; border: 2px solid; border-radius: 0; cursor: pointer; text-decoration: none; transition: background-color 120ms linear, color 120ms linear, border-color 120ms linear; }
.fz a.fz-btn:hover, .fz .fz-btn:hover { text-decoration: none; }
.fz .fz-btn-outline { color: var(--blue); border-color: var(--blue); background: transparent; padding: 8px 20px; }
.fz .fz-btn-outline:hover { background: var(--blue); color: var(--white); }
.fz .fz-btn-outline:active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.fz .fz-btn-light { color: var(--navy); background: var(--white); border-color: var(--white); padding: 12px 28px; }
.fz .fz-btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--navy); }
.fz .fz-btn-light:active { background: var(--sand); border-color: var(--sand); color: var(--blue); }
.fz .fz-btn-solid { color: var(--white); background: var(--blue); border-color: var(--blue); padding: 12px 28px; }
.fz .fz-btn-solid:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.fz .fz-btn-solid:active { background: var(--navy); border-color: var(--navy); color: var(--sand); }
.fz .fz-link-light { font-size: 15px; font-weight: 600; line-height: 24px; padding: 10px 0; color: var(--white); }
.fz .fz-link-light:hover, .fz .fz-link-light:active { color: var(--white); text-decoration: underline; }

/* Header */
.fz-header { background: var(--white); border-bottom: 1px solid rgba(18, 59, 140, 0.2); }
.fz-header-in { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.fz-logo { display: block; margin-left: -12px; line-height: 0; }
.fz-logo img { width: 150px; display: block; }
.fz-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; }
.fz .fz-nav-link { font-size: 15px; font-weight: 600; line-height: 24px; padding: 10px 0; color: var(--ink); }
.fz .fz-nav-link:hover { color: var(--link); text-decoration: underline; }

/* Hero */
.fz-hero { background: var(--navy); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); }
.fz-hero-text { padding: clamp(88px, 10vw, 152px) 48px clamp(112px, 12vw, 176px) max(24px, calc(50vw - 576px)); display: flex; flex-direction: column; gap: 32px; }
.fz-hero-lede { font-size: clamp(19px, 1.7vw, 22px); font-weight: 300; line-height: 1.45; color: var(--white); max-width: 520px; }
.fz-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 16px; }
.fz-hero-art { min-height: 360px; background-color: var(--navy); background-image: url("../img/firizi-pattern-1e-tile.svg"); background-size: 44px 44px; }
@media (max-width: 600px) { .fz-hero-text { padding-right: 24px; } }

/* Start here: moments */
.fz-moments { background: var(--white); }
.fz-moments-in { padding-top: var(--pad-top); padding-bottom: var(--pad-bottom); display: flex; flex-direction: column; gap: clamp(120px, 13vw, 176px); }
.fz-moments-pick { display: flex; flex-direction: column; gap: 40px; }
.fz-chips { display: flex; flex-wrap: wrap; gap: 12px; max-width: 960px; }
.fz-chip { min-height: 44px; padding: 8px 20px; font-family: var(--sans); font-size: 15px; font-weight: 600; line-height: 24px; border-radius: 0; cursor: pointer; border: 2px solid var(--blue); background: var(--white); color: var(--blue); transition: background-color 120ms linear, color 120ms linear; }
.fz-chip:hover { background: var(--sand); }
.fz-chip[aria-pressed="true"] { background: var(--blue); color: var(--white); }
.fz-chip[aria-pressed="true"]:hover { background: var(--navy); border-color: var(--navy); }
.fz-chip:active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.fz-chip-clear { background: transparent; }
.fz-chip-clear:hover { background: var(--white); }
.fz-question { border-top: 2px solid var(--navy); padding-top: 32px; display: flex; flex-direction: column; gap: 16px; max-width: 880px; min-height: 176px; }
.fz-question-label { font-size: 15px; line-height: 24px; color: var(--blue); font-weight: 600; }
.fz-question-text { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; color: var(--blue); transition: color 120ms linear; }
.fz-question[data-picked="true"] .fz-question-text { color: var(--navy); }
.fz-question-after { max-width: 600px; }

/* Two columns */
.fz-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 64px; }
.fz-two-a { display: flex; flex-direction: column; gap: 24px; max-width: 520px; }
.fz-fit { display: flex; flex-direction: column; max-width: 600px; }
.fz-fit-row { border-top: 1px solid var(--rule); padding: 24px 0 28px; display: flex; flex-direction: column; gap: 6px; }
.fz-fit-row:first-child { border-top: 2px solid var(--navy); }
.fz-fit-row strong { font-weight: 600; color: var(--navy); }

/* How it works: the grid comes into line. Rails sit on the grid's lines once it settles. */
.fz-how { position: relative; overflow: hidden; background: var(--sand); }
.fz-grid-tile { position: absolute; inset: -160px; background-image: url("../img/firizi-pattern-1d-tile.svg"); background-size: 80px 80px; transition: transform 1400ms var(--ease); }
.fz-rail-v { position: absolute; top: -10%; bottom: -10%; left: calc(78% - 4px); left: calc(round(down, 78%, 80px) - 4px); width: 8px; border-left: 1px solid var(--blue); border-right: 1px solid var(--blue); transition: transform 1400ms var(--ease); }
.fz-rail-h { position: absolute; left: -10%; right: -10%; top: 76px; height: 9px; border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); transition: transform 1400ms var(--ease); }
.js .fz-how:not([data-door]) .fz-grid-tile { transform: rotate(2.4deg) translate(-20px, 14px); }
.js .fz-how:not([data-door]) .fz-rail-v { transform: translateX(64px) rotate(4deg); }
.js .fz-how:not([data-door]) .fz-rail-h { transform: translateY(-40px) rotate(-2.5deg); }
.fz-how-in { position: relative; padding-top: clamp(160px, 15vw, 208px); padding-bottom: var(--pad-bottom); display: flex; flex-direction: column; gap: clamp(48px, 5vw, 64px); }
.fz-how-lede { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.5; }
.fz-doors { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.fz-doors-label { font-size: 15px; font-weight: 600; line-height: 24px; color: var(--navy); }
.fz-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 48px; }
.fz-card { background: var(--white); border-top: 2px solid var(--navy); padding: 40px 40px 52px; display: flex; flex-direction: column; gap: 16px; transition: background-color 400ms linear; }
.fz-how[data-door="messy"] .fz-card[data-card="clean"], .fz-how[data-door="clean"] .fz-card[data-card="messy"] { background: transparent; }
.fz-how-note { max-width: 720px; }
@media (max-width: 600px) { .fz-card { padding: 32px 24px 40px; } }

/* Martin */
.fz-martin { background: var(--white); }
.fz-martin-in { padding-top: var(--pad-top); padding-bottom: var(--pad-bottom); gap: 64px 80px; }
.fz-martin .fz-two-a { gap: 32px; max-width: 540px; }
.fz-quote { margin: 0; border-top: 2px solid var(--navy); padding-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.fz-quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.28; color: var(--blue); text-wrap: pretty; }
.fz-quote figcaption { font-size: 15px; line-height: 24px; }
.fz-martin-bio { display: flex; flex-direction: column; gap: 24px; max-width: 600px; padding-top: 8px; }
.fz-martin-name { display: flex; flex-direction: column; gap: 4px; }
.fz-martin-name strong { font-size: 19px; font-weight: 600; line-height: 28px; color: var(--navy); }
.fz-martin-name span { font-size: 15px; line-height: 24px; }
.fz-martin-bio > div:last-child { display: flex; margin-top: 8px; }
.fz .fz-martin .fz-btn-outline { padding: 10px 24px; }

/* The monthly letter */
.fz-letter { background: var(--sand); }
.fz-letter-in { padding-top: var(--pad-top); padding-bottom: var(--pad-bottom); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px 80px; }
.fz-letter-text { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.fz-form { display: flex; flex-direction: column; gap: 24px; margin-top: 16px; }
.fz-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.fz-field { display: flex; flex-direction: column; gap: 8px; }
.fz-field label, .fz-label { font-size: 15px; font-weight: 600; line-height: 24px; color: var(--navy); }
.fz-optional { font-weight: 400; }
.fz-field input { height: 52px; border: 2px solid var(--blue); border-radius: 0; background: var(--white); color: var(--ink); font: inherit; padding: 0 16px; width: 100%; transition: border-color 120ms linear; }
.fz-field input:hover { border-color: var(--navy); }
.fz-field input:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.fz-field input[aria-invalid="true"] { border-color: var(--error); }
.fz-err { font-size: 14px; line-height: 20px; color: var(--error); font-weight: 600; }
.fz-err::before { content: "! "; }
.fz-form-notice { border-left: 0; border-top: 2px solid var(--error); padding-top: 12px; color: var(--error); font-size: 15px; line-height: 24px; font-weight: 600; }
.fz-nearest { display: flex; flex-direction: column; gap: 12px; }
.fz-nearest a { font-weight: 600; }
.fz-send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 8px; }
.fz-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fz-done { border-top: 2px solid var(--navy); padding-top: 32px; margin-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.fz-done:focus { outline: none; }
.fz-done-title { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; color: var(--navy); }
.fz .fz-done-link { font-size: 15px; font-weight: 600; align-self: flex-start; padding: 10px 0; }

/* Earned gold: the square drops onto the crossing once someone has signed up. */
.fz-letter-art { position: relative; overflow: hidden; min-height: 360px; background-color: var(--sand); background-image: url("../img/firizi-pattern-1d-tile.svg"); background-size: 80px 80px; border-top: 2px solid var(--navy); }
.fz-letter-rail-v { position: absolute; top: 0; bottom: 0; left: calc(60% - 4px); left: calc(round(down, 60%, 80px) - 4px); width: 8px; border-left: 1px solid var(--blue); border-right: 1px solid var(--blue); }
.fz-letter-rail-h { position: absolute; left: 0; right: 0; top: 156px; height: 9px; border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); }
.fz-gold { position: absolute; top: 154px; left: calc(60% - 6px); left: calc(round(down, 60%, 80px) - 6px); width: 13px; height: 13px; background: var(--gold); opacity: 0; transform: translateY(-200px); transition: transform 900ms var(--ease), opacity 300ms linear; }
.fz-letter[data-joined] .fz-gold.is-in, html:not(.js) .fz-letter[data-joined] .fz-gold { opacity: 1; transform: translateY(0); }

/* Footer */
.fz-footer { background: var(--navy); color: var(--white); }
.fz-footer-in { max-width: 1200px; margin: 0 auto; padding: 48px 24px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 32px; }
.fz-footer-logo { width: 132px; display: block; margin-left: -12px; }
.fz-footer-links { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; line-height: 24px; }
.fz .fz-footer a { color: var(--white); padding: 10px 0; }
.fz .fz-footer a:hover, .fz .fz-footer a:active { color: var(--white); text-decoration: underline; }

/* Privacy and not-found pages */
.fz-simple { background: var(--white); }
.fz-simple-in { max-width: 720px; margin: 0 auto; padding: clamp(72px, 9vw, 128px) 24px clamp(96px, 11vw, 160px); display: flex; flex-direction: column; gap: 24px; }
.fz-prose h2 { margin: 16px 0 0; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 2vw, 26px); line-height: 1.25; color: var(--navy); }

/* Reduced motion: every change happens at once. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.fz *, .fz *::before, .fz *::after { transition: none !important; }
}
