/* Checkaday — one site for the studio's apps. Warm paper like the app; documents use a narrow reading column. */
:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --raised: #efe8dd;
  --paper: #f9f6f1;
  --text: #2b2620;
  --text-2: #5f564c;
  --text-3: #8a8073;
  --line: #e4dccf;
  --accent: #c4552d;
  --accent-text: #ffffff;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1916; --surface: #262220; --raised: #312c28; --text: #f3eee6; --text-2: #c2b8ab; --text-3: #8f857a;
    --line: #3a342f; --accent: #e07a52;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

header.top { padding-block: 20px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
nav.top { display: flex; gap: 18px; }
nav.top a { color: var(--text-2); text-decoration: none; font-size: 15px; }
nav.top a:hover { color: var(--text); }

/* Home */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding-block: 36px 64px; }
.hero .icon { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(60, 40, 20, .45); }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.025em; margin: 22px 0 16px; }
.hero p.lead { font-size: 20px; color: var(--text-2); margin: 0 0 26px; max-width: 30em; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; background: var(--text);
  color: var(--bg); font-weight: 600; text-decoration: none; }
.badge.soon { opacity: .85; cursor: default; }
.badge small { display: block; font-size: 12px; font-weight: 500; opacity: .75; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: 0 0 0 1px var(--line); }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--text-2); font-size: 16px; }

.plus { background: var(--surface); border-radius: 28px; padding: 32px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 56px; }
.plus h2 { margin: 0 0 8px; font-size: 30px; }
.plus p { color: var(--text-2); margin: 0 0 18px; }
.plus ul { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.plus li { margin-bottom: 6px; break-inside: avoid; }

.apps { padding-block: 0 56px; }
.apps h2 { font-size: 22px; margin: 0 0 14px; }
.apps .list { display: flex; flex-wrap: wrap; gap: 12px; }
.apps a { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line); text-decoration: none; font-weight: 600; }
.apps a img { width: 36px; height: 36px; border-radius: 9px; }
.apps a span { display: block; font-weight: 400; font-size: 13px; color: var(--text-3); }


.hero-art { padding: 22px; max-width: 460px; justify-self: center; width: 100%; }
.hero-art img { width: 100%; }

/* Sections of boards */
.block { padding-block: 16px 56px; }
.block h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.015em; margin: 0 0 8px; }
.block .intro { color: var(--text-2); font-size: 18px; margin: 0 0 26px; max-width: 40em; }
.boards { display: grid; gap: 18px; }
.boards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.boards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.board { margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.board .art { background: var(--paper); padding: 22px; display: grid; place-items: center; aspect-ratio: 1; }
.board .art img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.board figcaption { padding: 16px 18px 18px; }
.board h3 { margin: 0 0 4px; font-size: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.board p { margin: 0 0 8px; color: var(--text-2); font-size: 15px; }
.board .board-name { font-size: 13px; color: var(--text-3); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.span { font-size: 12px; font-weight: 600; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); background: var(--raised); padding: 4px 10px 4px 6px; border-radius: 99px; }
.chip i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.period { margin-bottom: 30px; }
.period-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.period-head h3 { margin: 0; font-size: 24px; }
.period-head p { margin: 0; color: var(--text-2); }

/* Documents */
.doc { padding-block: 12px 64px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.02em; margin: 18px 0 6px; }
.doc h2 { font-size: 22px; margin: 34px 0 8px; }
.doc .updated { color: var(--text-3); font-size: 15px; margin-bottom: 26px; }
.doc .summary { background: var(--surface); border-radius: 18px; padding: 18px 20px; box-shadow: 0 0 0 1px var(--line); }
.doc .summary p { margin: 0; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong { color: var(--text); }
details { background: var(--surface); border-radius: 16px; padding: 14px 18px; margin-bottom: 10px; box-shadow: 0 0 0 1px var(--line); }
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--text-3); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
footer a { text-decoration: none; color: var(--text-2); }
footer a:hover { color: var(--text); }
footer p { margin: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 16px 40px; }
  .grid, .boards.cols-3 { grid-template-columns: 1fr 1fr; }
  .plus ul { columns: 1; }
}
@media (max-width: 520px) {
  .grid, .boards.cols-2, .boards.cols-3 { grid-template-columns: 1fr; }
  nav.top { gap: 14px; }
}
