/* A6 Digital — "Field Notes" design: ivory paper, serif display, mono labels.
   Fonts are self-hosted; see fonts.css. */

:root {
    --bg: #F6F2EA;
    --band: #EFE9DD;
    --card: #FFFDF8;
    --ink: #17181C;
    --ink-2: #2A2925;
    --body: #3B3A36;
    --muted: #5E584D;
    --label: #6B6458;
    --line: #DDD5C6;
    --line-soft: #E7E0D2;
    --accent: #8A5A12;

    --dark-bg: #17181C;
    --dark-text: #EDE6D8;
    --dark-soft: #CFC7B7;
    --dark-label: #A79F8F;
    --dark-line: #3A3B40;
    --dark-accent: #E3B568;
    --dark-white: #FFFDF8;

    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --gutter: 32px;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

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

/* ---- Type ---------------------------------------------------------------- */

.label, .eyebrow {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--label);
}
.eyebrow { font-size: 13px; letter-spacing: 0.08em; color: var(--accent); }

.display {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 1.02;
    letter-spacing: -0.025em;
}
.display .accent { color: var(--accent); }

.h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(36px, 4.4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}
.h2-sm { font-size: clamp(32px, 3.6vw, 44px); }

.h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.2; }

.lead { font-size: 20px; line-height: 1.55; color: var(--body); max-width: 640px; }
.muted { color: var(--muted); }
.body { color: var(--body); }

/* ---- Buttons and links ---------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}
.btn:hover { color: var(--bg); background: #2C2E35; }
.btn-icon { padding-left: 8px; }
.btn-icon img { width: 32px; height: 32px; border-radius: 8px; }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--ink); background: #FFFFFF; }

.link-strong { font-weight: 600; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.fine { font-size: 14px; color: var(--muted); }
.actions-spaced { margin-top: 32px; }

/* ---- Header --------------------------------------------------------------- */

.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; }
.brand-name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; }
.brand-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 6px 0; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }

.breadcrumb { padding-top: 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); }
.breadcrumb a { color: var(--label); }

/* ---- Sections ------------------------------------------------------------- */

.section { padding-top: 96px; padding-bottom: 48px; }
.section-tight { padding-top: 72px; padding-bottom: 72px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section-intro { margin-top: 8px; margin-bottom: 40px; color: var(--muted); }

.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.dark { background: var(--dark-bg); color: var(--dark-text); }
.dark .h2 { color: var(--dark-white); }
.dark .label { color: var(--dark-label); }
.dark a { color: var(--dark-accent); }
.dark a:hover { color: var(--dark-white); }

.split { display: flex; flex-wrap: wrap; gap: 48px 56px; }
.split > .side { flex: 1 1 300px; min-width: 0; }
.split > .main { flex: 999 1 560px; min-width: 0; }

.rule-list { border-top: 1px solid var(--ink); }
.dark .rule-list { border-top-color: var(--dark-line); }
.rule-list > li, .rule-list > div { border-bottom: 1px solid var(--line); }
.dark .rule-list > li { border-bottom-color: var(--dark-line); }

/* ---- Home: hero ----------------------------------------------------------- */

.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-end; padding-top: 96px; padding-bottom: 72px; }
.hero-copy { flex: 999 1 560px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 24px; }
.hero-copy .lead { margin-top: 32px; }
.hero-copy .actions { margin-top: 40px; }
.hero-icons { flex: 1 1 280px; display: flex; gap: 20px; }
.hero-icons img {
    width: 128px; height: 128px; border-radius: 29px;
    box-shadow: 0 1px 0 var(--line), 0 18px 40px rgba(60, 44, 16, 0.14);
}
.hero-icons img:first-child { transform: rotate(-4deg); }
.hero-icons img:last-child { transform: rotate(5deg); margin-top: 40px; }

.definition { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-2); padding-top: 28px; padding-bottom: 28px; }
.definition strong { font-weight: 500; }

/* ---- Home: app cards ------------------------------------------------------ */

