/* Adapted from the supplied Tablic one-page website design. No design runtime required. */
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("assets/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("assets/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/dm-sans-500.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/dm-sans-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --cream: #fff4e2;
  --ink: #1b1a33;
  --red: #e8412f;
  --red-text: #b52b21;
  --yellow: #ffc93c;
  --green: #2bb673;
  --heading-font: "Bricolage Grotesque", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.55 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
.site-wrap { overflow: clip; min-height: 100vh; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--red-text); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3, .brand, .footer-brand { font-family: var(--heading-font); font-weight: 800; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }
.red { color: var(--red); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; padding: 12px 20px; background: var(--yellow); color: var(--ink); font-weight: 700; border: 2px solid var(--ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 2px solid var(--ink); background: var(--cream); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 24px; letter-spacing: -.02em; }
.brand-card { display: grid; place-items: center; width: 30px; height: 40px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; color: var(--red); font-size: 18px; transform: rotate(-8deg); box-shadow: 3px 3px 0 var(--ink); }
.brand-suffix { color: var(--red-text); }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 16px; font-weight: 500; }
.site-header nav a { text-decoration: none; padding-block: 8px; }
.site-header nav .nav-play { padding: 10px 18px; border-radius: 99px; background: var(--ink); color: var(--cream); font-weight: 700; }
.site-header nav .nav-play:hover { background: var(--red-text); color: #fff; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 72px 96px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-badge { background: var(--yellow); border: 2px solid var(--ink); border-radius: 99px; padding: 6px 14px; font-size: 14px; font-weight: 700; transform: rotate(-2deg); }
h1 { font-size: clamp(48px, 7vw, 92px); line-height: .95; letter-spacing: -.035em; text-wrap: balance; }
h1 span { color: var(--red); }
.hero-description { font-size: 20px; line-height: 1.5; max-width: 520px; text-wrap: pretty; }
.hero-actions { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; padding: 18px 28px; border: 2px solid var(--ink); border-radius: 16px; font-size: 19px; font-weight: 700; line-height: 1.35; text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: transform .15s, box-shadow .15s; }
.button:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.button-primary { background: var(--red); color: #fff; }
.button-primary:hover { color: #fff; }
.button-light { background: #fff; color: var(--ink); }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button-light:hover, .button-yellow:hover { color: var(--ink); }
.demo-description { font-size: 14px; margin-top: 24px; max-width: 490px; line-height: 1.5; }
.action-note { font-size: 12px; line-height: 1.6; color: #575367; margin-top: 8px; max-width: 490px; }
.action-note strong { font-weight: 500; }
.hero-art { position: relative; height: 440px; display: grid; place-items: center; }
.art-disc { position: absolute; width: 400px; max-width: 100%; aspect-ratio: 1; border: 2px solid var(--ink); border-radius: 50%; background: var(--yellow); }
.table-badge { position: absolute; z-index: 6; top: 24px; right: 8%; border: 2px solid var(--ink); border-radius: 99px; background: var(--green); padding: 8px 16px; font: 800 22px/1.4 var(--heading-font); transform: rotate(10deg); box-shadow: 3px 3px 0 var(--ink); }
.card-fan { position: relative; width: 140px; height: 200px; }
.playing-card { background: #fff; border: 2px solid var(--ink); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); }
.fan-card { position: absolute; inset: 0; padding: 10px; transform: translate(var(--card-x), var(--card-y)) rotate(var(--card-angle)); transition: transform .25s; }
.fan-card:hover { transform: translate(var(--card-x), calc(var(--card-y) - 24px)) rotate(var(--card-angle)); }
.card-one { --card-x: -150px; --card-y: 30px; --card-angle: -24deg; }
.card-two { --card-x: -75px; --card-y: 8px; --card-angle: -12deg; }
.card-three { --card-x: 0px; --card-y: 0px; --card-angle: 0deg; z-index: 2; }
.card-four { --card-x: 75px; --card-y: 8px; --card-angle: 12deg; z-index: 3; }
.card-five { --card-x: 150px; --card-y: 30px; --card-angle: 24deg; z-index: 4; }
.card-corner { font: 800 26px/1 var(--heading-font); }
.card-corner span { display: block; font-size: 20px; }
.card-suit { position: absolute; inset: 0; display: grid; place-items: center; font-size: 64px; }
.score-ribbon { background: var(--red); color: #fff; border-block: 2px solid var(--ink); transform: rotate(-1.5deg); margin-inline: -40px; }
.score-ribbon > div { display: flex; gap: 40px; justify-content: center; align-items: center; padding: 16px 40px; font: 800 24px/1.4 var(--heading-font); white-space: nowrap; }

.section-space { padding-block: 96px; }
.section-heading { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.eyebrow { color: var(--red-text); font-size: 16px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; }
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.about h2 { font-size: clamp(36px, 4vw, 52px); }
.about-copy p + p { margin-top: 18px; }
.rule-details { padding-bottom: 0; }
.details-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.details-list li { padding-left: 20px; border-left: 4px solid var(--yellow); text-wrap: pretty; }
.rules { display: flex; flex-direction: column; gap: 48px; }
.rules-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.rule-card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; background: #fff; border: 2px solid var(--ink); border-radius: 24px; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s; }
.rule-card:hover { transform: rotate(-1deg) translateY(-4px); }
.rule-card:nth-child(2):hover { transform: rotate(1deg) translateY(-4px); }
.step-number { width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font: 800 24px/1 var(--heading-font); }
.step-yellow { background: var(--yellow); }
.step-green { background: var(--green); }
.step-red { background: var(--red); color: #fff; }
.rule-card p { font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.example-section { padding-block: 96px; }
.example-panel { background: var(--ink); color: var(--cream); border-radius: 32px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.example-copy { display: flex; flex-direction: column; gap: 18px; }
.example-copy .eyebrow { color: var(--yellow); }
.example-copy h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.example-copy > p:not(.eyebrow) { color: #e9e3f5; font-size: 18px; }
.example-copy > p.tip { font-size: 14px; padding-top: 2px; }
.example-art { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.card-groups { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.card-group { display: flex; gap: 8px; padding: 10px; border: 2px dashed var(--yellow); border-radius: 16px; }
.group-green { border-color: var(--green); }
.mini-card { display: block; width: 68px; height: 96px; padding: 6px 8px; background: #fff; border-radius: 10px; color: var(--ink); font: 800 22px/1 var(--heading-font); }
.mini-card.red { color: var(--red); }
.mini-card span { display: block; }
.example-result { display: flex; align-items: center; gap: 20px; }
.take-arrow { color: var(--yellow); font: 800 40px/1 var(--heading-font); }
.jack-card { width: 86px; height: 122px; padding: 8px 10px; font-size: 28px; border: 3px solid var(--yellow); border-radius: 12px; transform: rotate(-6deg); }
.result-badge { background: var(--green); color: var(--ink); padding: 8px 16px; border-radius: 99px; font: 800 20px/1.4 var(--heading-font); }
.scoring { display: flex; flex-direction: column; gap: 48px; }
.score-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; }
.score-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; }
.score-card dt { font-size: 17px; line-height: 1.45; font-weight: 500; }
.score-card dd { order: -1; margin: 0; font: 800 48px/1 var(--heading-font); }
.score-yellow { background: var(--yellow); }
.score-green { background: var(--green); }
.score-total { max-width: 760px; font-size: 18px; text-wrap: pretty; }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 64px; }
.faq-list { border: 2px solid var(--ink); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 6px 6px 0 var(--ink); }
.faq details + details { border-top: 2px solid var(--ink); }
.faq summary { cursor: pointer; padding: 22px 24px; font-weight: 700; font-size: 17px; }
.faq summary::marker { color: var(--red-text); }
.faq summary:hover { color: var(--red-text); }
.faq summary:focus-visible { outline-offset: -6px; }
.faq details p { padding: 0 24px 24px; color: #575367; font-size: 16px; }

.play-section { padding-bottom: 96px; }
.play-panel { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: clamp(36px, 6vw, 80px) clamp(24px, 5vw, 64px); border: 2px solid var(--ink); border-radius: 32px; box-shadow: 8px 8px 0 var(--ink); background: #dc3928; color: #fff; text-align: center; }
.play-panel h2 { max-width: 820px; font-size: clamp(40px, 6vw, 76px); line-height: .98; letter-spacing: -.035em; }
.play-panel > p { max-width: 590px; font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.play-panel .actions { justify-content: center; }
.play-panel .button { padding: 20px 34px; font-size: 20px; }
.play-panel > p.play-note { font-size: 13px; max-width: 640px; }
.site-footer { border-top: 2px solid var(--ink); }
.footer-inner { padding-block: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; font-size: 15px; }
.footer-brand { font-size: 20px; text-decoration: none; }
.footer-inner p { color: #575367; font-size: 13px; }

@media (max-width: 1050px) {
  .hero { gap: 28px; }
  .hero .button { padding-inline: 20px; font-size: 18px; }
  .card-fan { transform: scale(.83); }
  .art-disc { width: 340px; }
  .rule-card { padding: 26px; }
  .score-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .example-panel { gap: 28px; padding: 36px; }
  .example-art .mini-card { width: 56px; height: 84px; }
  .example-art .jack-card { width: 80px; height: 112px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 48px 64px; }
  .hero-copy { max-width: 610px; }
  h1 { max-width: 610px; font-size: clamp(48px, 10vw, 76px); }
  .hero-description { max-width: 590px; }
  .hero-art { height: 390px; }
  .card-fan { transform: none; }
  .art-disc { width: 360px; }
  .table-badge { right: 15%; }
  .about, .faq { grid-template-columns: 1fr; gap: 28px; }
  .section-space { padding-block: 64px; }
  .rules { gap: 32px; }
  .rules-grid { grid-template-columns: 1fr; gap: 24px; }
  .rule-card { padding: 28px; }
  .example-section { padding-block: 64px; }
  .example-panel { grid-template-columns: 1fr; gap: 36px; }
  .example-art .mini-card { width: 68px; height: 96px; }
  .example-art .jack-card { width: 86px; height: 122px; }
  .score-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scoring { gap: 32px; }
  .play-section { padding-bottom: 64px; }
  .play-panel { gap: 24px; }
}
@media (max-width: 540px) {
  html { scroll-padding-top: 140px; }
  .container { padding-inline: 20px; }
  .header-inner { flex-direction: column; justify-content: center; gap: 12px; padding-block: 14px; }
  .site-header nav { width: 100%; justify-content: center; gap: 18px; font-size: 14px; }
  .site-header nav .nav-play { padding: 9px 14px; }
  .hero { padding-top: 36px; }
  .hero-copy { gap: 24px; }
  .hero-badge { font-size: 12px; padding-inline: 12px; }
  .hero-description { font-size: 18px; }
  .actions { gap: 12px; }
  .hero .button { padding: 16px 17px; font-size: 16px; }
  .demo-description { font-size: 14px; margin-top: 22px; }
  .hero-art { height: 310px; }
  .art-disc { width: 280px; }
  .card-fan { transform: scale(.68); }
  .table-badge { top: 10px; right: 8%; font-size: 18px; }
  .score-ribbon > div { font-size: 20px; gap: 24px; padding-block: 14px; }
  .eyebrow { font-size: 13px; }
  .about-copy, .details-list, .score-total { font-size: 16px; }
  .example-panel { padding: 30px 22px; }
  .example-copy > p:not(.eyebrow) { font-size: 17px; }
  .example-art .mini-card { width: 48px; height: 72px; padding: 6px; font-size: 20px; }
  .card-groups { gap: 8px; }
  .card-group { padding: 7px; gap: 6px; }
  .example-art .jack-card { width: 76px; height: 108px; font-size: 26px; }
  .score-card { padding: 20px; }
  .score-card dt { font-size: 15px; }
  .score-card dd { font-size: 42px; }
  .faq summary { padding: 20px; font-size: 16px; }
  .faq details p { padding: 0 20px 20px; font-size: 15px; }
  .play-panel { padding: 38px 20px; border-radius: 24px; }
  .play-panel > p { font-size: 18px; }
  .play-panel .actions { width: 100%; }
  .play-panel .button { width: 100%; padding: 17px 20px; font-size: 18px; }
  .play-panel > p.play-note { font-size: 12px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 359px) {
  .container { padding-inline: 16px; }
  h1 { font-size: 45px; }
  .site-header nav { gap: 12px; font-size: 13px; }
  .hero .actions { flex-direction: column; }
  .hero-art { height: 285px; }
  .card-fan { transform: scale(.58); }
  .art-disc { width: 248px; }
  .example-panel { padding-inline: 18px; }
  .example-art .mini-card { width: 42px; height: 66px; font-size: 18px; }
  .example-art .jack-card { width: 68px; height: 96px; font-size: 24px; }
  .card-group { padding: 6px; gap: 5px; }
  .card-groups { gap: 6px; }
  .score-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .fan-card, .rule-card { transition: none; }
  .button:hover, .rule-card:hover { transform: none; }
  .fan-card:hover { transform: translate(var(--card-x), var(--card-y)) rotate(var(--card-angle)); }
}
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .skip-link, .hero-art, .score-ribbon, .site-footer { display: none; }
  .site-wrap { overflow: visible; }
  .container { max-width: none; padding: 12px 0; }
  .hero, .about, .faq, .example-panel { display: block; }
  h1 { font-size: 36pt; margin-bottom: 16px; }
  h2 { font-size: 26pt; }
  .rule-card, .score-card, .faq-list, .play-panel, .button { box-shadow: none; break-inside: avoid; }
  .example-panel, .play-panel { background: #fff; color: #000; border: 1px solid #aaa; }
  .example-copy > p:not(.eyebrow) { color: #222; }
  .example-art { display: none; }
  .play-panel > p, .hero-description { font-size: 12pt; }
  .button { background: #fff; color: #000; }
}
