/* Koboro Group home and Koboro Media. Quiet, sparse pages built around the
   wooden mark. The page color matches the mark's photo background (#f5f5f3),
   and the image edge is faded, so the mark sits on the page with no box.
   Fonts are system faces only: the site's CSP allows no outside fonts. */
:root {
  --paper: #f5f5f3;
  --ink: #17181a;
  --muted: #6b6d70;
  --line: #e3e2de;
  --wood: #8a4b22;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html { background: var(--paper); }
body.group {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

.group a { color: inherit; }
.group a:focus-visible { outline: 2px solid var(--wood); outline-offset: 4px; border-radius: 4px; }

.g-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }

.g-main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 72px 0 48px; }

.g-mark {
  display: block;
  width: 112px;
  height: 112px;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 50%, #000 58%, transparent 72%);
}

.g-name {
  margin: 28px 0 0;
  font: 400 15px/1.2 var(--sans);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
}

.g-title {
  margin: 14px 0 0;
  font: 400 clamp(40px, 7vw, 64px)/1.05 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.g-lede {
  margin: 20px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 18px;
}

/* Divisions on the group home: 2 quiet rows, each a link. */
.g-divisions { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--line); }
.g-divisions li { border-bottom: 1px solid var(--line); }
.g-divisions a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 24px;
  padding: 26px 0;
  text-decoration: none;
}
.g-divisions .g-div-name { font: 400 30px/1.2 var(--serif); }
.g-divisions .g-div-what { grid-column: 1; color: var(--muted); font-size: 16px; }
.g-divisions .g-arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  font-size: 22px;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.g-divisions a:hover .g-arrow,
.g-divisions a:focus-visible .g-arrow { transform: translateX(6px); color: var(--wood); }
.g-divisions a:hover .g-div-name { color: var(--wood); }

/* Media page: a short list of what we make, and a quiet note. */
.g-make { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.g-make li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  color: var(--ink);
}
.g-note { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.g-note a { text-decoration: none; border-bottom: 1px solid var(--line); }
.g-note a:hover { color: var(--wood); border-color: var(--wood); }

.g-back { display: inline-block; margin-bottom: 40px; font-size: 14px; color: var(--muted); text-decoration: none; letter-spacing: 0.04em; }
.g-back:hover { color: var(--ink); }

.g-foot { padding: 28px 0 36px; font-size: 13px; color: var(--muted); }
.g-foot .g-wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
.g-foot a { text-decoration: none; }
.g-foot a:hover { color: var(--ink); }

@media (max-width: 520px) {
  .g-main { padding-top: 48px; }
  .g-mark { width: 88px; height: 88px; }
  .g-divisions .g-div-name { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-divisions .g-arrow { transition: none; }
}

/* Media page: centered and almost empty on purpose. */
.g-center { align-items: center; text-align: center; padding: 48px 24px; }
.g-center .g-mark { width: 96px; height: 96px; }
.g-center .g-name { margin-top: 32px; }
.g-whisper { margin: 14px 0 0; font: italic 400 19px/1.5 var(--serif); color: var(--muted); }
.group .g-contact { margin-top: 40px; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); text-decoration: none; opacity: 0.8; }
.group .g-contact:hover, .group .g-contact:focus-visible { color: var(--ink); opacity: 1; }
.g-foot-center { display: flex; gap: 24px; justify-content: center; }