.app-cards { display: flex; flex-wrap: wrap; gap: 28px; }
.app-card {
    flex: 1 1 440px; min-width: 0;
    display: flex; flex-direction: column; gap: 22px;
    padding: 36px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
}
.app-card-head { display: flex; align-items: center; gap: 18px; }
.app-card-head img { width: 72px; height: 72px; border-radius: 16px; flex: 0 0 auto; }
.app-card h3 { font-family: var(--serif); font-weight: 500; font-size: 32px; letter-spacing: -0.01em; }
.app-card h3 a { text-decoration: none; }
.app-card-meta { margin-top: 2px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--label); }
.app-card-line { font-size: 19px; color: var(--ink-2); }
.card-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-soft); }
.card-facts > div { padding: 14px 12px 0 0; }
.card-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--label); }
.card-facts dd { margin-top: 4px; font-weight: 500; }
.app-card .actions { margin-top: auto; padding-top: 8px; }

/* ---- Rules (four principles) --------------------------------------------- */

.rules { display: flex; flex-wrap: wrap; }
.rules li { flex: 1 1 260px; min-width: 0; padding: 28px 28px 28px 0; }
.rules .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.rules .h3 { margin: 12px 0 8px; }
.rules p { color: var(--body); }
.rules-note { margin-top: 24px; font-size: 15px; color: var(--muted); }
.rules-note strong { color: var(--ink); }

/* ---- Quotes --------------------------------------------------------------- */

.section-quotes { padding-top: 48px; padding-bottom: 72px; }

.quotes { display: flex; flex-wrap: wrap; gap: 40px 48px; }
.quote { flex: 1 1 320px; min-width: 0; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.3; letter-spacing: -0.01em; }
.quote figcaption { margin-top: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--label); }
.quotes-ruled .quote { padding-top: 20px; border-top: 1px solid var(--ink); }
.quotes-ruled .quote blockquote { font-size: 24px; line-height: 1.35; }

/* ---- Track record band ---------------------------------------------------- */

.record { padding-top: 88px; padding-bottom: 88px; }
.record p { font-size: 19px; color: var(--dark-soft); }
.record .h2 { margin-bottom: 20px; }
.record .recognition { margin-top: 24px; font-size: 15px; color: var(--dark-accent); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; align-content: start; }
.stats dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-label); }
.stats dd { margin-top: 6px; font-family: var(--serif); font-size: 40px; color: var(--dark-white); }

/* ---- App pages ------------------------------------------------------------ */

.app-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 56px; padding-bottom: 72px; }
.app-hero .copy { flex: 999 1 560px; min-width: 0; }
.app-hero .eyebrow { margin-bottom: 22px; }
.app-title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8vw, 104px); line-height: 0.98; letter-spacing: -0.03em; }
.app-tagline { margin-top: 18px; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; color: var(--accent); }
.app-hero .lead { margin-top: 28px; font-size: 19px; }
.app-hero .actions { margin-top: 36px; }
.app-hero .fine { margin-top: 14px; }
.app-hero .art { flex: 1 1 300px; display: flex; justify-content: center; }
.app-hero .art img { width: 220px; height: 220px; border-radius: 50px; box-shadow: 0 1px 0 var(--line), 0 30px 60px rgba(60, 44, 16, 0.16); }

.facts-checked { margin-top: 10px; }
.features-title { max-width: 760px; margin-bottom: 40px; }
.dark .privacy-label { color: var(--dark-accent); margin-bottom: 14px; }
.history-head { margin-bottom: 12px; }
.history-intro { max-width: 720px; }
.history { margin-top: 32px; }
.reviews-title { margin-bottom: 36px; }
.reviews-more { margin-top: 28px; }

.facts-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; font-size: 16px; }
.facts-table > div { display: flex; gap: 12px; padding: 12px 0; }
.facts-table dt { flex: 0 0 46%; color: var(--muted); }
.facts-table dd { font-weight: 500; min-width: 0; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); column-gap: 48px; }
.features > div { padding: 26px 0; }
.features .h3 { font-size: 25px; margin-bottom: 8px; }
.features p { color: var(--body); }
.scope { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 28px; font-size: 16px; }
.scope p { flex: 1 1 420px; min-width: 0; }
.scope .label { display: block; margin-bottom: 4px; }
.scope .label-accent { color: var(--accent); }

.privacy { padding-top: 88px; padding-bottom: 88px; }
.privacy .points li { padding: 18px 0; font-size: 18px; }
.privacy .points strong { color: var(--dark-accent); font-weight: 600; }
.privacy .policy { margin-top: 22px; font-size: 15px; }

