/* lunch.day -- the midday pause
   Scandinavian functional warmth meets cottagecore charm.
   Single-column, narrow, intentional whitespace.
*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --linen-cream: #faf6f0;
    --espresso-brown: #2c2417;
    --honey-wheat: #d4a574;
    --garden-sage: #7a9e7e;
    --biscuit-tan: #e8ddd0;
    --tomato-red: #c1473a;
    --napkin-white: #f5ede3;

    --font-display: "DM Serif Display", Georgia, serif;
    --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-receipt: "Courier Prime", "Courier New", monospace;

    --column: 580px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--linen-cream);
    color: var(--espresso-brown);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 400;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 50% -10%, rgba(212, 165, 116, 0.10), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(122, 158, 126, 0.05), transparent 50%);
    background-attachment: fixed;
}

/* ----- Top nav ----- */
.top-nav {
    width: 100%;
    padding: 1.5rem 1.25rem 0;
    display: flex;
    justify-content: center;
}

.menu-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--garden-sage);
    text-decoration: none;
    letter-spacing: 0.04em;
    border-bottom: 1px solid transparent;
    padding: 0.25rem 0;
    transition: color 220ms ease, border-color 220ms ease, transform 220ms ease;
    position: relative;
}

.menu-link::before {
    content: "—";
    margin-right: 0.5rem;
    color: var(--honey-wheat);
}

.menu-link::after {
    content: "—";
    margin-left: 0.5rem;
    color: var(--honey-wheat);
}

.menu-link:hover {
    color: var(--tomato-red);
    border-bottom-color: var(--tomato-red);
    transform: translateY(-1px);
}

/* ----- Container ----- */
.container {
    max-width: var(--column);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ----- Hero / Plate ----- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(3rem, 10vh, 7rem) 0 clamp(2rem, 6vh, 4rem);
    text-align: center;
}

.plate {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--napkin-white);
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.06),
        inset 0 0 0 1px rgba(212, 165, 116, 0.18),
        inset 0 0 0 14px rgba(250, 246, 240, 0.65),
        inset 0 0 0 15px rgba(212, 165, 116, 0.22),
        0 4px 16px rgba(0, 0, 0, 0.08),
        0 12px 40px rgba(44, 36, 23, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 600ms cubic-bezier(0.2, 0.7, 0.3, 1), box-shadow 600ms ease;
}

.plate::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 12%;
    width: 35%;
    height: 14%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), transparent 70%);
    transform: translateY(-50%) rotate(-22deg);
    border-radius: 50%;
    pointer-events: none;
}

.plate:hover {
    transform: translateY(-3px) rotate(-1deg);
}

.plate-inner {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--espresso-brown);
    letter-spacing: -0.01em;
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    user-select: none;
}

.plate-dot {
    color: var(--tomato-red);
    margin: 0 0.02em;
}

.plate-tld {
    color: var(--garden-sage);
}

.hero-tagline {
    margin-top: 2rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--espresso-brown);
    opacity: 0.72;
    line-height: 1.6;
    max-width: 22rem;
    font-style: italic;
}

/* ----- Dividers ----- */
.divider {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.divider svg {
    display: block;
}

/* ----- Content sections ----- */
.content-section {
    padding: clamp(2rem, 6vh, 4rem) 0;
    position: relative;
}

.content-section.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.content-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    line-height: 1.1;
    color: var(--espresso-brown);
    margin-bottom: 1.5rem;
    letter-spacing: -0.005em;
}

.content-section p {
    margin-bottom: 1.1rem;
    color: var(--espresso-brown);
}

.content-section p:last-child {
    margin-bottom: 0;
}

.meta-note {
    font-family: var(--font-receipt);
    font-size: 0.85rem;
    color: var(--honey-wheat);
    margin-top: 1.25rem !important;
    letter-spacing: 0.02em;
}

.signature {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--garden-sage);
    margin-top: 1.5rem !important;
    line-height: 1.4;
}

/* ----- Steam (warm sections) ----- */
.warm {
    position: relative;
}

.steam {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 28px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: none;
}

.steam-line {
    display: block;
    width: 1px;
    height: 20px;
    background: var(--honey-wheat);
    opacity: 0.3;
    border-radius: 1px;
    transform-origin: bottom center;
    animation: steam-rise 3s ease-in-out infinite;
}

.steam-line-1 {
    animation-delay: 0s;
}

.steam-line-2 {
    animation-delay: 0.6s;
    height: 22px;
}

.steam-line-3 {
    animation-delay: 1.2s;
}

@keyframes steam-rise {
    0% {
        transform: translateY(0) scaleY(1);
        opacity: 0.0;
    }
    20% {
        opacity: 0.35;
    }
    50% {
        transform: translateY(-7px) scaleY(1.05);
        opacity: 0.25;
    }
    100% {
        transform: translateY(-12px) scaleY(0.9);
        opacity: 0.0;
    }
}

