/*
Theme Name: Opklade
Description: A landing page for friendly bets and serious bragging rights.
Version: 1.0.0
Text Domain: opklade
*/

:root {
    --ink: #18213b;
    --muted: #505a70;
    --paper: #faf8f3;
    --blue: #d7e5ff;
    --lime: #e8fc85;
    --coral: #ff9e88;
    --line: #dededc;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; }
button { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 3px solid #234db5; outline-offset: 5px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(calc(100% - 3rem), 76rem); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 1rem auto auto 1rem; padding: .6rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-header { min-height: 5rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.45rem; font-weight: 900; letter-spacing: -.06em; text-decoration: none; }
.brand-mark { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .6rem; background: var(--ink); color: var(--lime); line-height: 1; }
.brand-dot { color: #445fc1; margin-inline-start: -.4rem; }
.site-header nav { display: flex; align-items: center; gap: 1.8rem; font-size: .9rem; font-weight: 750; }
.site-header nav a { text-decoration: none; }
.nav-how:hover { text-decoration: underline; }
.nav-cta { padding: .5rem .85rem; border: 1px solid var(--ink); border-radius: .65rem; white-space: nowrap; }
.nav-cta:hover { background: var(--lime); }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 6rem); }
.eyebrow, .ticket-label { display: flex; align-items: center; gap: .5rem; font: 750 .73rem/1.4 ui-monospace, monospace; letter-spacing: .09em; }
.signal { flex: 0 0 .57rem; width: .57rem; height: .57rem; border: 1px solid var(--ink); border-radius: 50%; background: var(--coral); }
.hero h1 { margin-block: 1.15rem; font-size: clamp(3rem, 6.15vw, 6.7rem); line-height: .94; letter-spacing: -.085em; font-weight: 900; }
.hero h1 em { font: italic 500 1.06em/.95 Georgia, serif; letter-spacing: -.085em; color: #284ba8; }
.hero-description { max-width: 29rem; color: var(--muted); font-size: clamp(1.02rem, 1.45vw, 1.25rem); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: .85rem 1.1rem; border: 2px solid var(--ink); border-radius: .75rem; font-weight: 800; text-decoration: none; }
.hero .button { margin-top: 1.55rem; }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--lime); color: var(--ink); }
.demo-stage {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 4.6rem) clamp(1.25rem, 4vw, 3.9rem);
    border: 1px solid #becef1;
    border-radius: 1.6rem;
    background: radial-gradient(#9db3e4 1px, transparent 1px) 0 0 / 15px 15px, var(--blue);
}
.ticket { position: relative; z-index: 1; width: min(100%, 26rem); padding: clamp(1rem, 2.5vw, 1.7rem); background: white; border: 2px solid var(--ink); border-radius: 1.1rem; box-shadow: .45rem .5rem 0 var(--ink); transform: rotate(-3deg); }
.ticket-top { display: flex; justify-content: space-between; gap: .35rem; align-items: center; padding-bottom: .8rem; border-bottom: 1px dashed #aab1be; }
.ticket-label .signal { background: var(--lime); }
.shuffle { padding: .25rem .4rem; border: none; border-radius: .3rem; background: transparent; color: #284ba8; font-size: .84rem; font-weight: 750; }
.shuffle:hover { background: var(--blue); }
.ticket-emoji { display: inline-grid; place-items: center; min-width: 2.6rem; min-height: 2.6rem; margin-block: 1rem .45rem; background: #fff1eb; border-radius: .65rem; font-size: 1.5rem; }
.ticket h2 { min-height: 2.12em; font-size: clamp(1.42rem, 2.5vw, 2.2rem); line-height: 1.06; letter-spacing: -.05em; text-wrap: balance; }
.stake { margin-block: .75rem; font-size: .83rem; color: var(--muted); }
.stake strong { color: var(--ink); }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.choices button { display: flex; align-items: center; justify-content: space-between; gap: .25rem; min-height: 2.65rem; padding: .4rem .55rem; border: 1px solid var(--ink); border-radius: .55rem; background: var(--blue); color: var(--ink); text-align: left; font-size: .86rem; font-weight: 800; }
.choices button:nth-child(2) { background: #ffddd4; }
.choices button:hover:not(:disabled), .choices button[aria-pressed="true"] { background: var(--ink); color: white; }
.demo-status { margin-top: .65rem; min-height: 2.9em; font-size: .77rem; color: var(--muted); }
.stage-spark { position: absolute; top: .25rem; left: 2%; color: #284ba8; font-size: clamp(2rem, 6vw, 5rem); line-height: 1; }
.sticker { position: absolute; z-index: 2; right: -.5rem; bottom: -.6rem; display: grid; place-content: center; width: clamp(3.7rem, 8vw, 6.7rem); aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); box-shadow: .17rem .22rem 0 var(--ink); transform: rotate(12deg); text-align: center; font-size: clamp(.6rem, 1.26vw, 1rem); font-weight: 950; line-height: 1; pointer-events: none; }
.bet-strip { background: var(--ink); color: var(--lime); }
.bet-strip ul { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1.25rem; list-style: none; padding: .85rem 0; font-size: .81rem; font-weight: 800; }
.how { padding-block: clamp(3.5rem, 8vw, 7rem); }
.how h2, .closing h2 { margin-top: .75rem; font-size: clamp(2.5rem, 5.2vw, 5.2rem); line-height: .98; letter-spacing: -.075em; font-weight: 900; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 2rem 0 0; border-block: 1px solid var(--line); }
.steps li { padding: 1.4rem; }
.steps li + li { border-left: 1px solid var(--line); }
.step-icon { display: grid; place-items: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--ink); border-radius: .6rem; background: var(--blue); font-size: 1.35rem; }
.steps li:nth-child(2) .step-icon { background: var(--coral); }
.steps li:nth-child(3) .step-icon { background: var(--lime); }
.steps h3 { margin-block: .6rem .25rem; font-size: 1.25rem; }
.steps p, .footer-inner p { color: var(--muted); }
.closing { padding-block: 2.5rem; background: var(--coral); }
.closing-inner { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; }
.closing h2 { margin: 0; }
.footer-inner { padding-block: 1.45rem; }
.footer-inner p { font-size: .85rem; }
.content { padding-block: 3rem; overflow-wrap: anywhere; }
.content img { max-width: 100%; height: auto; }

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; }
    .desktop-break { display: none; }
    .demo-stage { min-height: 22rem; }
}
@media (max-width: 560px) {
    .wrap { width: calc(100% - 2rem); }
    .site-header { min-height: 4.2rem; }
    .nav-how { display: none; }
    .steps { grid-template-columns: 1fr; }
    .steps li { padding-inline: 0; }
    .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
    .closing-inner, .footer-inner { flex-direction: column; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
