/* Cubistand — Restrained palette, gallery-wall warmth, generous space */

:root {
  --bg:        oklch(0.985 0.003 85);
  --bg-soft:   oklch(0.965 0.005 85);
  --ink:       oklch(0.18 0.005 280);
  --ink-soft:  oklch(0.42 0.005 280);
  --ink-faint: oklch(0.62 0.004 280);
  --rule:      oklch(0.86 0.004 85);
  --accent:    oklch(0.32 0.012 250);

  --max:       1280px;
  --pad:       clamp(20px, 5vw, 96px);

  --display:   "Inter Display", "Inter", system-ui, sans-serif;
  --body:      "Inter", system-ui, sans-serif;

  --t-display: clamp(2.6rem, 6.4vw, 5.4rem);
  --t-h2:      clamp(2.0rem, 4.4vw, 3.6rem);
  --t-lede:    clamp(1.05rem, 1.4vw, 1.25rem);
  --t-body:    1.0625rem;
  --t-small:   0.78rem;
}

@supports (font-variation-settings: normal) {
  :root { --display: "Inter var", "Inter", system-ui, sans-serif; --body: "Inter var", "Inter", system-ui, sans-serif; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

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

/* ----- Header ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad);
  background: color-mix(in oklch, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled { border-bottom-color: var(--rule); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .mark { width: 22px; height: 22px; flex-shrink: 0; }

.site-nav {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  font-size: 0.95rem;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 220ms ease;
}
.site-nav a:hover { color: var(--ink); }

@media (max-width: 540px) {
  .site-nav a:not([href="#order"]) { display: none; }
}

/* ----- Hero ----- */

.hero {
  margin: 0;
  padding: 0 var(--pad) 0;
  background: var(--bg);
}
.hero img {
  width: 100%;
  height: auto;
  max-width: 1280px;
  margin: 0 auto;
  display: block;
  border-radius: 2px;
}

/* ----- Eyebrow / shared ----- */

.eyebrow {
  font-size: var(--t-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin: 0 0 1.4em;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }

h1 { font-size: var(--t-display); }
h2 { font-size: var(--t-h2); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 0.5em; }

/* ----- Sections layout ----- */

main > section {
  padding: clamp(80px, 12vw, 160px) var(--pad);
}

.lead {
  max-width: var(--max);
  margin: 0 auto;
}
.lead h1 { margin-bottom: clamp(28px, 3vw, 48px); }
.lead .lede {
  font-size: var(--t-lede);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.5;
}

.text-block {
  max-width: var(--max);
  margin: 0 auto;
}
.text-block h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.text-block p {
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: var(--t-lede);
  line-height: 1.55;
  margin: 0 0 1em;
}

/* ----- Photo blocks ----- */

.photo-pair {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(16px, 2.4vw, 32px);
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 80px);
}
.photo-pair figure { margin: 0; }
.photo-pair img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 2px;
}
.photo-pair figure:last-child img { aspect-ratio: 9 / 16; }

@media (max-width: 720px) {
  .photo-pair { grid-template-columns: 1fr; }
  .photo-pair img,
  .photo-pair figure:last-child img { aspect-ratio: 3 / 4; }
}

.photo-full { padding-top: clamp(60px, 8vw, 120px); padding-bottom: clamp(60px, 8vw, 120px); }
.photo-full img {
  width: 100%;
  max-width: 1600px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 2px;
}
.photo-full.tall img { max-width: 1100px; }
.photo-full.muted { background: var(--bg-soft); }
.photo-full .caption {
  max-width: 56ch;
  margin: 24px auto 0;
  font-size: 0.92rem;
  color: var(--ink-faint);
  text-align: center;
}

/* ----- Colors ----- */

.colors {
  max-width: var(--max);
  margin: 0 auto;
}
.colors h2 { margin-bottom: clamp(40px, 5vw, 64px); max-width: 24ch; }

.color-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.color-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-left: auto; margin-right: auto; }
.color-grid figure { margin: 0; }
.color-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  background: var(--bg-soft);
  border-radius: 2px;
}
.color-grid figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .color-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ----- Specs ----- */

.specs {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--rule);
}
.specs h2 { margin-bottom: clamp(40px, 5vw, 64px); }
.specs dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.specs dl > div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.specs dt {
  font-size: var(--t-small);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  align-self: center;
}
.specs dd {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--ink);
  align-self: center;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 720px) {
  .specs dl { grid-template-columns: 1fr; }
}

/* ----- Order ----- */

.order {
  max-width: var(--max);
  margin: 0 auto;
}
.order h2 { margin-bottom: clamp(40px, 5vw, 64px); }

.order-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
}
.order-grid form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-grid h3 { margin-bottom: 4px; }
.order-grid p { color: var(--ink-soft); margin: 0 0 12px; max-width: 38ch; }

.order-grid input,
.order-grid textarea {
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  outline: none;
  transition: border-color 200ms ease;
  font-family: var(--body);
  resize: vertical;
}
.order-grid input:focus,
.order-grid textarea:focus {
  border-color: var(--ink);
}

.color-pick {
  display: flex;
  gap: 18px;
  border: 0;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.color-pick label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.order-grid button {
  align-self: flex-start;
  font: inherit;
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  margin-top: 8px;
}
.order-grid button:hover { background: transparent; color: var(--ink); }

@media (max-width: 720px) {
  .order-grid { grid-template-columns: 1fr; }
}

/* ----- Footer ----- */

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 56px var(--pad);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: center;
  font-size: 0.92rem;
  color: var(--ink-faint);
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-size: 1rem;
}
.footer-mark .mark { width: 18px; height: 18px; }
.footer-meta { margin: 0; max-width: 60ch; }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { text-decoration: none; transition: color 200ms ease; }
.footer-nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .site-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ----- Utility ----- */

.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;
}