/* ----- Card (napkin fold) ----- */
.card {
    background: var(--napkin-white);
    border: 1px solid rgba(212, 165, 116, 0.25);
    border-radius: 4px;
    padding: 1.75rem 1.75rem 1.5rem;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(44, 36, 23, 0.04);
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 16px 16px 0;
    border-color: transparent var(--biscuit-tan) transparent transparent;
    filter: drop-shadow(-1px 1px 1px rgba(44, 36, 23, 0.08));
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: linear-gradient(225deg, rgba(44, 36, 23, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* ----- House rules list ----- */
.house-rules {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.house-rules li {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    padding: 0.65rem 0;
    border-bottom: 1px dotted rgba(212, 165, 116, 0.4);
    line-height: 1.55;
}

.house-rules li:last-child {
    border-bottom: none;
}

.rule-num {
    font-family: var(--font-receipt);
    font-size: 0.8rem;
    color: var(--honey-wheat);
    flex-shrink: 0;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* ----- Inline link ----- */
.inline-link {
    color: var(--garden-sage);
    text-decoration: none;
    border-bottom: 1px solid var(--honey-wheat);
    padding-bottom: 1px;
    transition: color 220ms ease, border-color 220ms ease;
}

.inline-link:hover {
    color: var(--tomato-red);
    border-bottom-color: var(--tomato-red);
}

/* ----- Receipt footer ----- */
.receipt {
    max-width: 360px;
    margin: clamp(3rem, 8vh, 5rem) auto clamp(2rem, 6vh, 4rem);
    padding: 1.75rem 1.5rem 1.5rem;
    background: var(--napkin-white);
    border-top: 2px dashed var(--honey-wheat);
    font-family: var(--font-receipt);
    font-size: 0.85rem;
    color: var(--espresso-brown);
    line-height: 1.7;
    box-shadow: 0 4px 12px rgba(44, 36, 23, 0.05);
    position: relative;
}

.receipt::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 6px;
    background:
        linear-gradient(135deg, transparent 33.333%, var(--linen-cream) 33.333%, var(--linen-cream) 66.667%, transparent 66.667%),
        linear-gradient(45deg, transparent 33.333%, var(--linen-cream) 33.333%, var(--linen-cream) 66.667%, transparent 66.667%);
    background-size: 12px 12px;
    background-position: 0 0;
}

.receipt::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 6px;
    background:
        linear-gradient(135deg, var(--napkin-white) 33.333%, transparent 33.333%, transparent 66.667%, var(--napkin-white) 66.667%),
        linear-gradient(45deg, var(--napkin-white) 33.333%, transparent 33.333%, transparent 66.667%, var(--napkin-white) 66.667%);
    background-size: 12px 12px;
    background-position: 0 0;
}

.receipt-header {
    text-align: center;
    margin-bottom: 1rem;
}

.receipt-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.receipt-tag {
    display: block;
    font-size: 0.78rem;
    color: var(--espresso-brown);
    opacity: 0.7;
    margin-top: 0.25rem;
    letter-spacing: 0.04em;
}

.receipt-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--espresso-brown);
    opacity: 0.75;
    margin-bottom: 0.75rem;
}

.receipt-divider {
    text-align: center;
    color: var(--honey-wheat);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    overflow: hidden;
    white-space: nowrap;
    margin: 0.5rem 0;
}

.receipt-items {
    list-style: none;
    margin: 0.5rem 0;
    padding: 0;
}

.receipt-items li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.2rem 0;
}

.item-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-price {
    flex-shrink: 0;
    color: var(--garden-sage);
    font-style: italic;
    text-align: right;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--espresso-brown);
    padding: 0.4rem 0 0.2rem;
    letter-spacing: 0.04em;
}

.receipt-total span:last-child {
    color: var(--tomato-red);
}

.receipt-footer-note {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.78rem;
    line-height: 1.6;
    color: var(--espresso-brown);
    opacity: 0.8;
}

.receipt-footer-note p {
    margin-bottom: 0.2rem;
}

.receipt-stamp {
    margin-top: 0.6rem !important;
    color: var(--honey-wheat);
    font-style: italic;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

/* ----- Plate gentle pulse on load ----- */
@keyframes plate-arrive {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.plate {
    animation: plate-arrive 900ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.hero-tagline {
    animation: plate-arrive 900ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
    animation-delay: 200ms;
}

/* ----- Responsive ----- */
@media (max-width: 480px) {
    .plate {
        width: 240px;
        height: 240px;
        box-shadow:
            inset 0 2px 8px rgba(0, 0, 0, 0.06),
            inset 0 0 0 1px rgba(212, 165, 116, 0.18),
            inset 0 0 0 12px rgba(250, 246, 240, 0.65),
            inset 0 0 0 13px rgba(212, 165, 116, 0.22),
            0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .plate-inner {
        font-size: 2rem;
    }

    .receipt {
        max-width: calc(100% - 2rem);
    }

    .container {
        padding: 0 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .plate,
    .hero-tagline,
    .steam-line,
    .content-section.fade-in {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
