:root {
  color-scheme: light;
  --ink: #0b0b0b;
  --paper: #f8f8f6;
  --teal: #63c6c3;
  --muted: #565654;
  --line: #d9d9d4;
  --edge: clamp(22px, 6vw, 92px);
  --bar-top: 10px;
  --bar-height: 58px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-top) + var(--bar-height) + 16px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Helvetica Neue", Arial, "PingFang HK", "Microsoft JhengHei", sans-serif;
  line-height: 1.55;
}

p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

.shell {
  width: min(100% - var(--edge) * 2, 1256px);
  margin-inline: auto;
}

.top-bar {
  position: fixed;
  z-index: 10;
  inset: var(--bar-top) 0 auto;
  width: min(100% - 2 * clamp(12px, 3vw, 42px), 1256px);
  height: var(--bar-height);
  margin-inline: auto;
  color: #fff;
}

.top-bar::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(20 20 20 / 82%);
  backdrop-filter: blur(14px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 22px 100%);
  pointer-events: none;
  content: "";
}

.top-bar nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.3vw, 50px);
  height: 100%;
  padding-inline: 38px 24px;
}

.top-bar a {
  display: flex;
  align-items: center;
  min-height: 42px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.top-bar a:hover { color: var(--teal); }
.top-bar a:focus-visible { outline-color: var(--teal); outline-offset: 3px; }
.top-bar .top-logo { margin-right: auto; }
.top-logo img { width: 28px; }

.hero {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 42px 24px;
  padding-top: max(42px, calc(var(--bar-top) + var(--bar-height) + 14px));
  color: #fff;
  background: var(--ink);
  text-align: center;
}

.entry {
  display: grid;
  justify-items: center;
  padding: 12px;
  text-decoration: none;
}

.entry-mark {
  width: clamp(160px, min(53vw, 47svh), 410px);
}

.entry h1 {
  margin-top: clamp(24px, 4vh, 40px);
  font-size: clamp(13px, 1.35vw, 18px);
  font-weight: 500;
  letter-spacing: .16em;
}

.entry h1 span {
  display: block;
  margin-top: 5px;
  color: #b3b3b3;
  font-size: 11px;
  letter-spacing: .1em;
}

.entry-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 21px;
  color: #d4d4d4;
  font-size: 13px;
  letter-spacing: .08em;
}

.entry-action svg {
  color: var(--teal);
  transition: transform 160ms ease;
}

.entry:hover .entry-action { color: #fff; }
.entry:hover .entry-action svg { transform: translateY(3px); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

.entry:focus-visible { outline-color: var(--teal); }

.products {
  padding-block: clamp(56px, 7vw, 98px) clamp(46px, 6vw, 80px);
  background: var(--paper);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(30px, 4.2vw, 64px);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 23px;
}

.section-index, .work-index, .credit {
  font-size: 12px;
  letter-spacing: .06em;
}

.section-index { color: var(--muted); }

.section-heading h2 {
  font-size: clamp(40px, 5.3vw, 76px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.06em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(14px, 2.2vw, 28px);
}

.product-card {
  display: flex;
  min-height: clamp(146px, 16vw, 224px);
  flex-direction: column;
  align-items: start;
  padding: clamp(20px, 3vw, 40px);
  border: 1px solid var(--ink);
  background: #fff;
  text-decoration: none;
}

a.product-card:hover { border-color: #287b79; background: #f0f9f8; }

.product-card.upcoming {
  border-color: var(--line);
  background: #efefec;
}

.product-status {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .06em;
  margin-top: auto;
}

.product-card h3 {
  margin-bottom: 20px;
  font-size: clamp(26px, 3.3vw, 45px);
  line-height: 1.14;
  letter-spacing: -.04em;
}

.product-action {
  margin-top: auto;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: .26em;
}

.product-action span { color: #256c69; }

.about {
  padding-block: 30px 42px;
  border-top: 1px solid var(--line);
}

.about h2 { font-size: 19px; }

.about-bio {
  max-width: 65ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.portfolio { margin-top: 16px; }

.portfolio summary {
  width: fit-content;
  padding-block: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.portfolio summary::marker { color: #256c69; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.6vw, 54px);
  margin-top: 24px;
}

.work {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.work-art {
  width: 100%;
  border: 1px solid var(--line);
}

.work-copy { padding-top: 22px; }

.work-index {
  color: var(--muted);
  font-weight: 600;
}

.work-index span {
  display: inline-block;
  margin-right: 7px;
  border-bottom: 2px solid var(--teal);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.work h3 {
  margin-top: 10px;
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.045em;
}

.work-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.work-description {
  margin-top: 20px;
  font-size: 15px;
}

.credit {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.7;
}

.credit span {
  margin-right: 6px;
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid #303030;
  padding-block: 25px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-content p span { color: #b3b3b3; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-content a {
  text-underline-offset: .27em;
  text-decoration-color: #828282;
}

.footer-content a span { color: var(--teal); }

@media (max-width: 699px) {
  :root { --bar-top: 8px; --bar-height: 48px; }

  .top-bar::before { clip-path: none; }

  .top-bar nav {
    justify-content: space-between;
    gap: 8px;
    padding-inline: 12px;
  }

  .top-bar .top-logo { margin-right: 0; }
  .top-logo img { width: 24px; }

  .work-grid {
    grid-template-columns: 1fr;
    row-gap: 38px;
  }

  .section-index { font-size: 10px; }
  .work-copy { padding-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .entry-action svg { transition: none; }
  .entry:hover .entry-action svg { transform: none; }
}
