@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/PlusJakartaSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Jakarta";
  src: url("/assets/fonts/PlusJakartaSans-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #f4f2ec;
  --ink: #262924;
  --muted: #5a5d54;
  --orange: #98502b;
  --orange-tint: #efc9ab;
  --violet: #5a47a5;
  --line: #d5d6ca;
  --sans: "Jakarta", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: #efc9ab;
}
::selection {
  background: var(--orange-tint);
  color: var(--ink);
}
a {
  color: inherit;
  text-underline-offset: 5px;
  touch-action: manipulation;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
  border-radius: 4px;
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 {
  font-size: clamp(52px, 7vw, 90px);
  margin-block: 24px;
}
h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  margin-bottom: 20px;
}
h3 {
  font-weight: 600;
}
em {
  color: var(--orange);
  font-style: normal;
}
section[id],
main[id] {
  scroll-margin-top: 24px;
}
.wrap {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 12px 20px;
  min-height: 52px;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--page);
  font-size: 29px;
  letter-spacing: -0.05em;
  line-height: 1;
  padding-right: 6px;
}
.brand-mark span {
  position: absolute;
  right: 8px;
  bottom: 4px;
  color: #e7a676;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 13px;
}
.site-nav a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  min-width: 52px;
  justify-content: center;
}
.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.site-nav svg,
.text-link svg {
  width: 18px;
  height: 18px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: center;
  padding-block: 72px 112px;
}
.hero-copy {
  min-width: 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.little-square {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--orange);
  flex-shrink: 0;
}
.hero-description {
  max-width: 460px;
  margin: 28px 0 32px;
  color: var(--muted);
  font-size: 17px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  min-height: 56px;
  padding: 12px 22px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--page);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 140ms ease,
    transform 140ms ease;
}
.button:hover {
  background: #44493f;
}
.button:active {
  transform: translateY(1px);
}
.hero-study {
  position: relative;
  display: grid;
  align-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.study-grid {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background-image:
    linear-gradient(#ddddd1 1px, transparent 1px),
    linear-gradient(90deg, #ddddd1 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, #000 40%, transparent 71%);
}
.study-orbit {
  position: absolute;
  inset: 7%;
  border: 1px solid #c5c9b9;
  border-radius: 50%;
  transform: rotate(-18deg);
}
.study-orbit::after {
  content: "";
  position: absolute;
  top: 11%;
  right: 11%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
}
.study-sun {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 28%, #f5e2ce 2%, #e7a676 55%, #c4794e 100%);
}
.code-fragment {
  position: relative;
  width: max-content;
  max-width: calc(100% - 16px);
  margin-left: 8px;
  padding: 22px 24px;
  border-radius: 18px;
  background: #262924;
  color: #f4f2ec;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(13px, 1.3vw, 17px);
  line-height: 1.8;
  box-shadow: 0 16px 32px #26292412;
}
.code-muted {
  color: #b6bfb0;
}
.code-indent {
  padding-left: 24px;
}
.code-value {
  color: #efbb93;
}
.hero-study figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.work-section {
  padding-block: 32px 104px;
}
.section-heading {
  margin-bottom: 36px;
}
.section-heading > p:last-child {
  max-width: 480px;
  color: var(--muted);
}
.project-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 56px;
  border-radius: 32px;
  background: #e9e8ee;
}
.project-copy {
  min-width: 0;
}
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a47a5;
  font-size: 11px;
  font-weight: 600;
}
.project-status > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.project-copy h3 {
  font-family: var(--serif);
  font-size: 54px;
  line-height: 1.12;
  letter-spacing: -0.06em;
  margin-block: 12px 24px;
}
.project-description {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.3;
  letter-spacing: -0.035em;
}
.project-detail {
  max-width: 430px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 5px 10px;
  border-radius: 8px;
  background: #f7f6fa;
  color: #5c5969;
  font-size: 10px;
}
.project-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
}
.text-link {
  font-size: 11px;
}
.bambly-study {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.bambly-glow {
  display: grid;
  place-items: center;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(ellipse at 30% 24%, #f1eefb 0%, #e7dff7 25%, #b7a7de 82%);
  color: var(--violet);
}
.bambly-glow svg {
  width: 68px;
  height: 68px;
  stroke-width: 1;
}
.care-symbol {
  position: absolute;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 20px;
}
.care-symbol.sleep {
  top: 7%;
  right: 14%;
  background: #f6f2ff;
  color: #5a47a5;
}
.care-symbol.feed {
  top: 50%;
  left: 0;
  background: #def0e2;
  color: #256540;
}
.care-symbol.diaper {
  bottom: 14%;
  right: 2%;
  background: #dfedf6;
  color: #1f6488;
}
.bambly-study figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}
.project-footnote {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.approach-section {
  padding-bottom: 104px;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.principle {
  min-width: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.principle-number {
  display: inline-block;
  color: var(--orange);
  font-family: var(--serif);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 24px;
}
.principle h3 {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.principle p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}
.closing {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 48px 56px;
  border-radius: 28px;
  background: var(--ink);
  color: var(--page);
  margin-bottom: 80px;
}
.closing .eyebrow {
  color: #b6bfb0;
}
.closing h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 44px);
}
.button-light {
  background: #efc9ab;
  color: var(--ink);
}
.button-light:hover {
  background: #f4d9c4;
}
.closing a:focus-visible {
  outline-color: #efc9ab;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  min-width: 52px;
}
.document {
  max-width: 720px;
  padding-block: 56px 80px;
}
.document h1 {
  font-size: clamp(42px, 5vw, 64px);
}
.document h2 {
  margin-top: 40px;
  font-size: 28px;
  line-height: 1.2;
}
.document p {
  color: var(--muted);
}
.document .lead {
  font-size: 18px;
}
.notice {
  margin-block: 32px;
  padding: 24px;
  border-radius: 20px;
  background: #efe3d7;
}
.notice p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    padding-block: 48px 80px;
  }
  h1 {
    font-size: clamp(52px, 7.2vw, 76px);
  }
  .project-card {
    padding: 36px;
    gap: 24px;
  }
  .project-copy h3 {
    font-size: 46px;
  }
  .project-description {
    font-size: 24px;
  }
  .principles {
    gap: 24px;
  }
  .closing {
    padding: 40px;
  }
}

