/* mapledoum.com — flat, square, no framework, no script. Owner UI rules: CLAUDE.md «NASEEH UI RULES». */
:root {
  --paper: #ffffff;
  --ink: #141414;
  --muted: #4a4a4a;
  --line: #d6d6d6;
  --tile: #f4f4f4;
  --tile-hover: #e9e9e9;
  --accent: #a3261a; /* maple red; never blue or lavender */
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121212;
    --ink: #ececec;
    --muted: #b4b4b4;
    --line: #333333;
    --tile: #1c1c1c;
    --tile-hover: #262626;
    --accent: #e0594b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121212;
  --ink: #ececec;
  --muted: #b4b4b4;
  --line: #333333;
  --tile: #1c1c1c;
  --tile-hover: #262626;
  --accent: #e0594b;
  color-scheme: dark;
}

* { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #8a8a8a transparent; }
body {
  margin: 0;
  overflow-wrap: anywhere;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }

/* Header: wordmark left, three section links right (Tiny's top bar). */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: .01em; }
.brand::before { content: ""; width: 14px; height: 14px; background: var(--accent); }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; padding: 18px 0 16px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--ink); }

/* One-line statement (Bending Spoons' opening line). */
.lead { padding: 72px 0 48px; }
.lead h1 { margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.12; font-weight: 700; max-width: 18ch; }

h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 16px; }
section { padding: 0 0 56px; }

/* Product grid: whole tile is the link (Bending Spoons' product grid). */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tile { position: relative; background: var(--tile); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-height: 172px; }
.tile:hover { background: var(--tile-hover); box-shadow: inset 3px 0 0 var(--accent); }
.tile h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.tile h3 a { text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; } /* stretches the main link over the whole tile */
.tile p { margin: 0; color: var(--muted); }
.stores { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.stores a { position: relative; z-index: 1; text-decoration: none; border: 1px solid var(--line); background: var(--paper); padding: 4px 10px; }
.stores a:hover { border-color: var(--accent); }

/* Policies hub: one table, every product's policies (37signals' «Policies» page). */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 13px; }
td.links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
td.links a { white-space: nowrap; }

/* Legal documents. */
.doc { max-width: 720px; padding: 56px 0 72px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 8px; }
.doc .date { color: var(--muted); margin: 0 0 36px; font-size: 14px; }
.doc h2 { margin-top: 36px; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-left: 20px; }

/* Footer holds the contact block once. */
.foot { border-top: 1px solid var(--line); padding: 32px 0 30vh; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot address { font-style: normal; }
.foot .mail { color: var(--ink); font-weight: 600; }
.foot nav { display: flex; gap: 20px; }

@media (max-width: 680px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .lead { padding: 44px 0 32px; }
  .nav { gap: 16px; font-size: 14px; }
  .brand { font-size: 16px; }
}
