:root {
    color-scheme: light;
    --ink: #202820;
    --muted: #687168;
    --paper: #f7f5f0;
    --card: #fffefa;
    --accent: #496b52;
    --line: #e8e5dc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

.site-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    padding: 1.15rem max(5vw, 1.25rem);
}

.brand {
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 750;
    letter-spacing: -.04em;
    text-decoration: none;
}

.header-note { color: var(--muted); font-size: .9rem; }

.account-area { align-items: center; display: flex; gap: .75rem; }
.account-name { color: var(--muted); font-size: .9rem; }
.login-area { align-items: center; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.login-error { color: #7d332c; font-size: .85rem; max-width: 20rem; }
.logout-button {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
    padding: .55rem .75rem;
}

main {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 1.25rem 5rem;
}

.hero {
    padding: clamp(4rem, 10vw, 8rem) 0 4rem;
    text-align: center;
}

.eyebrow {
    color: var(--accent);
    font-size: .75rem;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: 1.05;
    margin: .75rem 0 1rem;
}

.hero p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto;
    max-width: 36rem;
}

.section-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 0 0 1.25rem;
}

h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -.035em;
    margin: 0;
}

.product-count { color: var(--muted); font-size: .9rem; }

.products {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.product-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.product-image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e6e9df, #f0e9dd);
    display: block;
    object-fit: cover;
    width: 100%;
}

.product-info { padding: 1.1rem; }

.product-info h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 .45rem;
}

.description {
    color: var(--muted);
    display: -webkit-box;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    min-height: 2.8em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-footer {
    align-items: center;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.price { font-size: .95rem; font-weight: 700; }
.converted-price { color: var(--muted); display: block; font-size: .85rem; font-weight: 500; margin-top: .2rem; }

.button {
    background: var(--accent);
    border-radius: 6px;
    color: white;
    display: inline-block;
    font-size: .85rem;
    font-weight: 650;
    padding: .65rem .85rem;
    text-decoration: none;
}

.button:hover { background: #38543f; }

.notice {
    background: #fffefa;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    line-height: 1.6;
    margin: 1rem 0;
    padding: 1rem 1.1rem;
}

.notice.error { border-color: #e9c9c4; color: #7d332c; }
footer { color: var(--muted); font-size: .85rem; padding: 2rem 1.25rem; text-align: center; }

@media (max-width: 600px) {
    .header-note { font-size: .8rem; }
    .account-area { align-items: flex-end; flex-direction: column; gap: .35rem; }
    .account-name { font-size: .75rem; }
    .login-area { align-items: flex-end; flex-direction: column; }
    .section-heading { align-items: start; flex-direction: column; gap: .35rem; }
}
