/* Maikurii: the same mid-century palette as Tandem. Self-hosted font, no third-party requests. */
@font-face {
  font-family: "Bricolage";
  src: url("bricolage.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --teal: #1e5e5a;
  --deep: #164744;
  --cream: #f7f8f5;
  --sand: #e6ecea;
  --mustard: #e8a93a;
  --deep-mustard: #b37e22;
  --tomato: #c9482a;
  --deep-tomato: #8e2f1a;
  --charcoal: #26292b;
  --soft: rgba(38, 41, 43, 0.72);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--teal);
  color: var(--cream);
  font-family: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0 8px;
}
.brand {
  font-weight: 800; font-size: 22px; letter-spacing: -0.3px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%; background: var(--mustard);
  display: inline-grid; place-items: center; color: var(--charcoal); font-size: 16px; font-weight: 800;
  box-shadow: 0 3px 0 var(--deep-mustard);
}
.top nav { display: flex; gap: 18px; font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; opacity: 0.85; }
.top nav a:hover { opacity: 1; text-decoration: underline; }

/* Hero */
.hero { padding: 40px 0 28px; }
.hero h1 { font-size: clamp(40px, 9vw, 64px); line-height: 1.02; letter-spacing: -1.5px; margin: 0 0 12px; font-weight: 800; }
.hero p { font-size: 19px; max-width: 34em; margin: 0; color: rgba(247, 248, 245, 0.85); }
.kicker { color: var(--mustard); font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; font-size: 13px; margin: 0 0 10px; }

/* Cream panels with the hard offset shadow */
.panel {
  background: var(--cream); color: var(--charcoal);
  border-radius: 22px; box-shadow: 0 6px 0 var(--deep);
  padding: 22px; margin: 0 0 22px;
}
.panel.mustard { background: var(--mustard); box-shadow: 0 6px 0 var(--deep-mustard); }
.panel.mustard p, .panel.mustard a { color: var(--charcoal); }
.panel h2 { font-size: 24px; margin: 0 0 8px; letter-spacing: -0.3px; font-weight: 800; }
.panel h3 { font-size: 19px; margin: 22px 0 6px; font-weight: 800; }
.panel h3:first-child { margin-top: 0; }
.panel p, .panel li { color: var(--soft); }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel ul { margin: 0 0 12px; padding-left: 22px; }
.panel strong { color: var(--charcoal); }
.panel a { color: var(--deep); font-weight: 700; }

/* App card */
.app { display: flex; gap: 18px; align-items: center; }
.app img { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 4px 0 rgba(22, 71, 68, 0.35); }
.app h2 { margin-bottom: 2px; }
.app p { margin: 0 0 12px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  font-weight: 800; font-size: 16px; text-decoration: none;
  background: var(--sand); color: var(--charcoal);
}
.button.primary { background: var(--tomato); color: var(--cream); box-shadow: 0 4px 0 var(--deep-tomato); }
.panel .button { color: var(--charcoal); }
.panel .button.primary { color: var(--cream); }

.soon { font-size: 14px; color: var(--soft); font-weight: 600; }

/* Long text pages */
.doc .meta { color: rgba(247, 248, 245, 0.75); font-size: 15px; margin: 0; }
.faq h3 { margin-top: 18px; }

/* Suit decoration (the home screen's card suits) */
.suits { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.suits span { position: absolute; font-size: 160px; line-height: 1; font-family: system-ui, sans-serif; }
.suit-heart { right: -34px; top: 14%; color: var(--tomato); transform: rotate(14deg); }
.suit-spade { left: -40px; top: 44%; color: var(--mustard); transform: rotate(-16deg); }
.suit-club { right: -20px; bottom: 6%; color: rgba(247, 248, 245, 0.10); transform: rotate(10deg); }

footer {
  padding: 26px 0 40px; font-size: 14px; color: rgba(247, 248, 245, 0.7);
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
}
footer a { color: rgba(247, 248, 245, 0.85); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav { gap: 14px; font-size: 14px; }
  .app { align-items: flex-start; }
  .app img { width: 68px; height: 68px; border-radius: 16px; }
  .panel { padding: 18px; }
  .suits span { font-size: 110px; }
}
