/* ============================================
   1. SELF-HOSTED TYPE / VARIABLES
============================================ */
@font-face {
    font-family: "Instrument Serif";
    src: url("../fonts/instrument-serif.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Sans";
    src: url("../fonts/instrument-sans.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
}

:root {
    --paper: #fbfcfa;
    --blue: #e5eef4;
    --blue-deep: #cfdee8;
    --ink: #302b28;
    --accent: #b94724;
    --light: #ffffff;
    --gutter: clamp(20px, 4.5vw, 88px);
    --section-space: clamp(76px, 9vw, 144px);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   HERO BACKGROUND IMAGE
   Optional only; the Quiet Cut concept works best without a photo.
   To enable: url("../img/hero-background.webp").
   Prefer a quiet 2200 × 1400 WebP under 250 KB with a calm centre.
============================================ */
:root {
    --hero-image: none;
}

/* ============================================
   2. RESET / BASE / ACCESSIBILITY
============================================ */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 32px;
    scrollbar-color: var(--ink) var(--blue);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Instrument Sans", Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--ink);
    color: var(--light);
}

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

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

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

p {
    margin: 0 0 24px;
}

p:last-child {
    margin-bottom: 0;
}

h1,
h2,
h3 {
    margin: 0;
    font-weight: 400;
    text-wrap: balance;
}

h1,
h2 {
    font-family: "Instrument Serif", Georgia, serif;
    letter-spacing: -0.025em;
    line-height: 1.02;
}

h1 {
    font-size: clamp(64px, 8.4vw, 126px);
}

h2 {
    font-size: clamp(46px, 5.2vw, 78px);
}

h3 {
    font-size: 27px;
    line-height: 1.25;
}

svg {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.wrap {
    width: min(100%, 1680px);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    padding-block: var(--section-space);
}

.skip-link {
    position: absolute;
    z-index: 5;
    top: 12px;
    left: var(--gutter);
    padding: 12px 20px;
    transform: translateY(-160%);
    background: var(--ink);
    color: var(--light);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ============================================
   3. HEADER / ALWAYS-AVAILABLE NAVIGATION
============================================ */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 108px;
    background: var(--paper);
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    width: 248px;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
}

.site-header nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 16px;
    text-decoration: none;
}

.site-header nav a:last-child {
    color: var(--accent);
}

/* ============================================
   4. HERO / THE QUIET CUT
============================================ */
.hero {
    position: relative;
    isolation: isolate;
    padding-top: clamp(62px, 7vw, 104px);
    padding-bottom: 52px;
    background-color: var(--blue);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--blue);
    opacity: 0.93;
    content: "";
}

.hero::after {
    position: absolute;
    z-index: -1;
    right: 0;
    bottom: -1px;
    left: 0;
    height: clamp(28px, 4vw, 60px);
    background: var(--paper);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
    content: "";
}

.hero-content {
    text-align: center;
}

.hero h1 {
    animation: settle 500ms var(--ease-out) both;
}

.hero-content p {
    max-width: 620px;
    margin: 32px auto 30px;
    font-size: 20px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    min-height: 56px;
    padding: 14px 24px;
    background: var(--accent);
    color: var(--light);
    font-size: 16px;
    text-decoration: none;
    transition: transform 140ms var(--ease-out);
}

.button:active {
    transform: scale(0.98);
}

.hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-top: clamp(64px, 7vw, 110px);
    font-size: 14px;
}

.hero-foot a {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    text-decoration: none;
}

/* ============================================
   5. APPROACH / SCOPE
============================================ */
.approach {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 7vw, 112px);
    align-items: start;
}

.approach h2 {
    max-width: 430px;
}

.approach-copy {
    max-width: 62ch;
}

.statement {
    margin-bottom: 32px;
    font-size: 28px;
    line-height: 1.4;
}

.scope {
    background: var(--ink);
    color: var(--paper);
}

.scope-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 56px;
}

.scope-heading p {
    max-width: 34ch;
}

.scope-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.7fr;
    align-items: start;
    gap: clamp(32px, 5vw, 80px);
    margin-top: 80px;
}

.scope-layout article h3 {
    margin-bottom: 20px;
}

.scope-new {
    padding-top: 24px;
}

.scope-existing {
    padding-top: 80px;
}

.scope-note {
    padding: 28px;
    background: var(--blue);
    color: var(--ink);
    font-size: 16px;
}

/* ============================================
   6. PRINCIPLES
============================================ */
.principles-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 40px;
}

.principles-heading p {
    max-width: 24ch;
}

.principles-list {
    margin: 64px 0 0;
}

.principles-list div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 7vw, 112px);
    padding: 28px 0;
}

.principles-list div + div {
    border-top: 1px solid var(--blue-deep);
}

