/* Genoramo's website: the two editions, their prices, and the pages a seller needs (terms, privacy, refunds). */
@font-face {
    font-family: "Literata";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/literata-600-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Literata";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/literata-600-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #f7f4ed;
    --surface: #fffdf8;
    --text: #293536;
    --muted: #66706c;
    --border: #e0d8c9;
    --accent: #245a5a;
    --accent-dark: #1b4646;
    --accent-soft: #dceae7;
    --warm: #b5634a;     /* terracotta */
    --sage: #a5b5a0;
    --title: "Literata", Georgia, serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--title); font-weight: 600; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* The bar at the top: name, sections, and the download. */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 1.45rem var(--title); }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 640px) { .site-nav a:not(.button) { display: none; } }

.button {
    display: inline-block; padding: 10px 20px; border-radius: 9px; border: 1px solid var(--accent);
    background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button.quiet { background: transparent; color: var(--accent) !important; }
.button.quiet:hover { background: var(--accent-soft); }

/* The first view: what Genoramo is, and its two editions. */
.hero { padding: 64px 0 40px; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.hero .small { font-size: 0.85rem; color: var(--muted); }
.shot { margin-top: 40px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 12px 40px rgba(41, 53, 54, 0.14); }

section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
section.alt .card { background: var(--bg); }
.card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* The price. */
.price-card { max-width: 460px; margin: 24px auto 0; text-align: center; padding: 32px; }
.price { font: 600 3rem/1 var(--title); margin: 8px 0; }
.price small { font: 400 1rem var(--body); color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 24px; text-align: left; }
.price-card li { padding: 6px 0 6px 28px; position: relative; border-bottom: 1px solid var(--border); }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--warm); font-weight: 700; }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }

/* Questions. */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }

/* The legal pages. */
.legal { padding: 48px 0 64px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal .updated { color: var(--muted); font-size: 0.9rem; }
.placeholder { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

.site-footer { padding: 32px 0; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--muted); }

/* The other language, at the end of the bar at the top. */
.site-nav .language { color: var(--warm); font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--warm); }

/* Genoramo's name, wherever it is written: in its own typeface (Literata SemiBold), as in the logo. */
.name { font-family: var(--title); font-weight: 600; letter-spacing: 0.005em; }

/* The two editions, side by side under the first heading. */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 28px 0 14px; }
.edition {
    display: flex; flex-direction: column; gap: 6px; padding: 22px 24px; border-radius: 14px; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); color: var(--text);
    box-shadow: 0 6px 22px rgba(41, 53, 54, 0.07); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.edition.warm { border-top-color: var(--warm); }
.edition:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(41, 53, 54, 0.12); }
.edition strong { font: 600 1.35rem/1.2 var(--title); }
.edition span { color: var(--muted); }
.edition .edition-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.edition.warm .edition-label { color: var(--warm); }
.edition .edition-price { margin-top: 6px; color: var(--text); font-weight: 600; }

.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.eyebrow.warm { color: var(--warm); }
.intro { font-size: 1.1rem; color: var(--muted); max-width: 720px; }
.centre { text-align: center; margin-left: auto; margin-right: auto; }
section .shot { margin: 28px 0 8px; }

/* The parchment print beside the picture of it, framed. */
.feature-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin-top: 64px; }
.feature-split h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.framed { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 44px rgba(41, 53, 54, 0.18); }
@media (max-width: 820px) { .feature-split { grid-template-columns: 1fr; } }

/* The prices: one card for each edition, each monthly or yearly. */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; max-width: 860px; margin: 28px auto 0; }
.prices .price-card { max-width: none; margin: 0; border-top: 4px solid var(--accent); display: flex; flex-direction: column; }
.prices .price-card ul { flex: 1; }
.prices .price-card.warm { border-top-color: var(--warm); }
.price-card .or { color: var(--muted); margin: 4px 0 0; }
.price-card .or strong { color: var(--warm); }
.price-card .buy { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.price-card .buy .button { min-width: 120px; }
.price-card.warm .button:not(.quiet) { background: var(--warm); border-color: var(--warm); }
.price-card.warm .button:not(.quiet):hover { background: #9c5440; border-color: #9c5440; }
.price-card.warm .button.quiet { color: var(--warm) !important; border-color: var(--warm); }
.price-card.warm .button.quiet:hover { background: #f6e6de; }

/* The sample family's faces: everyone in the tree, by generation. */
.faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 18px; max-width: 830px; margin: 30px auto 6px; padding: 0; list-style: none; }
.faces li { width: 84px; text-align: center; font-size: 0.82rem; color: var(--muted); line-height: 1.25; }
.faces img { width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 3px 10px rgba(41, 53, 54, 0.16); }
.faces strong { display: block; color: var(--text); font-weight: 600; }

/* Small phones: the button at the top stays on one line. */
@media (max-width: 420px) {
    .site-header .wrap { gap: 12px; }
    .site-nav .button { padding: 8px 12px; font-size: 0.85rem; white-space: nowrap; }
}
