:root {
    --bg: #f4efe6;
    --paper: rgba(255, 249, 240, 0.74);
    --panel: rgba(18, 34, 28, 0.84);
    --panel-soft: rgba(255, 252, 247, 0.82);
    --text: #14221d;
    --text-soft: #58655f;
    --line: rgba(20, 34, 29, 0.11);
    --brand: #1f5a4b;
    --brand-strong: #173f35;
    --sand: #ead9bc;
    --sun: #be7d42;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(27, 33, 29, 0.14);
    --shadow-soft: 0 16px 40px rgba(12, 20, 16, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(190, 125, 66, 0.14), transparent 26%),
        linear-gradient(180deg, #f7f2ea 0%, #f3ece2 100%);
}

a {
    color: inherit;
}

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

button,
input {
    font: inherit;
}

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

.shell {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(18px);
    background: rgba(247, 242, 234, 0.78);
    border-bottom: 1px solid rgba(20, 34, 29, 0.08);
}

.site-header .shell,
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand-block {
    display: grid;
    gap: 4px;
}

.brand {
    font-family: "Fraunces", serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.03em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.96rem;
    color: var(--text-soft);
}

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

.site-nav a:hover {
    color: var(--brand-strong);
}

.overline {
    margin: 0;
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.overline-light {
    color: rgba(255, 247, 236, 0.86);
}

.hero {
    position: relative;
    overflow: clip;
    min-height: calc(100vh - 76px);
    padding: 56px 0 40px;
}

.hero-backdrop,
.hero-wash {
    position: absolute;
    inset: 0;
}

.hero-backdrop {
    background:
        linear-gradient(90deg, rgba(13, 23, 20, 0.82) 0%, rgba(13, 23, 20, 0.45) 44%, rgba(13, 23, 20, 0.78) 100%),
        url("assets/magnolias-chateau-pau.webp") center center / cover no-repeat;
    transform: scale(1.03);
}

.hero-wash {
    background:
        radial-gradient(circle at 16% 22%, rgba(234, 217, 188, 0.26), transparent 24%),
        linear-gradient(180deg, rgba(9, 17, 14, 0.12) 0%, rgba(9, 17, 14, 0.44) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 420px);
    gap: 40px;
    align-items: center;
    min-height: calc(100vh - 172px);
}

.hero-copy {
    color: var(--white);
    padding: 32px 0;
}

.hero-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    margin-bottom: 22px;
    border-radius: 22px;
    background: rgba(255, 250, 244, 0.92);
    box-shadow: 0 18px 40px rgba(9, 17, 14, 0.16);
}

.hero-logo {
    width: min(220px, 48vw);
    height: auto;
}

.hero-copy h1,
.quick-card h2,
.story-card h2 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.hero-copy h1 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 8vw, 6rem);
}

.hero-lead {
    max-width: 62ch;
    margin: 22px 0 0;
    font-size: clamp(1.03rem, 1.8vw, 1.18rem);
    line-height: 1.72;
    color: rgba(255, 247, 236, 0.9);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 26px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, #f6e6ca 0%, #efd4ad 100%);
    color: #19372f;
    box-shadow: 0 18px 36px rgba(18, 34, 28, 0.18);
}

.button-secondary {
    border-color: rgba(255, 248, 239, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.button-block {
    width: 100%;
}

.hero-points {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    max-width: 52ch;
    color: rgba(255, 247, 236, 0.85);
}

.hero-points li {
    position: relative;
    padding-left: 24px;
    line-height: 1.55;
}

.hero-points li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f4d2a2;
    box-shadow: 0 0 0 6px rgba(244, 210, 162, 0.14);
}

.login-panel,
.quick-card,
.story-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.login-panel {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.96) 0%, rgba(247, 239, 230, 0.93) 100%);
    border: 1px solid rgba(255, 255, 255, 0.58);
}

.panel-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(23, 63, 53, 0.08);
    color: var(--brand-strong);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel-head p,
.panel-copy,
.panel-footnote,
.notice p,
.quick-card p,
.story-card p,
.story-list {
    margin: 0;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2d7b67;
    box-shadow: 0 0 0 6px rgba(45, 123, 103, 0.14);
}

.login-panel h2 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.panel-copy,
.quick-card p,
.story-card p,
.story-list {
    color: var(--text-soft);
    line-height: 1.7;
}

.panel-copy {
    margin-top: 16px;
}

.login-form {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.login-form label {
    display: grid;
    gap: 8px;
}

.login-form span {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--brand-strong);
}

.login-form input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(20, 34, 29, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form input:focus {
    border-color: rgba(31, 90, 75, 0.55);
    box-shadow: 0 0 0 4px rgba(31, 90, 75, 0.12);
    background: var(--white);
}

.panel-footnote {
    margin-top: 18px;
    font-size: 0.92rem;
    color: #6b6a65;
}

.notice {
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.94rem;
    line-height: 1.6;
}

.notice-success {
    background: rgba(45, 123, 103, 0.12);
    color: #16473b;
}

.notice-error {
    background: rgba(168, 74, 46, 0.12);
    color: #7b3017;
}

.notice-error p + p {
    margin-top: 6px;
}

.quick-section,
.story-section {
    padding: 34px 0 0;
}

.quick-grid,
.story-grid {
    display: grid;
    gap: 24px;
}

.quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-card,
.story-card {
    position: relative;
    overflow: hidden;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.quick-card {
    padding: 28px;
}

.quick-label {
    margin-bottom: 18px;
    color: var(--sun);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.quick-card h2,
.story-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text);
}

.quick-card p {
    margin-top: 14px;
}

.story-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: stretch;
}

.story-grid-reverse {
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.story-card {
    padding: clamp(28px, 4vw, 40px);
}

.story-card-large {
    background:
        linear-gradient(180deg, rgba(255, 251, 246, 0.88) 0%, rgba(255, 247, 237, 0.9) 100%);
}

.story-card h2 {
    margin-top: 10px;
}

.story-card p {
    margin-top: 16px;
}

.story-list {
    margin-top: 22px;
    padding-left: 18px;
}

.story-list li + li {
    margin-top: 10px;
}

.story-section-alt {
    padding-bottom: 48px;
}

.quote-card {
    display: grid;
    align-content: end;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(23, 63, 53, 0.98) 0%, rgba(18, 34, 28, 0.96) 100%);
    color: var(--white);
}

.quote-mark {
    color: rgba(244, 210, 162, 0.9);
    font-family: "Fraunces", serif;
    font-size: 6rem;
    line-height: 0.8;
}

.quote-copy {
    margin-top: 12px;
    font-family: "Fraunces", serif;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: rgba(255, 248, 239, 0.94);
}

.site-footer {
    border-top: 1px solid rgba(20, 34, 29, 0.08);
    background: rgba(255, 251, 246, 0.72);
}

.site-footer p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.reveal {
    animation: reveal-up 0.9s ease both;
}

.reveal:nth-child(2) {
    animation-delay: 0.08s;
}

.reveal:nth-child(3) {
    animation-delay: 0.16s;
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@media (max-width: 1080px) {
    .hero-grid,
    .quick-grid,
    .story-grid,
    .story-grid-reverse {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-grid {
        min-height: auto;
    }

    .login-panel {
        max-width: 520px;
    }
}

@media (max-width: 720px) {
    .site-header .shell,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .hero {
        padding-top: 28px;
    }

    .hero-copy h1 {
        max-width: 10ch;
    }

    .quick-card,
    .story-card,
    .login-panel {
        border-radius: 24px;
    }
}
