:root {
  --paper: #e8e9e5;
  --ink: #1d1f20;
  --mute: #5f625e;
  --rule: #c8cac4;
  --gutter: clamp(16px, 4vw, 56px);
  --wide: 1280px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1c1d1c;
    --ink: #e4e5e0;
    --mute: #a0a39e;
    --rule: #383a38;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Jost", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 1px; }

h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }

/* bar */

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 28px var(--gutter) 0;
}

.mark { display: block; line-height: 0; }

.logo { display: block; height: clamp(22px, 1.2rem + 0.4vw, 28px); width: auto; }

.bar nav { display: flex; gap: 1.75em; font-size: 0.9375rem; }
.bar nav a { text-decoration: none; color: var(--mute); }
.bar nav a:hover { color: var(--ink); }

/* hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: end;
  gap: var(--gutter);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: min(calc(100svh - 70px), 900px);
}

.hero-text { padding-bottom: clamp(48px, 10vh, 120px); max-width: 30rem; }

.hero h1 {
  font-size: clamp(1.875rem, 1.15rem + 2.5vw, 3.125rem);
  line-height: 1.1;
  font-weight: 350;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.hero-text p {
  margin-top: 1.25em;
  color: var(--mute);
  max-width: 32ch;
}

.obj { display: block; width: 100%; }

.hero-obj { height: min(80svh, 820px); }

/* sections */

h2 {
  font-size: 1.0625rem;
  font-weight: 560;
  margin-bottom: 2.5rem;
}

.objects,
.ways {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(80px, 14vh, 160px) var(--gutter) 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 48px) var(--gutter);
}

.item .obj {
  aspect-ratio: 3 / 4;
  margin-bottom: 1.25rem;
  cursor: grab;
  touch-action: pan-y;
}

.item h3 {
  font-size: 1.25rem;
  font-weight: 560;
  line-height: 1.2;
}

.kind { color: var(--mute); font-size: 0.9375rem; margin-top: 0.15em; }

.buy { display: flex; gap: 1.1em; margin-top: 0.85rem; font-size: 0.9375rem; }

.ways dl { max-width: 60rem; }

.ways dl > div {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 0 var(--gutter);
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.ways dl > div:last-child { border-bottom: 1px solid var(--rule); }

.ways dt { font-weight: 560; }
.ways dd { color: var(--mute); max-width: 48ch; }
.ways dd a { color: var(--ink); white-space: nowrap; }

/* footer */

.foot {
  display: flex;
  justify-content: space-between;
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(96px, 16vh, 180px) var(--gutter) 32px;
  font-size: 0.875rem;
  color: var(--mute);
}

/* small screens */

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    min-height: 0;
    padding-top: 48px;
  }
  .hero-text { padding-bottom: 0; }
  .hero-obj { height: 62svh; order: 2; }
  .ways dl > div { grid-template-columns: 1fr; gap: 0.25rem; }
}

@media (max-width: 420px) {
  .bar nav { gap: 1.1em; }
  .buy { gap: 0.9em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
