:root {
    --ink: #27231f;
    --muted: #6f665e;
    --cream: #f6f1e9;
    --paper: #fffdf9;
    --rose: #8d5b62;
    --rose-dark: #6f4148;
    --line: #ded4c8;
    --max: 1160px;
}

/* Reset */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

img {
    max-width: 100%;
}

a {
    color: var(--rose-dark);
    text-underline-offset: 3px;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.12;
}

h1 {
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
    font-size: 1.5rem;
}

/* Page-load animation */

.reveal {
    opacity: 0;
    transform: translateY(28px);
}

body.page-loaded .reveal {
    animation: revealText 0.9s ease-out forwards;
}

body.page-loaded .reveal-delay-1 {
    animation-delay: 0.2s;
}

body.page-loaded .reveal-delay-2 {
    animation-delay: 0.4s;
}

body.page-loaded .reveal-delay-3 {
    animation-delay: 0.6s;
}

body.page-loaded .portrait-placeholder.reveal {
    animation-name: revealPortrait;
    animation-duration: 1.1s;
}

@keyframes revealText {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealPortrait {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* Header */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    max-width: var(--max);
    margin: auto;
    padding: 1.3rem 2rem;

    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    flex-direction: column;

    color: var(--ink);
    line-height: 1.25;
    text-decoration: none;
}

.brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

.brand span {
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-header nav a {
    padding: 0.55rem 0.9rem;

    border: 1px solid transparent;
    border-radius: 999px;

    color: var(--ink);
    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.site-header nav a:hover {
    border-color: var(--line);
    background: var(--cream);
    transform: translateY(-1px);
}

.site-header nav a.active,
.site-header nav a[aria-current="page"] {
    border-color: var(--rose-dark);
    background: var(--rose-dark);
    color: #ffffff;
}

/* Main content */

main {
    min-height: 70vh;
}

/* Home hero */

.hero {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: center;
    gap: 5rem;

    max-width: var(--max);
    margin: auto;
    padding: 6rem 2rem;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    margin-bottom: 1rem;

    color: var(--rose);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.lead {
    max-width: 700px;

    color: var(--muted);
    font-size: 1.2rem;
}

.portrait-placeholder {
    width: min(100%, 430px);
    aspect-ratio: 1 / 1;
    margin-inline: auto;

    overflow: hidden;

    border: 8px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: var(--cream);

    box-shadow:
        0 24px 55px rgba(39, 35, 31, 0.18),
        0 8px 20px rgba(39, 35, 31, 0.1);
}

.portrait-placeholder img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 18%;
}

/* Buttons */

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;

    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.3rem;

    border: 1px solid var(--rose-dark);
    border-radius: 999px;
    background: var(--rose-dark);

    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.button:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(39, 35, 31, 0.14);
}

.button.secondary {
    border-color: var(--rose-dark);
    background: transparent;
    color: var(--rose-dark);
}

.button.secondary:hover {
    background: var(--rose-dark);
    color: #ffffff;
}

/* Sections */

.section {
    max-width: var(--max);
    margin: auto;
    padding: 5rem 2rem;
}

.intro {
    max-width: 850px;
    text-align: center;
}

.page-hero {
    max-width: var(--max);
    margin: auto;
    padding: 6rem 2rem 3rem;
}

.page-hero.narrow {
    max-width: 900px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;

    margin-bottom: 2rem;
}

/* Cards */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.card {
    padding: 1.7rem;

    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.card:hover {
    border-color: #cbbcb0;
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(39, 35, 31, 0.09);
}

.card p {
    color: var(--muted);
}

/* Callout */

.callout {
    margin: 4rem auto 0;
    padding: 5rem 2rem;

    background: var(--cream);
    text-align: center;
}

.callout p {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
}

/* Text content */

.prose {
    max-width: 820px;
    font-size: 1.08rem;
}

.note {
    padding: 1rem;

    border-left: 4px solid var(--rose);
    background: var(--cream);
}

/* Forms */

.form-wrap {
    max-width: 760px;
}

.form-wrap.compact {
    max-width: 520px;
}

.form-card {
    display: grid;
    gap: 1.15rem;

    padding: 2rem;

    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.form-card label {
    display: grid;
    gap: 0.35rem;

    font-weight: 700;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 0.85rem;

    border: 1px solid #bcb1a6;
    border-radius: 10px;
    background: #ffffff;

    color: var(--ink);
    font: inherit;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    border-color: var(--rose);
    outline: 3px solid rgba(141, 91, 98, 0.15);
}

.checkbox {
    display: flex !important;
    grid-template-columns: auto 1fr !important;
    align-items: center;
    gap: 0.6rem;
}

.checkbox input {
    width: auto;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

/* Alerts */

.alert {
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;

    border-radius: 12px;
}

.alert.success {
    background: #e8f2e9;
}

.alert.error {
    background: #f8e6e3;
}

/* Footer */

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;

    max-width: var(--max);
    margin: auto;
    padding: 3rem 2rem;

    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.site-footer small {
    grid-column: 1 / -1;
}

/* Tables */

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    padding: 1rem;

    border-bottom: 1px solid var(--line);
    text-align: left;
}

/* Admin */

.admin-grid .linked {
    display: flex;
    flex-direction: column;

    color: var(--ink);
    text-decoration: none;
}

.admin-grid strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 3rem;
}

.inquiry-list {
    display: grid;
    gap: 1rem;
}

.unread {
    border-left: 5px solid var(--rose);
}

/* Inline code */

code {
    padding: 0.15rem 0.35rem;

    border-radius: 5px;
    background: var(--cream);
}

/* About page */

.about-intro {
    display: grid;
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6rem);
}

.about-portrait {
    position: relative;

    width: 100%;
    max-width: 390px;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
}

.about-portrait::before {
    position: absolute;
    inset: 8% -8% -8% 8%;
    z-index: 0;

    border-radius: 50%;
    background: var(--cream);

    content: "";
}

.about-portrait img {
    position: relative;
    z-index: 1;

    display: block;
    width: 100%;
    height: 100%;

    border: 8px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;

    box-shadow:
        0 28px 65px rgba(39, 35, 31, 0.18),
        0 8px 22px rgba(39, 35, 31, 0.1);

    object-fit: cover;
    object-position: center 18%;
}

.about-intro-copy {
    max-width: 650px;
}

.about-opening {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    line-height: 1.5;
}

.about-story h2 {
    margin-top: 4rem;
}

.about-story h2:first-child {
    margin-top: 0;
}

.about-quote {
    margin: 3.5rem 0;
    padding: 2rem 2.5rem;

    border-left: 5px solid var(--rose);
    background: var(--cream);

    color: var(--rose-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-style: italic;
    line-height: 1.5;
}

/* Tablet and mobile */

@media (max-width: 800px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header nav {
        flex-wrap: wrap;
        gap: 0.35rem;
    }

    .site-header nav a {
        padding: 0.45rem 0.75rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 3.5rem;
    }

    .portrait-placeholder {
        width: 100%;
        max-width: 360px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .about-intro {
        grid-template-columns: 1fr;
    }

    .about-portrait {
        max-width: 330px;
    }

    .about-intro-copy {
        max-width: none;
    }

    .about-quote {
        padding: 1.5rem;
    }

    h1 {
        font-size: clamp(2.5rem, 13vw, 4.3rem);
    }
}

/* Small phones */

@media (max-width: 520px) {
    .site-header,
    .hero,
    .section,
    .page-hero,
    .site-footer {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }

    .hero {
        padding-top: 3rem;
        padding-bottom: 4rem;
    }

    .site-header nav {
        width: 100%;
    }

    .site-header nav a {
        flex: 1 1 auto;
        text-align: center;
    }

    .actions {
        flex-direction: column;
    }

    .actions .button {
        width: 100%;
        text-align: center;
    }

    .form-card {
        padding: 1.35rem;
    }
}

/* Accessibility: reduced motion */

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

    .reveal,
    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3,
    .portrait-placeholder.reveal {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .site-header nav a,
    .button,
    .card {
        transition: none;
    }
}