/* hemph.dk
   1. Fonts   2. Tokens and base   3. Header and footer   4. Buttons
   5. Reading pages   6. Wide pages (home, pricing)   7. Small screens */

/* 1. Fonts ------------------------------------------------------------ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-ext-var.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-var.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; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/space-grotesk-latin-ext-var.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/space-grotesk-latin-var.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; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/space-mono-latin-ext-400.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/space-mono-latin-400.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; }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-mono-latin-700.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; }

/* 2. Tokens and base -------------------------------------------------- */

:root {
    --paper: #efeeea;
    --card: #ffffff;
    --soft: #f4f3ef;
    --ink: #111111;
    --text: #33322e;
    --muted: #55534c;
    --line: #d6d4cc;
    --line-strong: #c9c7bf;
    --accent: #0a4bd6;
    --accent-dark: #083aa8;
    --radius: 6px;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-head: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --wide: 1160px;
    --reading: 760px;
    --gutter: 32px;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 0.5em;
}

h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.01em; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
h5, h6 { font-size: 17px; }

p { margin: 0 0 1em; }

strong, b { font-weight: 600; color: var(--ink); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Links inside running text are underlined, so they don't rely on colour alone */
main p a,
main li a {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Lists of navigation links (tables of contents) stay plain until hovered */
main nav a { text-decoration: none; }
main nav a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.eyebrow {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }

/* 3. Header and footer ------------------------------------------------ */

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }

.site-header__inner {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
}

.site-logo { display: block; }
.site-logo img { display: block; width: 68px; height: 68px; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px 26px;
    font-family: var(--font-mono);
    font-size: 14px;
}

.site-nav a { color: var(--ink); padding: 12px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { text-decoration: none; border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--ink); }
.site-nav a.button { padding: 12px 18px; border: 0; color: #ffffff; }

.site-header__actions { display: none; align-items: center; gap: 8px; }

.nav-toggle {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    color: var(--ink);
    cursor: pointer;
}

.site-footer {
    max-width: var(--wide);
    margin: 0 auto;
    padding: 96px var(--gutter) 48px;
}

.site-footer__grid { display: flex; flex-wrap: wrap; gap: 32px 64px; }

.site-footer__brand { flex: 1 1 260px; min-width: 0; }
.site-footer__brand img { display: block; width: 72px; height: 72px; margin-bottom: 14px; }
.site-footer__brand p { margin: 0; max-width: 300px; font-size: 15px; color: var(--muted); }

.site-footer nav { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; font-size: 15px; }
.site-footer nav a { color: var(--ink); padding: 6px 0; }

.site-footer__label {
    padding-bottom: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.footer-bottom p { margin: 0; font-size: 14px; color: var(--muted); }

/* 4. Buttons ---------------------------------------------------------- */

.button,
.cta-section a.cta-button,
.cta-group a.cta-button,
.cta-group a.secondary-button,
.contact-option a.cta-button {
    display: inline-block;
    padding: 15px 26px;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.button:hover,
.cta-section a.cta-button:hover,
.cta-group a.cta-button:hover,
.contact-option a.cta-button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    text-decoration: none;
}

.button--dark { background: var(--ink); border-color: var(--ink); }
.button--dark:hover { background: #33322e; border-color: #33322e; }

.button--outline,
.cta-group a.secondary-button { background: transparent; border-color: var(--ink); color: var(--ink); }
.button--outline:hover,
.cta-group a.secondary-button:hover { background: var(--ink); border-color: var(--ink); color: #ffffff; text-decoration: none; }

.button--light { background: #ffffff; border-color: #ffffff; color: var(--ink); }
.button--light:hover { background: #dcdad2; border-color: #dcdad2; }

.button--outline-light { background: transparent; border-color: #ffffff; color: #ffffff; }
.button--outline-light:hover { background: #ffffff; border-color: #ffffff; color: var(--ink); }

.button--small { padding: 11px 16px; font-family: var(--font-mono); font-weight: 700; font-size: 13px; }

.button-row, .cta-group { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 0; }

.arrow-link { display: inline-block; padding: 6px 0; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 0.15em; }

/* 5. Reading pages ---------------------------------------------------- */

.main-content {
    max-width: var(--reading);
    margin: 0 auto;
    padding: 64px var(--gutter) 0;
}

.main-content section,
.main-content article > section { margin-bottom: 48px; }

.main-content h2 { margin-top: 1.6em; }
.main-content h3 { margin-top: 1.5em; }
.main-content h4 { margin-top: 1.4em; }
.main-content > h1:first-child,
.main-content section > h2:first-child { margin-top: 0; }

.main-content ul, .main-content ol { margin: 0 0 1em; padding-left: 1.3em; }
.main-content li { margin-bottom: 0.5em; }
.main-content li::marker { color: var(--muted); }

.table-of-contents {
    margin: 32px 0 40px;
    padding: 24px 28px;
    background: var(--soft);
    border-left: 4px solid var(--ink);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.table-of-contents h2 { margin: 0 0 12px; font-size: 20px; }
.table-of-contents ul, .faq-toc ul { list-style: none; margin: 0; padding: 0; }
.table-of-contents li, .faq-toc li { margin-bottom: 8px; }
.table-of-contents a, .faq-toc a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.15em; text-decoration-color: var(--line-strong); }
.table-of-contents a:hover, .faq-toc a:hover { text-decoration-color: var(--ink); }

/* "I work with" and "I don't work with" lists */
.about-section.client-list ul,
.about-section.non-client-list ul { list-style: none; padding: 0; }

.about-section.client-list li,
.about-section.non-client-list li { position: relative; padding-left: 30px; }

.about-section.client-list li::before,
.about-section.non-client-list li::before {
    position: absolute;
    left: 2px;
    top: 0;
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--ink);
}

.about-section.client-list li::before { content: "✓"; }
.about-section.non-client-list li::before { content: "×"; color: var(--muted); }

.experience-item,
.glass-card {
    margin: 0 0 20px;
    padding: 32px;
    background: var(--card);
    border-radius: var(--radius);
}

.main-content .experience-item h3,
.main-content .glass-card h3 { margin-top: 0; }

.experience-item ul { margin-bottom: 0; font-size: 16px; }

.experience-summary { color: var(--muted); font-size: 15px; }

.faq-item { padding: 24px 0; border-top: 1px solid var(--line-strong); }
.main-content .faq-item h3 { margin: 0 0 10px; }
.faq-item p:last-child { margin-bottom: 0; }

.faq-cta { margin: 0; padding: 24px 0; border-top: 1px solid var(--line-strong); }

.contact-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

.contact-option {
    padding: 28px;
    background: var(--card);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-content .contact-option h3 { margin: 0; }
.contact-option p { margin: 0; flex: 1; }
.contact-option a.cta-button { font-size: 16px; padding: 13px 18px; }

.cta-section {
    margin: 48px 0 0;
    padding: 32px;
    background: var(--card);
    border-radius: var(--radius);
}

.cta-section p { margin: 0 0 18px; font-family: var(--font-head); font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--ink); }

.source-citation { margin-top: 1rem; font-size: 15px; color: var(--muted); }
.source-citation a { color: inherit; }

.small-text { font-size: 14px; color: var(--muted); }

.table-style {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    font-size: 16px;
    text-align: left;
    background: var(--card);
}

.table-style th, .table-style td { padding: 12px 15px; border: 1px solid var(--line); vertical-align: top; }
.table-style th { background: var(--soft); font-family: var(--font-head); color: var(--ink); }

/* 6. Wide pages (home, pricing) -------------------------------------- */

.section { padding-top: 96px; }

.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { margin: 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }

.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }

.hero { padding-top: 80px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px 56px; }
.hero__text { flex: 999 1 480px; min-width: 0; }
.hero__title { margin: 0 0 24px; font-size: clamp(40px, 5vw, 68px); line-height: 1.04; }
.hero__lead { max-width: 560px; margin: 0; font-size: 20px; line-height: 1.55; }
.hero__note { margin: 20px 0 0; font-size: 15px; color: var(--muted); }

.hero__figure { flex: 0 1 380px; min-width: 0; margin: 0; }
.hero__figure img { display: block; width: 100%; border-radius: var(--radius); }
.hero__figure figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.hero__figure figcaption strong { display: block; font-family: var(--font-head); font-weight: 700; font-size: 18px; }

.hero--plain { align-items: flex-end; padding-bottom: 0; }
.hero--plain .hero__title { font-size: clamp(38px, 5vw, 68px); }
.hero__side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts__grid { margin-top: 0; margin-bottom: 0; padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 40px; }
.facts__grid div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.facts__grid dt { font-size: 15px; color: var(--muted); }
.facts__grid dd { margin: 0; font-family: var(--font-mono); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--ink); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }

.card {
    padding: 32px;
    background: var(--card);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.card h3 { margin: 0; font-size: 26px; }
.card p { margin: 0; }
.card__num { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--accent); }
.card .arrow-link { margin-top: auto; padding-top: 8px; }

.rule-list { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.rule-list li { padding: 10px 0; border-top: 1px solid #e4e2db; }

.split { display: flex; flex-wrap: wrap; gap: 32px 64px; }
.split__aside { flex: 1 1 280px; min-width: 0; }
.split__aside h2 { margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; }
.split__aside p { margin: 0 0 12px; }
.split__main { flex: 999 1 480px; min-width: 0; }
.split__main h3 { margin: 32px 0 12px; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 18px 0 18px 38px; border-top: 1px solid var(--line-strong); }
.checklist li:last-child { border-bottom: 1px solid var(--line-strong); }
.checklist li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 22px;
    width: 8px;
    height: 15px;
    border: solid var(--ink);
    border-width: 0 2.4px 2.4px 0;
    transform: rotate(45deg);
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.steps li { padding-top: 20px; border-top: 3px solid var(--ink); }
.steps h3 { margin: 6px 0 10px; }
.steps p { margin: 0; }
.steps__num { font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.price-card {
    padding: 26px;
    background: var(--card);
    border-radius: var(--radius);
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

a.price-card:hover { text-decoration: none; box-shadow: 0 0 0 2px var(--ink); }
.price-card__name { min-height: 2.4em; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); }
.price-card__price { font-family: var(--font-mono); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--ink); }
.price-card__price small { font-size: 15px; font-weight: 400; }
.price-card__text { font-size: 15px; color: var(--muted); }

.fine-print { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.result { padding-top: 20px; border-top: 3px solid var(--ink); }
.result__number { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: clamp(34px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.result p { margin: 0 0 8px; }
.result__where { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.feature {
    padding: 40px;
    background: var(--card);
    border-radius: var(--radius);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
}

.feature__text { flex: 999 1 420px; min-width: 0; }
.feature__text h2 { margin: 0 0 12px; font-size: 32px; }
.feature__text p:last-child { margin: 0; max-width: 620px; }

.faq-list details { padding: 20px 0; border-top: 1px solid var(--line-strong); }
.faq-list details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { padding: 6px 0; cursor: pointer; }
.faq-list summary h3 { display: inline; margin: 0; font-size: 20px; }
.faq-list details p { margin: 12px 0 0; }

.band {
    padding: clamp(40px, 6vw, 80px);
    background: var(--ink);
    border-radius: var(--radius);
    color: #d9d7d0;
}

.band h2 { max-width: 760px; margin: 0 0 20px; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; letter-spacing: -0.02em; color: #ffffff; }
.band p { max-width: 600px; margin: 0; font-size: 19px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }

.plan {
    padding: 36px;
    background: var(--card);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan__head { display: flex; flex-direction: column-reverse; gap: 10px; }
.plan__head h3 { margin: 0; font-size: 28px; }
.plan__tag { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.plan p { margin: 0; }
.plan__fit { padding: 12px 16px; background: var(--soft); border-radius: 4px; font-size: 15px; }
.plan__foot { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.plan__price { font-family: var(--font-mono); font-weight: 700; font-size: 34px; line-height: 1.1; color: var(--ink); }
.plan__price small { font-size: 17px; font-weight: 400; }
.plan__terms { font-size: 14px; color: var(--muted); }
.plan .button { padding: 13px 20px; font-size: 16px; }

.lead { font-size: 19px; }

/* 7. Small screens ---------------------------------------------------- */

@media (max-width: 900px) {
    .site-header__actions { display: flex; }

    .site-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 12px;
        border-top: 1px solid var(--line);
        font-size: 16px;
    }

    .site-nav.is-open { display: flex; }
    .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
    .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
    .site-nav a.button { display: none; }
}

@media (max-width: 768px) {
    :root { --gutter: 20px; }

    body { font-size: 16px; }

    .section { padding-top: 64px; }
    .hero { padding-top: 40px; padding-bottom: 48px; gap: 32px; }
    .hero__lead { font-size: 18px; }
    .hero__figure { flex-basis: 280px; }
    .main-content { padding-top: 40px; }
    .site-footer { padding-top: 64px; }

    .card, .plan, .feature, .experience-item, .glass-card, .cta-section { padding: 24px; }
    .plans { grid-template-columns: 1fr; }

    .button-row .button, .cta-group a { flex: 1 1 100%; }

    /* Wide tables scroll inside their own box */
    .table-style { display: block; overflow-x: auto; }
}