@media (max-width: 650px) {
  .site-header {
    min-height: 88px;
    gap: 12px;
  }
  .wordmark {
    gap: 8px;
    font-size: 16px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 25px;
  }
  .brand-mark span {
    right: 6px;
    bottom: 3px;
  }
  .site-nav {
    gap: 20px;
    font-size: 12px;
  }
  .site-nav .github-link {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 32px 56px;
  }
  h1 {
    font-size: clamp(48px, 13.3vw, 72px);
  }
  .hero-description {
    font-size: 16px;
    margin-top: 24px;
  }
  .hero-study {
    width: min(100%, 380px);
  }
  .code-fragment {
    font-size: 14px;
  }
  .work-section {
    padding-block: 24px 64px;
  }
  .section-heading {
    margin-bottom: 28px;
  }
  .project-card {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 28px;
    border-radius: 24px;
  }
  .project-copy h3 {
    font-size: 44px;
  }
  .project-detail {
    font-size: 13px;
  }
  .bambly-study {
    max-width: 360px;
  }
  .bambly-glow svg {
    width: 56px;
    height: 56px;
  }
  .care-symbol {
    width: 52px;
    height: 52px;
    border-radius: 17px;
  }
  .bambly-study figcaption {
    font-size: 9px;
  }
  .approach-section {
    padding-bottom: 64px;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .principle-number {
    margin-bottom: 12px;
  }
  .closing {
    padding: 32px 28px;
    margin-bottom: 48px;
  }
  .closing .button {
    width: 100%;
    gap: 14px;
    padding-inline: 16px;
    font-size: 12px;
  }
  .site-footer {
    font-size: 10px;
  }
  .site-footer nav {
    gap: 16px;
  }
  .document {
    padding-block: 32px 56px;
  }
}

@media (max-width: 370px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-nav {
    gap: 14px;
    font-size: 11px;
  }
  .wordmark {
    font-size: 15px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.09em;
  }
  .project-card {
    padding: 24px;
  }
  .project-actions .button {
    width: 100%;
  }
  .care-symbol {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
  .bambly-study figcaption {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: background 140ms ease;
  }
  .button:active {
    transform: none;
  }
}
