@font-face {
    font-family: "Niconne";
    src: url("/fonts/nic-webfont.woff2") format("woff2");
    font-display: swap;
}

:root {
    --ink: #25221f;
    --muted: #716b64;
    --cream: #fffaf1;
    --paper: rgba(255, 253, 248, 0.86);
    --coral: #ef6a52;
    --coral-dark: #d94f39;
    --sun: #f7bd49;
    --sage: #487466;
    --line: rgba(37, 34, 31, 0.13);
    --shadow: 0 28px 80px rgba(111, 67, 35, 0.14);
    color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 214, 120, 0.19), transparent 30rem),
        var(--cream);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

button, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.7rem 1rem;
    color: #fff;
    background: var(--ink);
    border-radius: 0.5rem;
    transform: translateY(-160%);
}

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

.page-glow {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.42;
    pointer-events: none;
}

.page-glow--one {
    width: 25rem;
    height: 25rem;
    top: -10rem;
    right: -7rem;
    background: rgba(239, 106, 82, 0.2);
}

.page-glow--two {
    width: 20rem;
    height: 20rem;
    bottom: 10%;
    left: -10rem;
    background: rgba(72, 116, 102, 0.16);
}

.site-header,
.site-footer {
    width: min(1180px, calc(100% - 2.5rem));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.8rem 0;
}

.wordmark {
    font-weight: 850;
    font-size: 1.2rem;
    letter-spacing: 0.18em;
    text-decoration: none;
}

.wordmark span { color: var(--coral); }

.header-note {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.hero {
    width: min(980px, calc(100% - 2.5rem));
    min-height: calc(100svh - 8rem);
    margin: 0 auto;
    padding: clamp(3.2rem, 8vh, 7rem) 0 5rem;
    text-align: center;
}

.eyebrow,
.kicker {
    margin: 0 0 1.2rem;
    color: var(--sage);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow span {
    display: inline-block;
    margin-right: 0.45rem;
    color: var(--coral);
    animation: breathe 2.4s ease-in-out infinite;
}

h1, h2, p { text-wrap: pretty; }

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.65rem, 7.6vw, 6.5rem);
    font-weight: 400;
    line-height: 0.97;
    letter-spacing: -0.055em;
}

h1 em {
    color: var(--coral);
    font-family: "Niconne", Georgia, serif;
    font-size: 1.13em;
    font-weight: 400;
    letter-spacing: 0;
}

.compliment-wrap {
    position: relative;
    width: min(760px, 100%);
    margin: clamp(3rem, 7vw, 5.6rem) auto 2rem;
}

.smile {
    position: absolute;
    z-index: 2;
    top: -2rem;
    right: clamp(1rem, 8vw, 5rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    padding: 1.1rem 1rem 0.85rem;
    background: var(--sun);
    border: 2px solid var(--ink);
    border-radius: 50%;
    box-shadow: 4px 5px 0 var(--ink);
    transform: rotate(7deg);
    transition: transform 300ms ease;
}

.smile-eye {
    width: 0.32rem;
    height: 0.44rem;
    background: var(--ink);
    border-radius: 50%;
}

.smile-mouth {
    grid-column: 1 / -1;
    width: 1.5rem;
    height: 0.72rem;
    border-bottom: 3px solid var(--ink);
    border-radius: 0 0 50% 50%;
}

.smile.is-happy { animation: happy-bounce 550ms ease; }

.compliment-card {
    position: relative;
    min-height: 12rem;
    margin: 0;
    padding: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 7vw, 5rem);
    display: grid;
    place-items: center;
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 2.1rem 0.55rem 2.1rem 0.55rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.compliment-card::after {
    content: "";
    position: absolute;
    inset: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 1.7rem 0.4rem 1.7rem 0.4rem;
    pointer-events: none;
}

.quote-mark {
    position: absolute;
    top: 0.8rem;
    left: 1.8rem;
    color: rgba(239, 106, 82, 0.18);
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;
}

.compliment-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 3.8vw, 2.45rem);
    line-height: 1.35;
    transition: opacity 160ms ease, transform 160ms ease;
}

