@font-face {
    font-family: "Readex Pro";
    font-style: normal;
    font-weight: 160 700;
    font-display: swap;
    src: url("/public/assets/fonts/ReadexPro-VariableFont_wght.ttf") format("truetype");
}

:root {
    --raft-bg: #ebe8e6;
    --raft-fg: #1d1f25;
    --raft-accent: #c26148;
    --raft-bg-alt: rgba(255, 255, 255, 0.6);
    --raft-fg-alt: #fdfdfd;
    --content-size: 740px;
    --wide-size: 960px;
    --space-20: clamp(0.4rem, 2vw, 0.5rem);
    --space-30: clamp(0.6rem, 2.5vw, 1rem);
    --space-40: clamp(1rem, 3vw, 1.5rem);
    --space-50: clamp(1.5rem, 4vw, 2rem);
    --space-60: clamp(2rem, 5vw, 3rem);
    --space-70: clamp(3rem, 6vw, 4rem);
    --space-80: clamp(3rem, 7vw, 5rem);
    --outer-space: clamp(24px, 3.333vw, 48px);
    --font-small: 14px;
    --font-normal: 18px;
    --font-medium: 24px;
    --font-large: 28px;
    --font-x-large: 32px;
    --font-huge: 56px;
    --block-gap: 24px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background: var(--raft-bg);
    color: var(--raft-fg);
    font-family: "Readex Pro", sans-serif;
    font-size: var(--font-normal);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a:not(.button) {
    color: var(--raft-fg);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

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

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
blockquote {
    margin: 0;
}

h1 {
    font-size: var(--font-huge);
    font-weight: 600;
    line-height: 1.25;
}

h2 {
    font-size: var(--font-x-large);
    font-weight: 600;
    line-height: 1.35;
}

ul {
    padding-left: 1.5rem;
}

.site-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding-inline: var(--outer-space);
}

.site-surface {
    background: var(--raft-bg-alt);
}

.container {
    width: min(100%, var(--content-size));
    margin-inline: auto;
}

.container.wide {
    width: min(100%, var(--wide-size));
}

.site-header,
.page-hero,
.home-hero,
.site-footer {
    margin-inline: calc(var(--outer-space) * -1);
    padding-inline: var(--outer-space);
}

.site-header {
    padding-block: 20px;
}

.header-inner,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

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

.site-nav ul,
.site-footer ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    padding: 0;
}

.site-nav a,
.site-footer a {
    text-decoration: none;
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--raft-fg);
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    position: absolute;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease;
}

.menu-toggle span:first-child {
    transform: translateY(-4px);
}

.menu-toggle span:last-child {
    transform: translateY(4px);
}

.menu-open .menu-toggle span:first-child {
    transform: rotate(45deg);
}

.menu-open .menu-toggle span:last-child {
    transform: rotate(-45deg);
}

.home-hero {
    margin-top: 0;
    padding-top: var(--space-80);
    padding-bottom: var(--space-80);
}

.home-hero-inner {
    text-align: center;
}

.home-hero-inner > * + * {
    margin-top: var(--block-gap);
}

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

.page-hero h1 {
    text-align: center;
}

.page-content {
    flex: 1 0 auto;
}

.content-block {
    padding-top: 64px;
    padding-bottom: 64px;
}

.content-block > * + * {
    margin-top: var(--block-gap);
}

.content-block p + p {
    margin-top: var(--block-gap);
}

.content-block ul + p,
.content-block p + ul,
.content-block h2 + p,
.content-block p + h2,
.content-block blockquote + p,
.content-block p + blockquote {
    margin-top: var(--block-gap);
}

.button-row {
    display: flex;
    justify-content: center;
}

.service-tabs {
    margin-top: var(--space-50);
}

.service-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: var(--space-40);
}

.service-tab {
    border: 2px solid var(--raft-fg);
    background: transparent;
    color: var(--raft-fg);
    cursor: pointer;
    font: inherit;
    font-size: var(--font-small);
    font-weight: 600;
    line-height: 1.4;
    padding: 0.85rem 1rem;
    text-align: left;
}

.service-tab.is-active {
    background: var(--raft-fg);
    color: #fff;
}

.service-tab-panels {
    border: 1px solid rgba(29, 31, 37, 0.18);
    background: rgba(255, 255, 255, 0.45);
    padding: var(--space-50);
}

.service-panel > * + * {
    margin-top: var(--block-gap);
}

.testimonial-list > * + * {
    margin-top: var(--space-60);
}

.testimonial-entry {
    padding-bottom: var(--space-50);
    border-bottom: 1px solid rgba(29, 31, 37, 0.14);
}

.testimonial-entry:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.testimonial-entry blockquote > * + * {
    margin-top: var(--block-gap);
}

a.button,
a.button:visited,
a.button:hover,
a.button:focus {
    display: inline-block;
    border: 2px solid transparent;
    border-radius: 3px;
    background: var(--raft-accent);
    color: var(--raft-fg-alt);
    font-size: var(--font-normal);
    font-weight: 600;
    line-height: 1.2;
    padding: var(--space-30) var(--space-50);
    text-decoration: none;
}

.spacer-section {
    padding: 64px 0;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: var(--block-gap);
    align-items: start;
}

.profile-image img {
    width: 100%;
}

.quote-attribution {
    text-align: right;
}

blockquote {
    font-style: italic;
}

.site-footer {
    background: #000;
    color: #fff;
    padding: 24px var(--outer-space);
}

.site-footer p,
.site-footer a {
    color: #fff;
    font-size: var(--font-small);
    line-height: 1.6;
}

.site-nav a[aria-current="page"],
.site-footer a[aria-current="page"] {
    text-decoration: underline;
}

@media (max-width: 769px) {
    :root {
        --font-small: 12px;
        --font-normal: 16px;
        --font-medium: 20px;
        --font-large: 24px;
        --font-x-large: 28px;
        --font-huge: 36px;
    }
}

@media (max-width: 600px) {
    .menu-toggle {
        position: relative;
        display: inline-flex;
        flex: 0 0 auto;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        display: none;
        align-items: center;
        justify-content: center;
        background: var(--raft-bg);
        padding: var(--outer-space);
        z-index: 20;
    }

    .menu-open .site-nav {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .site-nav a {
        font-size: var(--font-large);
    }

    .service-tab-list {
        flex-direction: column;
    }

    .service-tab {
        width: 100%;
    }

    .service-tab-panels {
        padding: var(--space-40);
    }

    .header-inner,
    .footer-inner,
    .site-footer ul {
        gap: 20px;
    }

    .footer-inner,
    .site-footer ul,
    .two-column {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }
}
