@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-ext-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-latin-ext-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #f4f2ef;
  --ink: #211815;
  --muted: #5d514b;
  --accent: #9a2f22;
  --accent-dark: #76211a;
  --field: #ffffff;
  --field-line: #a99c94;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(64px, 9vw, 128px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Top bar */
.bar {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 20px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.wordmark {
  font-weight: 600; font-size: 24px; letter-spacing: -0.03em;
  color: var(--ink); text-decoration: none;
}
.wordmark--small { font-size: 18px; }
.bar__note { font-size: 15px; color: var(--muted); }

/* Every top-level section spaces itself with the same outer gap. */
main > section { margin-block: 0 var(--gap); }

/* Hero */
.hero { position: relative; }
.hero__img {
  width: 100%;
  height: min(86vh, 920px);
  min-height: 520px;
  object-fit: cover;
  object-position: 50% 45%;
}
.hero__panel {
  position: absolute;
  left: var(--gutter); bottom: var(--gutter);
  width: min(560px, calc(100% - 2 * var(--gutter)));
  background: var(--bg);
  padding: clamp(24px, 3vw, 40px);
}
.hero h1 { font-size: clamp(34px, 4vw, 54px); line-height: 1.04; }
.lede { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Waitlist form */
.join { margin-top: 24px; }
.join__row { display: flex; gap: 8px; }
.join input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  font: inherit; color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 0;
  padding: 13px 14px;
}
.join input[type="email"]::placeholder { color: #8a7d76; }
.join button {
  flex: 0 0 auto;
  font: inherit; font-weight: 600;
  color: #ffffff; background: var(--accent);
  border: 1px solid var(--accent); border-radius: 0;
  padding: 13px 20px; cursor: pointer;
}
.join button[disabled] { opacity: .6; cursor: progress; }
.join input:focus-visible,
.join button:focus-visible,
.wordmark:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.join__note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.join__msg { margin-top: 8px; font-size: 15px; font-weight: 600; }
.join__msg:empty { display: none; }
.join__msg.is-error { color: var(--accent-dark); }
.join.is-done .join__row,
.join.is-done .join__note { display: none; }

@media (hover: hover) {
  .join button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
  .wordmark:hover { color: var(--accent); }
}

/* Categories */
.coming, .about, .last, .foot { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.coming h2, .last h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.cats {
  list-style: none; margin: 32px 0 0; padding: 0;
  display: grid; gap: 32px 20px;
  grid-template-columns: repeat(4, 1fr);
}
.cat img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cat .cat__img--kilim { object-position: 62% 88%; }
.cat .cat__img--modern { object-position: 55% 88%; }
.cat h3 { margin-top: 16px; font-size: 20px; line-height: 1.2; }
.cat p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* About */
.about {
  display: grid; gap: clamp(32px, 5vw, 80px);
  grid-template-columns: 1.1fr .9fr; align-items: start;
}
.about h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.about p { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 34em; }
.about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Closing form */
.last .join { max-width: 520px; }

/* Footer */
.foot {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-block: 0 32px; font-size: 14px; color: var(--muted);
}

@media (max-width: 900px) {
  .cats { grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .about { grid-template-columns: 1fr; }
  .about__img { aspect-ratio: 4 / 3; }
}

@media (max-width: 720px) {
  .hero__img { height: 58vh; min-height: 340px; }
  .hero__panel { position: static; width: auto; padding: 24px var(--gutter) 0; }
  .lede { font-size: 17px; }
  .cat h3 { font-size: 17px; }
  .cat p { font-size: 15px; }
  .about p { font-size: 17px; }
}

@media (max-width: 420px) {
  .join__row { flex-direction: column; }
  .join button { width: 100%; }
}

/* 404 */
.nf { max-width: var(--max); margin: 0 auto; padding: clamp(64px, 12vw, 160px) var(--gutter); }
.nf h1 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.nf p { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 32em; }
.nf a { color: var(--accent); }