.history li { display: flex; flex-wrap: wrap; gap: 6px 28px; padding: 18px 0; }
.history .when { flex: 0 0 140px; font-family: var(--mono); font-size: 13px; color: var(--accent); padding-top: 3px; text-transform: uppercase; }
.history .what { flex: 1 1 400px; min-width: 0; }

.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 23px; font-weight: 500; list-style-position: outside; }
.faq details p { margin-top: 12px; color: var(--body); max-width: 760px; }

.closing { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; padding-top: 88px; padding-bottom: 88px; }
.closing .copy { flex: 999 1 480px; min-width: 0; }
.closing .actions { margin-top: 24px; }
.cross-link {
    flex: 1 1 320px; min-width: 0;
    display: flex; align-items: center; gap: 16px;
    padding: 20px;
    background: var(--card); border: 1px solid var(--line); border-radius: 6px;
    text-decoration: none;
}
.cross-link img { width: 56px; height: 56px; border-radius: 13px; flex: 0 0 auto; }
.cross-link .label { display: block; font-size: 11px; }
.cross-link .title { display: block; font-family: var(--serif); font-size: 22px; line-height: 1.25; }

/* ---- About ---------------------------------------------------------------- */

.story { display: flex; flex-wrap: wrap; gap: 0 40px; }
.story article { flex: 1 1 320px; min-width: 0; padding: 28px 0; }
.story .when { font-family: var(--mono); font-size: 13px; color: var(--accent); text-transform: uppercase; }
.story .h3 { margin: 10px 0; font-size: 28px; }
.story p { color: var(--body); }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.timeline li { padding: 22px 20px 22px 0; }
.timeline .year { font-family: var(--serif); font-size: 40px; line-height: 1; }
.timeline li:last-child .year { color: var(--accent); }
.timeline p + p { margin-top: 10px; color: var(--body); }

.rules-links a { font-size: 15px; }

.brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; font-family: var(--serif); font-size: 23px; }
.brands li { padding: 12px 0; }

.company dl > div { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.company dl { border-top: 1px solid var(--dark-line); font-size: 16px; }
.company dt { flex: 0 0 200px; color: var(--dark-label); }
.company dd { flex: 1 1 260px; min-width: 0; }
.company .why { color: var(--dark-soft); }
.company .why strong { color: var(--dark-white); font-weight: 600; }

.story-list { margin-top: 32px; }
.timeline-title { margin-bottom: 32px; }
.brands-intro { margin-top: 16px; font-size: 18px; }
.brands-recognition { margin-top: 16px; color: var(--accent); }
.brands-recognition a { color: var(--accent); }
.company .why { margin-top: 16px; }
.hello-line { margin-top: 10px; font-size: 18px; }

/* ---- Legal / prose pages -------------------------------------------------- */

.prose { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.prose h1 { margin-bottom: 12px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 30px; margin: 48px 0 12px; }
.prose p, .prose ul { color: var(--body); margin-bottom: 14px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

/* ---- Footer --------------------------------------------------------------- */

.site-footer { border-top: 1px solid var(--line); font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.footer-about { flex: 2 1 320px; min-width: 0; }
.footer-brand { font-family: var(--serif); font-size: 24px; }
.footer-about .muted { margin-top: 6px; }
.footer-legal { margin-top: 20px; font-size: 13px; color: var(--label); max-width: 460px; }
.footer-nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-nav .label { font-size: 11px; letter-spacing: 0.08em; }
.footer-copy { padding-bottom: 40px; font-size: 13px; color: var(--label); }

/* ---- Small screens -------------------------------------------------------- */

@media (max-width: 720px) {
    :root { --gutter: 20px; }
    .site-header { padding-top: 20px; padding-bottom: 20px; }
    .brand-meta { display: none; }
    .hero { padding-top: 56px; padding-bottom: 48px; gap: 40px; }
    .hero-icons img { width: 96px; height: 96px; border-radius: 22px; }
    .section { padding-top: 64px; }
    .app-card { padding: 24px; }
    .card-facts { grid-template-columns: 1fr; }
    .card-facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0; }
    .facts-table { grid-template-columns: 1fr; }
    .facts-table dt { flex-basis: 50%; }
    .quote blockquote { font-size: 24px; }
    .app-hero .art { justify-content: flex-start; }
    .app-hero .art img { width: 128px; height: 128px; border-radius: 29px; }
    .brands { grid-template-columns: 1fr; }
    .company dt { flex-basis: 100%; }
}
