/* Matches the "B. Grid" boards on the design canvas, section for section. */
:root {
  --ink: #0A0A0A;
  --body: #5C5C5C;
  --muted: #737373;
  --line: #E5E5E5;
  --line-soft: #EDEDED;
  --tint: #F5F5F5;
  --band: #FAFAFA;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--body); font-family: Geist, Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.6; }
a { color: var(--ink); text-decoration: none; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
img { display: block; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 13px; }
.muted { color: var(--muted); }
.wrap { width: min(1200px, calc(100% - 64px)); margin: 0 auto; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 999px; margin-right: 8px; vertical-align: middle; }
.pill { display: inline-flex; align-items: center; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--body); }
.lead { margin: 24px 0 0; max-width: 75%; font-size: 20px; line-height: 1.5; }
.measure { max-width: 816px; font-size: 19px; line-height: 1.6; margin-top: 18px; }

/* Home */
.hero { padding: 120px 0 88px; }
.hero-id { display: flex; align-items: center; gap: 16px; }
.avatar { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; object-position: 50% 30%; border: 1px solid var(--line); }
.hero h1 { margin-top: 32px; max-width: 75%; font-size: 68px; line-height: 1.02; font-weight: 600; letter-spacing: -0.04em; }
.section-top { padding: 0 0 96px; }
.section { padding: 96px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 24px; }
h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
h2.mb { margin-bottom: 24px; }
.h2-lg { max-width: 816px; font-size: 40px; line-height: 1.1; letter-spacing: -0.03em; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.card:hover { border-color: #C9C9C9; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.thumb { aspect-ratio: 4 / 3; background: var(--tint); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.mark { width: 64px; height: 64px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; color: var(--ink); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.card-body h3 { font-size: 18px; font-weight: 600; }
.desc { flex: 1; margin: 4px 0 16px; font-size: 15px; line-height: 1.5; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); }
.card-foot span:first-child { overflow-wrap: anywhere; }
.card-foot span:last-child { white-space: nowrap; }

.band { padding: 96px 0; background: var(--band); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.value { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.value h3 { margin: 10px 0 6px; font-size: 18px; font-weight: 600; }
.value p { margin: 0; font-size: 15px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--ink); }

/* Project page */
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; height: 40px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; }
.back:hover { border-color: #C9C9C9; }
.p-hero { padding: 56px 0 48px; }
.p-title { margin-top: 24px; font-size: 80px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.meta > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; }
.meta-v { display: inline-block; margin-top: 6px; font-size: 17px; font-weight: 500; color: var(--ink); }
.story { padding: 96px 0 0; max-width: 816px; }
.story h2 { font-size: 32px; letter-spacing: -0.025em; }
.story h2 + p { margin: 14px 0 0; font-size: 18px; line-height: 1.7; }
.story p + h2 { margin-top: 56px; }
.log-wrap { padding: 96px 0 0; max-width: 816px; }
.log-wrap h2 { font-size: 32px; letter-spacing: -0.025em; margin-bottom: 16px; }
.log { border-bottom: 1px solid var(--line-soft); }
.log-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-top: 1px solid var(--line-soft); color: var(--ink); }
.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 96px 0 48px; }
.pager a { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: 16px; }
.pager a:hover { border-color: #C9C9C9; }
.pager .right { text-align: right; }
.pager-name { display: block; margin-top: 6px; font-size: 18px; font-weight: 600; }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 40px; border-top: 1px solid var(--line-soft); color: var(--muted); }
.footer a { color: var(--muted); }

@media (max-width: 1000px) {
  .grid, .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .grid, .values, .pager { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 64px 0 56px; }
  .hero h1, .lead { max-width: none; }
  .hero h1 { font-size: 42px; }
  .lead { font-size: 18px; }
  .p-title { font-size: 48px; }
  .section, .band { padding: 64px 0; }
  .section-top { padding-bottom: 64px; }
  .h2-lg { font-size: 32px; }
  .story, .log-wrap, .pager { padding-top: 64px; }
  .log-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pager .right { text-align: left; }
}