.principles-list dt {
    font-size: 27px;
    line-height: 1.3;
}

.principles-list dd {
    margin: 0;
    max-width: 60ch;
}

/* ============================================
   7. CONVERSATION / NATIVE DISCLOSURES
============================================ */
.conversation {
    background: var(--blue);
}

.conversation-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(48px, 9vw, 144px);
}

.conversation h2 {
    margin-bottom: 32px;
}

.conversation-layout > div > p {
    max-width: 44ch;
}

.email-link {
    display: inline-block;
    max-width: 100%;
    margin-top: 20px;
    padding-block: 8px;
    color: var(--accent);
    font-size: clamp(24px, 2.6vw, 38px);
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.conversation-notes h3 {
    margin-bottom: 28px;
}

details {
    padding-block: 18px;
    border-top: 1px solid var(--ink);
}

summary {
    min-height: 32px;
    cursor: pointer;
    font-weight: 600;
}

details p {
    margin: 16px 0 0;
    padding-right: 12px;
    font-size: 16px;
}

.privacy-note {
    margin-top: 26px;
    font-size: 14px;
}

/* ============================================
   8. FOOTER / LEGAL READING PAGES
============================================ */
.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding-block: 48px;
}

.site-footer > p {
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 32px;
    line-height: 1.3;
}

.site-footer > div {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
}

.site-footer > div a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.site-footer small {
    grid-column: 1 / -1;
    font-size: 13px;
}

.reading-page {
    max-width: 1000px;
    padding-block: 64px 100px;
}

.reading-page h1 {
    margin-bottom: 24px;
    font-size: clamp(54px, 7vw, 88px);
}

.reading-page h2 {
    margin: 48px 0 20px;
    font-size: 36px;
    line-height: 1.15;
}

.reading-page h3 {
    margin: 32px 0 16px;
}

.reading-page p,
.reading-page li {
    max-width: 72ch;
}

.reading-page address {
    font-style: normal;
}

.reading-page .button {
    margin-top: 20px;
}

/* ============================================
   9. PURPOSEFUL MOTION / POINTER GATING
============================================ */
@keyframes settle {
    from {
        transform: translateY(8px);
        opacity: 0.6;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (hover: hover) and (pointer: fine) {
    .button:hover {
        transform: translateY(-2px);
    }

    .site-header nav a:hover,
    .hero-foot a:hover {
        text-decoration: underline;
        text-underline-offset: 6px;
    }

    summary:hover {
        text-decoration: underline;
        text-underline-offset: 5px;
    }
}

/* ============================================
   10. RESPONSIVE / REDUCED MOTION
============================================ */
@media (max-width: 1000px) {
    .scope-heading {
        align-items: start;
        flex-direction: column;
        gap: 28px;
    }

    .scope-heading p {
        max-width: 54ch;
    }

    .scope-layout {
        grid-template-columns: 1fr 1fr;
        margin-top: 48px;
    }

    .scope-note {
        grid-column: 1 / -1;
        max-width: 60ch;
    }

    .conversation-layout {
        gap: 48px;
    }
}

@media (max-width: 700px) {
    h1 {
        font-size: clamp(48px, 9vw, 64px);
    }

    body {
        font-size: 17px;
    }

    .site-header {
        align-items: start;
        flex-direction: column;
        gap: 8px;
        padding-block: 18px 10px;
    }

    .site-logo img {
        width: 226px;
    }

    .site-header nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
    }

    .site-header nav a {
        font-size: 14px;
    }

    .hero {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .hero-content p {
        margin-top: 28px;
        font-size: 18px;
    }

    .desktop-break {
        display: none;
    }

    .hero-foot {
        align-items: start;
        flex-direction: column;
        gap: 8px;
        margin-top: 52px;
    }

    .hero-foot span {
        max-width: 28ch;
    }

    .approach,
    .conversation-layout {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .statement {
        font-size: 24px;
    }

    .scope-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .scope-new,
    .scope-existing {
        padding-top: 0;
    }

    .scope-note {
        padding: 24px;
    }

    .principles-heading {
        align-items: start;
        flex-direction: column;
        gap: 24px;
    }

    .principles-heading p {
        max-width: none;
    }

    .principles-list {
        margin-top: 32px;
    }

    .principles-list div {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .principles-list dt {
        font-size: 24px;
    }

    .conversation-layout {
        gap: 56px;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .site-footer > div {
        flex-wrap: wrap;
        column-gap: 24px;
        row-gap: 4px;
    }

    .reading-page {
        padding-top: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero h1 {
        animation: none;
    }

    .button {
        transition: none;
    }

    .button:hover,
    .button:active {
        transform: none;
    }
}
