/* Brand face — same file the app ships; display sizes only, body text stays on the system stack. */
@font-face {
    font-family: "IrishPenny";
    src: url("/fonts/IrishPenny.ttf") format("truetype");
    font-display: swap;
}

/* App palette: Primary green, PrimaryDark, Irish-cream surfaces, charcoal text. */
:root {
    --bg: #faf5e4;
    --fg: #1c2520;
    --muted: #5c665c;
    --accent: #2e8b57;
    --accent-deep: #194d30;
    --accent-ink: #fff8e7;
    --card: #ffffff;
    --border: #e7dfc8;
    --radius: 14px;
    --shadow: 0 6px 22px rgba(18, 36, 26, 0.10);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    padding: 15px 25px;
    background: var(--accent-deep);
}

.site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-ink);
}

.site-header .brand:hover { text-decoration: none; }

.site-header .brand-name {
    font-family: "IrishPenny", Georgia, serif;
    font-size: 26px;
    letter-spacing: 0.02em;
}

.site-header .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
    object-fit: cover;
    /* Cream plate: the mark is a dark glyph and was invisible on black against the deep-green bar. */
    background: var(--accent-ink);
    box-shadow: 0 0 0 1px rgba(255, 248, 231, 0.25);
}

.site-main {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 20px 48px;
}

.hero {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    text-align: center;
}

.hero .avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

.hero p.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin-top: 18px;
    box-shadow: var(--shadow);
}

.card h2 { margin: 0 0 10px; font-size: 18px; }

.policy-section h3 {
    margin: 16px 0 6px;
    font-size: 15px;
    color: var(--accent);
}

.policy-section p {
    margin: 0 0 12px;
    color: var(--muted);
}

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

.meta-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.meta-list li + li { margin-top: 4px; }

.rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.rating-stars {
    font-size: 20px;
    color: var(--accent);
    letter-spacing: 2px;
}

.install-cta {
    max-width: 760px;
    margin: 10px auto 0;
    padding: 10px 20px 15px;
    text-align: center;
}

.install-cta h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.install-cta p {
    margin: 0 0 10px;
    color: var(--muted);
}

.install-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* The official badge artwork brings its own rounded outline — no clipping here. */
.store-badge {
    display: inline-block;
    line-height: 0;
}

.store-badge img {
    display: block;
    height: 40px;
    width: auto;
}

.store-badge:hover { text-decoration: none; filter: brightness(1.1); }

/* Session recap ---------------------------------------------------------------- */

.recap-hero .eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.recap-summary {
    margin: 12px 0 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
}

.scoreboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.score {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

.score-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--fg);
}

.score-value-solo {
    min-height: 1.1em;
}

.score-caption {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    font-weight: 600;
}

.recap-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 18px;
}

.recap-photos img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 10px;
    background: var(--border);
}

.award-card .award-body {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.award-label {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--accent);
}

.award-photo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--border);
}

.award-card h2,
.card h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.leaderboard {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.leaderboard li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    font-size: 15px;
}

.leaderboard li:first-child { border-top: none; }

.leaderboard li.leader .leader-handle {
    font-weight: 700;
}

.leader-rank {
    color: var(--accent);
    font-weight: 700;
    text-align: center;
}

.leader-pints {
    color: var(--muted);
    font-size: 13px;
}

/* Review share — replica of the app's review card on its dark theme ------------ */

/* Page chrome matches the app's dark page background so the card sits in context.
   The html rule keeps the canvas below a short page dark too (html's own background
   otherwise stops the body colour propagating). */
html:has(body.review-page) { background: #1f1f1f; }
body.review-page { background: #1f1f1f; min-height: 100vh; }
/* Pull the install CTA up under the card and dress it as a sibling card so the eye lands on it. */
body.review-page .site-main { padding-bottom: 10px; }
body.review-page .install-cta {
    max-width: 360px;
    background: #2a2a2a;
    border: 1.5px solid var(--accent);
    border-radius: 15px;
    padding: 15px 20px;
}
body.review-page .install-cta h2 { color: #fff8e7; }
body.review-page .install-cta p { color: #d8d1be; }
body.review-page .site-footer { color: #d8d1be; }

/* Official store badges ship as black artwork. On dark share pages they disappear into the
   background — seat each on a light plate so the badge outline and wordmark stay legible. */
body.review-page .store-badge {
    background: #ffffff;
    border-radius: 8px;
    padding: 2px 3px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body.review-page .store-badge:hover {
    filter: none;
    background: #fff8e7;
}

.app-card {
    max-width: 360px;
    margin: 10px auto 0;
    background: #2a2a2a;
    border: 1.5px solid var(--accent);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 2.5px 10px rgba(0, 0, 0, 0.2);
}

.app-card-photo {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    /* The app inset the photo 10 further from the card's top edge than from its sides. */
    margin-top: 10px;
    background: #acacac;
}

.app-card-no-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 15px;
    margin-top: 10px;
    background: #acacac;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #404040;
}

.app-card-venue {
    margin: 10px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff8e7;
    /* The app's card truncates the venue to one line rather than wrapping. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-card-stout {
    margin: 5px 0 0;
    font-size: 15px;
    color: #c8c8c8;
    /* Two lines at most, as in the app. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.app-card-handle-row {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-card-handle {
    font-size: 14px;
    color: #53c687;
}

.pour-pill {
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1;
    color: #53c687;
}

.app-card-ratings {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.rating-cluster {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rating-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff8e7;
}

.pint-w { height: 20px; width: auto; display: block; }
.lantern-w { height: 20px; width: 20px; display: block; }

.app-card-comment {
    margin: 0 0 10px;
    font-size: 14px;
    font-style: italic;
    color: #c8c8c8;
}

.app-card-footer {
    display: flex;
    align-items: center;
    gap: 5px;
    /* The app's footer row also holds the toast + menu icons, so it is taller than one text line. */
    min-height: 40px;
    font-size: 14px;
    color: #c8c8c8;
}

.app-card-footer .price {
    font-weight: 700;
    color: #fff8e7;
}

.review-photo {
    width: 100%;
    max-width: 720px;
    border-radius: var(--radius);
    margin-top: 14px;
    display: block;
}

.site-footer {
    text-align: center;
    padding: 22px;
    color: var(--muted);
    font-size: 12px;
}

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

.neutral-message {
    text-align: center;
    padding: 40px 20px;
}
