/* Northline Type: shared styles for the multi-page sample site */
:root {
    --ink: #0f2e2b; --ink-soft: #4b5563; --muted: #9ca3af; --line: #e5e7eb;
    --bg: #ffffff; --bg-alt: #f3faf7; --accent: #10b981; --accent-dark: #047857;
    --danger: #dc2626; --success: #15803d;
    --radius: 14px; --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
    --mono: "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4vw, 38px); }
section { padding: 88px 0; }
.alt { background: var(--bg-alt); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 620px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); font-size: 18px; margin: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--line); background: #fff; }
.btn-accent { background: var(--accent); color: var(--ink); }

/* Header / navigation */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }
.logo img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a.active { color: var(--ink); background: #d1fae5; font-weight: 600; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }

/* Breadcrumb + page hero */
.page-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 90% 0, #d1fae5 0, transparent 40%); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--ink); }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); }

/* Home hero */
.hero { padding: 80px 0; background: url("../img/hero-pattern.svg") right center / 520px no-repeat, radial-gradient(circle at 85% 10%, #d1fae5 0, transparent 45%); }
.hero h1 { font-size: clamp(40px, 6vw, 66px); letter-spacing: -.035em; max-width: 720px; }
.hero h1 em { font-family: var(--serif); font-weight: 400; color: var(--accent-dark); }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.stat span { color: var(--ink-soft); }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { color: var(--ink-soft); margin: 0; }

/* Typeface cards */
.font-card { display: flex; flex-direction: column; gap: 12px; }
.font-card .specimen { font-size: 56px; line-height: 1; padding: 24px 0; border-bottom: 1px solid var(--line); }
.font-card .meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink-soft); }
.f-sans { font-family: var(--sans); font-weight: 700; }
.f-serif { font-family: var(--serif); }
.f-mono { font-family: var(--mono); }
.f-display { font-family: var(--sans); font-weight: 900; letter-spacing: -.05em; }

/* Catalog filters */
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 32px; }
.filters input { flex: 1; min-width: 220px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.filter-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; display: none; }

/* Table */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* Team + timeline */
.team img { width: 88px; height: 88px; border-radius: 50%; margin-bottom: 16px; }
.team h3 { font-size: 18px; margin-bottom: 4px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 32px 28px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline strong { display: block; font-family: var(--mono); font-size: 14px; color: var(--accent-dark); }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #6ee7b7; border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field .error { display: none; color: var(--danger); font-size: 13px; margin-top: 4px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error { display: block; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }
.alert { padding: 16px 20px; border-radius: 12px; font-weight: 500; display: none; }
.alert.success { display: block; background: #dcfce7; color: var(--success); }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-soft); margin: 10px 0 0; }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; margin-top: 88px; font-size: 14px; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--ink); margin: 0 0 12px; font-size: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; flex-wrap: wrap; gap: 12px; }

/* Back to top */
.to-top { position: fixed; right: 24px; bottom: 24px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
    .grid-3, .grid-2, .stats, .form-row { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); }
    .nav-links.open { display: flex; }
    .menu-toggle { display: block; }
    .nav > .btn { display: none; }
    .hero { background: radial-gradient(circle at 85% 10%, #d1fae5 0, transparent 45%); }
    section { padding: 60px 0; }
    .cta-band { padding: 36px; }
    table { font-size: 14px; }
}