.compliment-card p.is-changing {
    opacity: 0;
    transform: translateY(0.5rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.8rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 750;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(72, 116, 102, 0.4); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: 0.65; transform: none; }

.button svg,
.privacy-promise svg {
    width: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.button--primary {
    color: #fff;
    background: var(--ink);
    box-shadow: 0 10px 28px rgba(37, 34, 31, 0.16);
}

.button--primary:hover { background: #000; }

.button--quiet {
    background: transparent;
    border-color: var(--line);
}

.button--quiet:hover { background: rgba(255, 255, 255, 0.7); }

.microcopy {
    min-height: 1.4rem;
    margin: 0.65rem 0 0;
    color: var(--sage);
    font-size: 0.83rem;
}

.give-back {
    width: min(1100px, calc(100% - 2.5rem));
    margin: 0 auto clamp(6rem, 12vw, 10rem);
    padding: clamp(2rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: clamp(2.5rem, 7vw, 6.5rem);
    background: #273d37;
    color: #fffdf7;
    border-radius: 0.8rem 4rem 0.8rem 4rem;
    box-shadow: 0 35px 85px rgba(39, 61, 55, 0.18);
}

.give-copy { position: relative; }

.section-number {
    position: absolute;
    top: -1.5rem;
    right: 0;
    color: rgba(255, 255, 255, 0.08);
    font-family: Georgia, serif;
    font-size: clamp(6rem, 13vw, 10rem);
    line-height: 1;
}

.give-back .kicker { color: #f7c96a; }

.give-back h2 {
    position: relative;
    margin: 0 0 1.4rem;
    font-family: Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 4.3rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.give-copy > p:not(.kicker) {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.03rem;
}

.privacy-promise {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.86rem;
}

.privacy-promise svg { flex: 0 0 1.25rem; color: #f7c96a; }

.compliment-form {
    padding: clamp(1.4rem, 4vw, 2rem);
    color: var(--ink);
    background: #fffaf1;
    border-radius: 1.5rem 0.35rem 1.5rem 0.35rem;
}

.compliment-form label {
    display: block;
    margin-bottom: 0.65rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.compliment-form textarea {
    display: block;
    width: 100%;
    min-height: 9.5rem;
    padding: 1rem;
    resize: vertical;
    color: var(--ink);
    background: #fff;
    border: 1px solid rgba(37, 34, 31, 0.18);
    border-radius: 0.8rem;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.5;
}

.compliment-form textarea::placeholder { color: #aaa39a; }

.form-meta {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0 1.2rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.button--submit {
    width: 100%;
    color: #fff;
    background: var(--coral);
    border-radius: 0.7rem;
}

.button--submit:hover { background: var(--coral-dark); box-shadow: 0 10px 24px rgba(217, 79, 57, 0.22); }

.form-note,
.form-response {
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    text-align: center;
}

.form-response { min-height: 1.2rem; font-weight: 750; }
.form-response.is-success { color: var(--sage); }
.form-response.is-error { color: #a63d2e; }

.trap {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.manifesto {
    width: min(900px, calc(100% - 2.5rem));
    margin: 0 auto clamp(6rem, 12vw, 10rem);
    text-align: center;
}

.manifesto p {
    margin: 0 0 1.4rem;
    font-family: Georgia, serif;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.manifesto span { color: var(--muted); }

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
}

.wordmark--small { color: var(--ink); font-size: 0.95rem; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer nav a { text-underline-offset: 0.2em; }
.site-footer p { margin: 0; text-align: right; }

.legal-page {
    width: min(760px, calc(100% - 2.5rem));
    min-height: calc(100svh - 10rem);
    margin: clamp(3rem, 8vw, 7rem) auto;
}

.legal-page h1 { margin-bottom: 2rem; font-size: clamp(2.8rem, 7vw, 5rem); }
.legal-page h2 { margin-top: 2.3rem; font-family: Georgia, serif; font-weight: 400; }
.legal-page p, .legal-page li { color: #514c47; }
.legal-page a { text-underline-offset: 0.2em; }
.back-link { display: inline-block; margin-bottom: 2.5rem; color: var(--sage); font-weight: 750; }

.admin-page { width: min(940px, calc(100% - 2.5rem)); margin: 4rem auto 7rem; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.admin-heading h1 { font-size: clamp(3rem, 8vw, 5.5rem); }
.admin-heading .back-link { margin-bottom: 1.2rem; }
.admin-stats { display: flex; gap: 0.8rem; }
.admin-stats span { padding: 0.8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 0.8rem; color: var(--muted); }
.admin-stats strong { color: var(--ink); font-size: 1.2rem; }
.admin-notice { padding: 1rem 1.2rem; border-radius: 0.7rem; font-weight: 750; }
.admin-notice--success { color: #245b4b; background: #e6f4ef; }
.admin-notice--error { color: #8e3328; background: #fbe9e5; }
.admin-empty { padding: 5rem 2rem; background: #fff; border: 1px solid var(--line); border-radius: 1.5rem; text-align: center; }
.admin-empty > span { color: var(--coral); font-family: Georgia, serif; font-size: 5rem; }
.admin-empty h2 { margin: 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.admin-empty p { color: var(--muted); }
.moderation-list { display: grid; gap: 1rem; }
.moderation-card { padding: clamp(1.3rem, 4vw, 2rem); background: #fff; border: 1px solid var(--line); border-radius: 1.2rem; box-shadow: 0 12px 40px rgba(37, 34, 31, 0.05); }
.moderation-card blockquote { margin: 1.3rem 0; font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1.45; }
.moderation-meta { display: flex; flex-wrap: wrap; gap: 0.7rem; color: var(--muted); font-size: 0.75rem; }
.mail-warning { color: #9b3d2e; }
.moderation-actions { display: flex; gap: 0.65rem; }
.admin-approve { color: #fff; background: var(--sage); }
.admin-reject { background: transparent; border-color: var(--line); }

.email-action-page {
    min-height: 100svh;
    padding: clamp(1.3rem, 5vw, 3rem);
    display: grid;
    grid-template-rows: auto 1fr;
}

.email-action-card {
    width: min(620px, 100%);
    margin: 3rem auto;
    padding: clamp(2rem, 7vw, 4.5rem);
    align-self: center;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 2rem 0.55rem 2rem 0.55rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.email-action-card h1 {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 7vw, 4.2rem);
    line-height: 1.02;
}

.action-symbol {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.6rem;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--sage);
    border: 2px solid var(--ink);
    border-radius: 50%;
    box-shadow: 4px 5px 0 var(--ink);
    font-size: 2.2rem;
    font-weight: 850;
}

.action-symbol--loading { color: var(--ink); background: var(--sun); animation: breathe 1.4s ease-in-out infinite; }
.action-symbol--rejected, .action-symbol--notice { background: var(--coral); }
.action-message { min-height: 3rem; color: var(--muted); }
.action-dashboard { margin-top: 1.2rem; text-decoration: none; }

@keyframes breathe { 50% { transform: scale(1.35); opacity: 0.6; } }
@keyframes happy-bounce { 35% { transform: rotate(-7deg) translateY(-0.5rem) scale(1.08); } }

@media (max-width: 760px) {
    .site-header { padding-top: 1.25rem; }
    .header-note { display: none; }
    .hero { padding-top: 3.5rem; }
    .give-back { grid-template-columns: 1fr; border-radius: 0.6rem 2.5rem 0.6rem 2.5rem; }
    .site-footer { grid-template-columns: 1fr; justify-items: center; }
    .site-footer p { text-align: center; }
    .admin-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 480px) {
    .site-header, .site-footer, .hero, .give-back, .manifesto { width: min(100% - 1.4rem, 1180px); }
    .hero { min-height: auto; padding-bottom: 4rem; }
    .compliment-card { min-height: 14rem; border-radius: 1.5rem 0.4rem 1.5rem 0.4rem; }
    .smile { right: 1rem; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .give-back { padding: 2.5rem 1rem 1rem; }
    .site-footer nav { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
