@font-face {
  font-family: "Marcellus";
  src: url("../assets/fonts/marcellus-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.64%;
  ascent-override: 90.49%;
  descent-override: 22.56%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Marcellus Fallback";
  src: local("Palatino Linotype"), local("Palatino"), local("Times New Roman");
  size-adjust: 112%;
  ascent-override: 92%;
  descent-override: 22%;
  line-gap-override: 0%;
}

:root {
  --rice: #f2eee6;
  --stone: #c9bfaf;
  --ink: #2e2d2a;
  --clay: #9c5a3c;
  --olive: #66654a;
  --line: rgba(46, 45, 42, 0.16);
  --muted: #5c5954;
  --pad: 20px;
  --header: 64px;
  --dock: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --serif: "Marcellus", "Marcellus Fallback", "Palatino Linotype", Palatino, serif;
  --sans: "Inter", "Inter Fallback", Arial, sans-serif;
  color-scheme: light;
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + env(safe-area-inset-top) + 12px);
  scroll-padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom) + 12px);
}

body {
  margin: 0;
  background: var(--rice);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body.sheet-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.12;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

::selection {
  background: var(--stone);
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: var(--rice);
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.lede {
  font-size: 1.0625rem;
  line-height: 1.5;
}

.fine {
  margin: 0.75rem 0 0;
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.when {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
}

.wrap {
  width: min(1120px, calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: calc(var(--header) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--pad) 0;
  background: var(--rice);
}

.top::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 -8px 0;
  background: linear-gradient(to bottom, var(--rice) 0 72%, transparent);
  pointer-events: none;
}

.top__brand {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.top__brand img {
  width: auto;
  height: 52px;
}

.top__place {
  margin: 0;
  justify-self: end;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.top__join {
  display: none;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.top__join span {
  border-bottom: 1px solid var(--ink);
  line-height: 1.3;
}

.hero {
  padding: 28px var(--pad) 8px;
}

.wordmark {
  width: min(100%, 640px);
  height: auto;
}

.hero__line {
  max-width: 16em;
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  line-height: 1.45;
}

.field {
  display: block;
}

.field .kicker {
  margin-bottom: 0.45rem;
}

.field input,
.sheet input[type="email"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  caret-color: var(--ink);
  appearance: none;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  box-shadow: inset 0 0 0 1000px var(--rice);
  transition: background-color 9999s ease-out;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__error {
  min-height: 0;
  margin: 0.55rem 0 0;
  color: var(--clay);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.form__error:empty {
  display: none;
}

.signup button[type="submit"],
.sheet button[type="submit"],
.dock__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 0.7rem;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--rice);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  touch-action: manipulation;
}

.signup button[type="submit"]:disabled,
.sheet button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: progress;
}

.textish {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0.4rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 500;
}

.success {
  display: none;
}

body.is-joined [data-form-fields] {
  display: none;
}

body.is-joined .success {
  display: block;
}

.success__title {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.15;
}

.study {
  padding: 28px 0 0;
}

.plate {
  margin: 0;
}

.plate__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  container-type: size;
  background: var(--stone);
  box-shadow: inset 0 0 0 1px rgba(46, 45, 42, 0.14);
}

.plate__cloth {
  position: absolute;
  inset: -12% 0;
  background-color: var(--stone);
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(46, 45, 42, 0.11) 0 1px,
    transparent 1px 4px
  );
  transition: background-color 0.45s var(--ease);
}

.plate__photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plate__type {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.15rem 1rem;
  color: var(--ink);
  pointer-events: none;
}

.plate__gauge {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.plate__num {
  font-family: var(--serif);
  font-size: 30cqw;
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.plate__balance {
  height: 0.7rem;
}

.plate__cap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 0.85rem var(--pad) 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.plate[data-colour="rice"] .plate__cloth { background-color: var(--rice); }
.plate[data-colour="stone"] .plate__cloth { background-color: var(--stone); }
.plate[data-colour="ink"] .plate__cloth { background-color: var(--ink); }
.plate[data-colour="clay"] .plate__cloth { background-color: var(--clay); }
.plate[data-colour="olive"] .plate__cloth { background-color: var(--olive); }

.plate[data-colour="ink"] .plate__cloth,
.plate[data-colour="clay"] .plate__cloth,
.plate[data-colour="olive"] .plate__cloth {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(242, 238, 230, 0.22) 0 1px,
    transparent 1px 5px
  );
}

.plate[data-colour="ink"] .plate__type,
.plate[data-colour="clay"] .plate__type,
.plate[data-colour="olive"] .plate__type {
  color: var(--rice);
}

.plate[data-colour="ink"] .plate__frame,
.plate[data-colour="clay"] .plate__frame,
.plate[data-colour="olive"] .plate__frame {
  box-shadow: inset 0 0 0 1px rgba(242, 238, 230, 0.28);
}

.plate.has-photo .plate__cloth,
.plate.has-photo .plate__type,
.plate.has-photo [data-plate-note] {
  display: none;
}

main section,
.plate__cap,
.piece-intro,
.colours,
.swatch,
.specs div,
.reasons li,
.footer__nav a,
h2 {
  scroll-margin-top: calc(var(--header) + env(safe-area-inset-top) + 16px);
  scroll-margin-bottom: calc(var(--dock) + env(safe-area-inset-bottom) + 16px);
}

.piece-intro {
  padding: 1.5rem var(--pad) 0;
}

.piece-intro h2,
.block h2 {
  font-size: clamp(2rem, 8vw, 3.25rem);
  max-width: 11em;
}

.piece-intro .lede {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.colours {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 6px;
  margin: 1.6rem 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.colours legend {
  grid-column: 1 / -1;
  padding: 0;
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 76px;
  cursor: pointer;
}

.swatch input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.swatch__chip {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(46, 45, 42, 0.28);
  transition: transform 0.2s var(--ease);
}

.swatch__chip--rice { background: var(--rice); }
.swatch__chip--stone { background: var(--stone); }
.swatch__chip--ink { background: var(--ink); }
.swatch__chip--clay { background: var(--clay); }
.swatch__chip--olive { background: var(--olive); }

.swatch__name {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.swatch input:checked + .swatch__chip {
  box-shadow:
    inset 0 0 0 1px rgba(46, 45, 42, 0.28),
    0 0 0 2px var(--rice),
    0 0 0 4px var(--ink);
}

.swatch input:focus-visible + .swatch__chip {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.swatch input:checked ~ .swatch__name {
  font-weight: 500;
}

.swatch:active .swatch__chip {
  transform: scale(0.94);
}

.block {
  padding: 80px 0 8px;
}

.story__grid p:last-child {
  margin-bottom: 0;
}

.details__grid .specs {
  margin: 1.5rem 0 0;
}

.specs {
  margin: 0;
}

.specs div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 12px;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.specs div:last-child {
  border-bottom: 1px solid var(--line);
}

.specs dt {
  margin: 0;
  padding-top: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0;
  font-size: 0.975rem;
}

.reasons ol {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.reasons li {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.reasons li p {
  margin: 0;
  max-width: 24em;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.footer {
  padding: 88px 0 calc(28px + var(--dock) + env(safe-area-inset-bottom));
}

.footer__logo {
  width: min(100%, 280px);
  margin-bottom: 1.25rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-thickness: 1px;
}

.footer__place {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--rice);
  box-shadow: inset 0 1px var(--line);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}

.dock::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -8px 0 0 0;
  background: linear-gradient(to top, var(--rice) 0 72%, transparent);
  pointer-events: none;
}

.dock.is-shown {
  transform: translateY(0);
}

.dock__when {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.dock__go {
  width: auto;
  flex: none;
  margin-top: 0;
  min-height: 44px;
  padding: 0 16px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet__scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(46, 45, 42, 0.46);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  cursor: pointer;
}

.sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92svh, 760px);
  overflow: auto;
  padding: 8px var(--pad) calc(20px + env(safe-area-inset-bottom));
  background: var(--rice);
  border-radius: 18px 18px 0 0;
  transform: translateY(100%);
  transition: transform 0.42s var(--ease);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body.sheet-open .sheet__scrim {
  opacity: 1;
}

body.sheet-open .sheet__panel {
  transform: translateY(0);
}

.sheet__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-bottom: 0.4rem;
}

.sheet__grip {
  width: 36px;
  height: 1px;
  background: rgba(46, 45, 42, 0.4);
}

.sheet__close {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
}

.sheet h2 {
  font-size: clamp(2rem, 8vw, 2.5rem);
  margin-bottom: 0.65rem;
}

.sheet .lede {
  margin-bottom: 1.1rem;
}

.colours--sheet {
  margin-top: 1.2rem;
}

.page-missing .dock,
.page-privacy .dock {
  display: none;
}

.page-privacy .top {
  grid-template-columns: auto 1fr auto;
}

.page-privacy .top__join {
  display: inline-flex;
}

.page-privacy .footer {
  padding-bottom: 48px;
}

.prose {
  width: min(40rem, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 36px 0 96px;
}

.prose h1 {
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  margin-bottom: 1rem;
}

.prose h2 {
  font-size: 1.65rem;
  margin: 2.2rem 0 0.7rem;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.prose li {
  margin: 0.3rem 0;
}

.prose .dated {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.missing {
  min-height: calc(100svh - 180px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px var(--pad) 96px;
}

.missing h1 {
  font-size: clamp(2.4rem, 8vw, 3.5rem);
  margin: 1rem 0;
}

.missing a {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (hover: hover) and (pointer: fine) {
  .signup button[type="submit"]:hover,
  .sheet button[type="submit"]:hover,
  .dock__go:hover {
    background: #242320;
  }

  .swatch:hover .swatch__chip {
    transform: scale(1.04);
  }
}

@media (max-width: 359px) {
  .dock__when {
    display: none;
  }

  .dock__go {
    width: 100%;
  }
}

@media (min-width: 720px) {
  .signup button[type="submit"] {
    width: auto;
    min-width: 10.5rem;
  }

  .hero__line {
    font-size: 1.35rem;
  }
}

@media (min-width: 900px) {
  :root {
    --pad: 48px;
    --header: 76px;
  }

  .top {
    grid-template-columns: auto 1fr auto;
    padding-left: 32px;
    padding-right: 32px;
  }

  .top__place {
    justify-self: end;
    margin-right: 8px;
  }

  .top__join {
    display: inline-flex;
  }

  .opening {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.88fr);
    column-gap: 72px;
    align-items: center;
    width: min(1360px, calc(100% - 80px));
    margin: 0 auto;
    min-height: calc(100svh - var(--header));
    padding: 12px 0 28px;
  }

  .hero,
  .piece-intro {
    padding-left: 0;
    padding-right: 0;
  }

  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .study {
    padding-top: 0;
  }

  .plate__frame,
  .plate__cap {
    width: min(100%, calc((100svh - 180px) * 0.8));
    margin-left: auto;
  }

  .plate__cap {
    padding-left: 0;
    padding-right: 0;
  }

  html {
    scroll-padding-bottom: 28px;
  }

  main section,
  .plate__cap,
  .piece-intro,
  .colours,
  .swatch,
  .specs div,
  .reasons li,
  .footer__nav a,
  h2 {
    scroll-margin-bottom: 28px;
  }

  .piece-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.88fr);
    column-gap: 72px;
    align-items: end;
    width: min(1360px, calc(100% - 80px));
    margin: 8px auto 0;
    padding-top: 8px;
  }

  .piece-intro .colours {
    margin-top: 0;
  }

  .wrap {
    width: min(1360px, calc(100% - 80px));
  }

  .story__grid {
    display: block;
    max-width: 38rem;
  }

  .details__grid,
  .reasons ol {
    display: grid;
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.2fr);
    gap: 28px 64px;
    align-items: start;
  }

  .reasons ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 2rem;
  }

  .details__grid .specs {
    margin-top: 0;
  }

  .block {
    padding-top: 112px;
  }

  .footer {
    padding-bottom: 56px;
  }

  .footer__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 28px;
  }

  .dock {
    display: none;
  }

  .sheet {
    align-items: center;
    padding: 24px;
  }

  .sheet__panel {
    width: min(440px, 100%);
    max-height: min(640px, calc(100svh - 48px));
    border-radius: 0;
    padding: 18px 28px 28px;
    transform: translateY(10px);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  body.sheet-open .sheet__panel {
    transform: none;
    opacity: 1;
  }

  .sheet__grip {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .will-reveal {
    opacity: 0;
    transform: translateY(10px);
  }

  .will-reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
}

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

  .dock,
  .sheet__scrim,
  .sheet__panel,
  .plate__cloth,
  .swatch__chip {
    transition: none;
  }
}
