/* Layout: one narrow column of plain sections; the only loud element is the felt panel with a four-card hand. */
:root {
  --bg: #f3f5f1;
  --ink: #14231c;
  --muted: #55655c;
  --felt: #1f5a41;
  --felt-ink: #eef5ef;
  --red: #b83228;
  --card: #ffffff;
  --card-ink: #14231c;
  --line: #d3dbd2;
  --display: "Bricolage Grotesque", "Trebuchet MS", "Segoe UI", sans-serif;
  --body: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1914; --ink: #e9efe9; --muted: #9db0a4; --felt: #1c4d38; --felt-ink: #eef5ef;
    --red: #ef6f63; --card: #f4f6f2; --card-ink: #14231c; --line: #2a3b32; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1914; --ink: #e9efe9; --muted: #9db0a4; --felt: #1c4d38; --felt-ink: #eef5ef;
  --red: #ef6f63; --card: #f4f6f2; --card-ink: #14231c; --line: #2a3b32; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}
.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; max-width: 62ch; }

/* Header */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 22px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--red); }
.nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 36px 64px; }
.hero > * { min-width: 0; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.hero p { color: var(--muted); font-size: 1.1rem; }

.felt {
  background: var(--felt);
  color: var(--felt-ink);
  border-radius: 18px;
  padding: 34px 20px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
}
.hand { display: flex; justify-content: center; padding-top: 8px; }
.pc {
  width: 76px; height: 108px;
  background: var(--card); color: var(--card-ink);
  border-radius: 9px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7px 9px;
  font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1;
  margin-left: -16px;
  transform-origin: 50% 140%;
}
.pc:first-child { margin-left: 0; }
.pc .suit { font-size: 1.7rem; align-self: flex-end; }
.pc:nth-child(1) { transform: rotate(-15deg); }
.pc:nth-child(2) { transform: rotate(-5deg); }
.pc:nth-child(3) { transform: rotate(5deg); }
.pc:nth-child(4) { transform: rotate(15deg); }
.points { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0; padding: 0; list-style: none; }

/* Sections */
section { padding-block: 48px; border-top: 1px solid var(--line); }
section > h2 { font-size: 0.82rem; font-family: var(--body); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }

.app { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.app > * { min-width: 0; }
.app-icon {
  width: 88px; height: 88px; border-radius: 20px;
  background: var(--felt); color: var(--felt-ink);
  display: grid; place-items: center;
  font-size: 2.6rem; line-height: 1;
}
.app h3 { font-size: 1.7rem; letter-spacing: -0.01em; margin-bottom: 4px; }
.app .kind { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.app ul { margin: 16px 0 22px; padding-left: 1.1em; max-width: 62ch; }
.app li { margin-bottom: 4px; }
.btn {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  text-decoration: none; font-weight: 600;
  padding: 12px 20px; border-radius: 10px;
}
.btn:hover { background: var(--red); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-quiet:hover { box-shadow: none; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.two > * { min-width: 0; }
.two h3 { font-size: 1.15rem; margin-bottom: 8px; }
.two p { color: var(--muted); }
.addr { font-weight: 600; color: var(--ink); user-select: all; overflow-wrap: anywhere; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }

.site-foot { border-top: 1px solid var(--line); padding-block: 26px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--muted); font-size: 0.9rem; }

/* Privacy page */
.doc { padding-block: 24px 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc .dated { color: var(--muted); margin-bottom: 30px; }
.doc h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.doc h3 { font-size: 1.05rem; margin: 22px 0 6px; }
.doc p + p { margin-top: 12px; }

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-block: 16px 48px; }
  .two { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .pc { width: 64px; height: 92px; font-size: 1.1rem; }
}
