/* The Garden at Penn - mobile first (base rules are phone), desktop second (min-width media queries).
   Palette: off-white ground, emerald chrome, gold rims/rules. Mature, luxury, quiet. */

:root {
    --ivory: #faf7f0;
    --paper: #fffdf8;
    --ink: #1c2421;
    --muted: #5a665f;
    --emerald: #0a6b4b;
    --emerald-deep: #064634;
    --emerald-soft: #e3efe9;
    --gold: #c5a044;
    --gold-light: #e2c77a;
    --rule: rgba(197, 160, 68, 0.55);
    --radius: 6px;
    --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
    --sans: "Jost", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;
    --gutter: 1.25rem;
    --maxw: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
    margin: 0;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--emerald); }
a:hover { color: var(--emerald-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--emerald-deep); }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 3rem 0; }
.section--tight { padding: 2rem 0; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; color: var(--gold); margin: 0 0 .6rem; font-weight: 500; }
.section-head { text-align: center; margin-bottom: 1.75rem; }
.section-head h2 { margin-bottom: .35rem; }
.gold-rule { display: block; width: 4.5rem; height: 2px; background: var(--gold); margin: .9rem auto 0; border: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
    display: inline-block; padding: .8rem 1.5rem; border-radius: 2px; border: 1px solid transparent;
    font: 500 .85rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
    min-height: 44px; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--emerald-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); color: var(--emerald-deep); }
.btn-emerald { background: var(--emerald); color: var(--ivory); border-color: var(--emerald); }
.btn-emerald:hover { background: var(--emerald-deep); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--emerald-deep); border-color: var(--emerald-deep); }
.btn-ghost:hover { background: var(--emerald-deep); color: var(--ivory); }
.btn-ghost-light { background: transparent; color: var(--ivory); border-color: var(--gold); }
.btn-ghost-light:hover { background: var(--gold); color: var(--emerald-deep); }

/* Top banner (emerald) */
.topbar { background: var(--emerald); color: var(--ivory); font-size: .78rem; letter-spacing: .08em; text-align: center; padding: .45rem var(--gutter); border-bottom: 1px solid var(--gold); }
.topbar span + span { display: none; }

/* Header */
.site-header { background: var(--emerald-deep); color: var(--ivory); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.logo-link { display: inline-flex; align-items: center; gap: .6rem; color: var(--ivory); text-decoration: none; }
.logo-link:hover { color: var(--gold-light); }
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-text { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; line-height: 1; }
.logo-text small { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: .25rem; font-weight: 400; }

.site-nav { display: none; }
.site-nav a { color: var(--ivory); text-decoration: none; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; padding: .5rem .25rem; }
.site-nav a:hover { color: var(--gold-light); }
.header-cta { display: none; }

/* Mobile menu: <details>, no JS */
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 2px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 20px; height: 2px; background: var(--ivory); content: ""; position: relative; }
.burger::before { position: absolute; top: -6px; }
.burger::after { position: absolute; top: 6px; }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + .5rem); width: min(78vw, 18rem); background: var(--emerald-deep); border: 1px solid var(--gold); padding: .5rem 0; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.mobile-menu nav a { display: block; padding: .9rem 1.25rem; color: var(--ivory); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; border-bottom: 1px solid rgba(197,160,68,.25); }
.mobile-menu nav a:last-child { border-bottom: 0; color: var(--gold-light); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--paper), var(--ivory)); text-align: center; padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--rule); }
.hero h1 { font-size: 2.6rem; max-width: 14ch; margin: 0 auto .6rem; }
.hero p.lead { color: var(--muted); max-width: 34rem; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; align-items: stretch; max-width: 20rem; margin: 0 auto; }

/* Category circles with gold rim */
.cat-row { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .5rem var(--gutter) 1rem; margin: 0 calc(var(--gutter) * -1); -webkit-overflow-scrolling: touch; }
.cat { flex: none; width: 6.25rem; text-align: center; text-decoration: none; color: var(--emerald-deep); scroll-snap-align: start; }
.cat-circle {
    width: 6.25rem; height: 6.25rem; border-radius: 50%; margin: 0 auto .6rem; display: flex; align-items: center; justify-content: center;
    background: radial-gradient(circle at 30% 25%, var(--emerald) 0%, var(--emerald-deep) 100%);
    border: 3px solid var(--gold);
    box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px var(--gold-light), 0 6px 14px rgba(6, 70, 52, .18);
    color: var(--gold-light);
    transition: transform .2s ease;
}
.cat:hover .cat-circle, .cat:focus-visible .cat-circle { transform: translateY(-3px); }
.cat-circle svg { width: 46%; height: 46%; }
.cat-name { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; display: block; }

/* Ticker tape */
.ticker { background: var(--emerald-deep); color: var(--gold-light); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: ticker-scroll 38s linear infinite; will-change: transform; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-family: var(--serif); font-size: 1.35rem; letter-spacing: .08em; padding: .8rem 0; display: inline-flex; align-items: center; }
.ticker-item::after { content: "\2726"; color: var(--gold); font-size: .9rem; margin: 0 1.75rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    /* Ticker intentionally keeps its normal auto-cycle speed (hover pauses); 90s read as "not moving". */
    html { scroll-behavior: auto; }
}

/* About + geometric pattern */
.about { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--gold); background: var(--paper); }
.about-art { position: relative; min-height: 14rem; background: var(--emerald-deep); }
.about-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.about-body { padding: 2rem 1.5rem; }

/* Cards */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card { background: var(--paper); border: 1px solid rgba(197,160,68,.5); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-meta { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; font-weight: 500; }
.card-more { margin-top: auto; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.card-art { aspect-ratio: 4 / 3; background: var(--emerald-soft); display: flex; align-items: center; justify-content: center; color: var(--emerald); border-bottom: 1px solid rgba(197,160,68,.5); }
.card-art svg { width: 28%; height: auto; opacity: .55; }

/* Sweed placeholder */
.sweed-slot { border: 2px dashed var(--gold); background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 14px, #f6f1e4 14px, #f6f1e4 28px); padding: 2.5rem 1.25rem; text-align: center; border-radius: var(--radius); }
.sweed-slot strong { font-family: var(--serif); font-size: 1.4rem; color: var(--emerald-deep); display: block; margin-bottom: .35rem; }
.sweed-slot .sweed-slot-name { display: block; margin-top: .6rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; margin-top: 1.25rem; }
.product { background: var(--paper); border: 1px solid rgba(197,160,68,.5); border-radius: var(--radius); padding: .75rem; text-align: center; }
.product .ph { aspect-ratio: 1; background: var(--emerald-soft); border-radius: 4px; margin-bottom: .6rem; display: flex; align-items: center; justify-content: center; color: var(--emerald); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.product .nm { font-family: var(--serif); font-size: 1.1rem; color: var(--emerald-deep); }
.product .pr { color: var(--muted); font-size: .9rem; }

/* Team / contact */
.person { text-align: center; }
.avatar {
    width: 7rem; height: 7rem; border-radius: 50%; margin: 1.5rem auto .75rem; display: flex; align-items: center; justify-content: center;
    background: var(--emerald-deep); color: var(--gold-light); font-family: var(--serif); font-size: 2.2rem;
    border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--gold-light); object-fit: cover; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 9rem; height: 9rem; font-size: 3rem; }
.person-title { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.detail-card { background: var(--paper); border: 1px solid var(--gold); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.contact-lines { list-style: none; margin: 1rem 0 0; padding: 0; }
.contact-lines li { margin-bottom: .4rem; }

.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.team-grid .card-body { padding: .75rem; align-items: center; }
.team-grid .avatar { width: 5rem; height: 5rem; font-size: 1.7rem; margin-top: .75rem; }
.team-grid h3 { font-size: 1.15rem; overflow-wrap: anywhere; }

.card-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid rgba(197,160,68,.5); }

/* Article */
.article { max-width: 42rem; margin: 0 auto; overflow-wrap: anywhere; }
.article p { font-size: 1.05rem; }
.article img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article .article-hero { display: block; margin: 0 0 1.5rem; width: 100%; }
.article figure { margin: 1.5rem 0; }
.article figcaption { font-size: .85rem; color: var(--muted); }
.article blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 3px solid var(--gold); font-style: italic; }
.article pre { overflow-x: auto; }
.article table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article th, .article td { border: 1px solid rgba(197,160,68,.5); padding: .35rem .6rem; }
.crumb { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.25rem; }

/* Page hero (inner pages) */
.page-hero { background: var(--emerald); color: var(--ivory); text-align: center; padding: 2.25rem 0; border-bottom: 1px solid var(--gold); }
.page-hero h1 { color: var(--ivory); margin: 0; }
.page-hero .eyebrow { color: var(--gold-light); }

/* Visit band */
.visit { background: var(--emerald-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.visit-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
.visit h3 { margin-bottom: .25rem; }

/* Footer */
.site-footer { background: var(--emerald-deep); color: var(--ivory); padding: 2.5rem 0 1.5rem; border-top: 3px solid var(--gold); }
.site-footer a { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.site-footer h3 { color: var(--gold-light); font-size: 1.15rem; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer li a, .legal a { display: inline-block; padding: .5rem 0; min-height: 44px; line-height: 1.6; }
.hopeline a { padding: .5rem 0; }
.legal { border-top: 1px solid rgba(197,160,68,.35); margin-top: 1.75rem; padding-top: 1rem; font-size: .8rem; color: rgba(250,247,240,.78); }
.hopeline { border-top: 1px solid rgba(197,160,68,.35); margin-top: 1rem; padding-top: 1rem; font-size: .8rem; line-height: 1.5; color: rgba(250,247,240,.9); text-align: center; }
.hopeline p { margin: 0; }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 10000; overflow: auto; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: var(--emerald-deep); }
.age-gate .pattern { position: absolute; inset: 0; opacity: .5; }
.age-gate .pattern svg { width: 100%; height: 100%; display: block; }
.age-card { position: relative; background: var(--ivory); border: 2px solid var(--gold); box-shadow: 0 0 0 6px var(--emerald-deep), 0 0 0 7px var(--gold); max-width: 28rem; width: 100%; padding: 2rem 1.5rem; text-align: center; }
.age-card h1 { font-size: 2rem; }
.age-actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.25rem; }
.age-fine { font-size: .75rem; color: var(--muted); margin-top: 1.25rem; margin-bottom: 0; }

/* Events */
.event-list { display: grid; gap: 1.25rem; max-width: 52rem; margin: 0 auto; padding: 0; list-style: none; }
.event { background: var(--paper); border: 1px solid rgba(197,160,68,.5); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.event-date { background: var(--emerald-deep); color: var(--ivory); padding: .75rem 1.25rem; display: flex; align-items: baseline; gap: .6rem; border-bottom: 2px solid var(--gold); }
.event-date .event-day { font-family: var(--serif); font-size: 2.2rem; line-height: 1; }
.event-date .event-mon { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.event-main { padding: 1.25rem; min-width: 0; overflow-wrap: anywhere; }
.event-main h3 { margin-bottom: .35rem; }
.event-facts { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; padding: 0; list-style: none; }
.event-body p { font-size: 1rem; }
.event-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.event-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid rgba(197,160,68,.5); }

/* Desktop */
@media (min-width: 48rem) {
    :root { --gutter: 2rem; }
    h1 { font-size: 3.2rem; }
    h2 { font-size: 2.3rem; }
    .section { padding: 4.5rem 0; }
    .topbar span + span { display: inline; }
    .topbar span + span::before { content: "\2726"; color: var(--gold-light); margin: 0 1rem; font-size: .7rem; }
    .header-inner { min-height: 80px; }
    .logo-text { font-size: 1.6rem; }
    .logo-mark { width: 42px; height: 42px; }
    .site-nav { display: flex; gap: 1.5rem; }
    .header-cta { display: inline-block; }
    .mobile-menu { display: none; }
    .hero { padding: 5.5rem 0 4.5rem; }
    .hero h1 { font-size: 4rem; max-width: 18ch; }
    .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
    .cat-row { justify-content: center; overflow: visible; flex-wrap: wrap; gap: 2rem; margin: 0; padding: .5rem 0 1rem; }
    .cat { width: 7.5rem; }
    .cat-circle { width: 7.5rem; height: 7.5rem; border-width: 4px; }
    .ticker-item { font-size: 1.7rem; }
    .about { grid-template-columns: 1fr 1fr; }
    .about-art { min-height: 26rem; }
    .about-body { padding: 3.5rem 3rem; display: flex; flex-direction: column; justify-content: center; }
    .card-grid, .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
    .team-grid .card-body { padding: 1.25rem; }
    .team-grid .avatar { width: 7rem; height: 7rem; font-size: 2.2rem; }
    .team-grid h3 { font-size: 1.35rem; }
    .event { flex-direction: row; }
    .event-date { flex-direction: column; align-items: center; justify-content: center; min-width: 7.5rem; border-bottom: 0; border-right: 2px solid var(--gold); }
    .product-grid { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
    .visit-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
    .age-card { padding: 3rem 2.5rem; }
    .age-actions { flex-direction: row; justify-content: center; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Join the list */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.signup-card { max-width: 34rem; margin: 0 auto; padding: 2rem 1.5rem; text-align: center; background: var(--ivory); border: 1px solid rgba(0,0,0,.12); border-radius: 1.25rem; }
.signup-form { display: flex; flex-direction: column; gap: .75rem; margin: 1.25rem 0 .75rem; }
.signup-form input[type=email] { flex: 1; min-width: 0; padding: .75rem 1rem; font: inherit; border: 1px solid rgba(0,0,0,.2); border-radius: .75rem; background: #fff; }
.signup-form .btn { border-radius: 999px; }
.signup-msg { font-weight: 600; margin: .25rem 0; }
.signup-fine { font-size: .9rem; margin: 0; }
@media (min-width: 30rem) { .signup-form { flex-direction: row; } }

/* Store-closed home ("/"): logo, store info, signup only */
.closed { padding: 4rem 0 1rem; text-align: center; }
.closed-inner { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.closed-info p { margin: .15rem 0; }
.closed { padding: 3rem 0 0; }
.closed-seal { display: block; width: min(260px, 58vw); height: auto; aspect-ratio: 1 / 1; object-fit: contain; margin-bottom: 1rem; }
.closed h1 { font-family: var(--sans); font-size: clamp(1.75rem, 7.5vw, 3rem); letter-spacing: -.025em; color: var(--ink); margin: 0; }
.closed-sub { font-size: clamp(1.25rem, 5vw, 1.75rem); font-weight: 500; color: var(--muted); margin: 0 0 1.5rem; }
.closed-address { font-size: 1.1rem; font-weight: 500; }
.closed-contact { color: var(--muted); margin-top: 1.5rem !important; }
.closed-contact a { font-weight: 600; text-decoration: none; }
.closed-foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem 1rem 3rem; }
.closed-foot p { margin: 0; }
