@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #000000;
  --surface: #141414;
  --rule: #2b2924;
  --paper: #ece8df;
  --muted: #a39f96;
  --gold: #d9a93b;
  --gold-light: #f3d27a;
  --silver: #c8ccd1;
  --foil: linear-gradient(100deg, #b98a26 0%, #f3d27a 22%, #d9a93b 40%, #eef0f2 58%, #9ea3a9 76%, #d9a93b 100%);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 64ch;
  --gutter: clamp(16px, 5vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-light); text-underline-offset: 3px; }
a:hover { color: var(--paper); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 600 1.25rem/1 var(--serif); letter-spacing: .01em; }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 20px; font-size: .9375rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--paper); }

/* Hero */
.hero { text-align: center; padding: clamp(24px, 6vw, 56px) 0 clamp(40px, 8vw, 88px); }
.hero-logo { width: min(340px, 72vw); margin: 0 auto; }
.foil {
  font: 600 clamp(2.4rem, 6.4vw, 4.6rem)/1.04 var(--serif);
  letter-spacing: -.01em;
  margin: clamp(8px, 2vw, 20px) auto 0;
  max-width: 15ch;
  background: var(--foil);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 2.6s cubic-bezier(.3, .1, .2, 1) .4s 1 both;
}
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0% 0; } }
.lede { margin: 24px auto 0; max-width: 54ch; color: var(--paper); font-size: clamp(1.0625rem, 2vw, 1.25rem); }
.download { margin: 28px 0 0; }
.availability { margin: 28px 0 0; color: var(--muted); font-size: .9375rem; }
.download + .availability { margin-top: 12px; }

.preview { margin-top: clamp(40px, 7vw, 72px); }
.preview video, .shot img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--surface);
}

/* Sections */
section { padding: clamp(48px, 9vw, 104px) 0; border-top: 1px solid var(--rule); }
h2 { font: 600 clamp(1.9rem, 4vw, 2.75rem)/1.1 var(--serif); margin: 0 0 18px; color: var(--paper); }
h3 { font: 600 1.6rem/1.15 var(--serif); margin: 0 0 10px; color: var(--gold-light); }
p { margin: 0 0 1em; }

.workflows { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 40px; }
.workflows > div { border-left: 2px solid var(--gold); padding-left: 22px; }
.workflows p { color: var(--paper); margin: 0; }
.workflow-note { margin-top: 36px; color: var(--muted); }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature + .feature { margin-top: clamp(56px, 9vw, 104px); }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature-text p { color: var(--paper); }
.feature-text ul { margin: 0; padding-left: 1.1em; color: var(--paper); }
.feature-text li { margin: .35em 0; }
.feature-text li::marker { color: var(--gold); }

/* Inner pages */
.page { padding: clamp(40px, 7vw, 80px) 0 clamp(56px, 9vw, 104px); }
.page h1 { font: 600 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--serif); margin: 0 0 12px; color: var(--paper); }
.page .updated { color: var(--muted); margin-bottom: 40px; }
.page h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 44px 0 12px; }
.page ul { padding-left: 1.2em; }
.page li { margin: .4em 0; }
.page li::marker { color: var(--gold); }
.provider-name { font-weight: 600; overflow-wrap: anywhere; }
.provider-address { display: block; color: var(--muted); font-size: .9375rem; white-space: pre-line; overflow-wrap: anywhere; }
.provider-caps { display: block; color: var(--paper); font-size: .9375rem; overflow-wrap: anywhere; }
.page .provider-rows { list-style: none; padding-left: 0; }
.provider-rows li { display: grid; grid-template-columns: 226px minmax(0, 1fr); column-gap: 20px; align-items: start; margin: 22px 0; }
.provider-logo-slot { min-height: 100px; }
.provider-logo { display: block; box-sizing: border-box; width: 226px; height: 100px; padding: 10px; background: #fff; border-radius: 6px; visibility: hidden; }
.provider-logo.loaded { visibility: visible; }
.provider-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 640px) {
  .provider-rows li { grid-template-columns: minmax(0, 1fr); }
  .provider-logo-slot { margin-bottom: 10px; }
  .provider-logo-slot:empty { display: none; }
}
.contact { margin: 28px 0 8px; padding: 22px 24px; border: 1px solid var(--rule); border-left: 2px solid var(--gold); border-radius: 4px; background: var(--surface); }
.contact p:last-child { margin: 0; }
.contact a { font-size: 1.1875rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--muted); font-size: .9375rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--paper); }

@media (max-width: 760px) {
  .workflows, .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .site-nav { gap: 14px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .foil { animation: none; background-position: 50% 0; }
}
.page h3 { margin-top: 28px; font-size: 1.35rem; }
.shot img { border: 0; border-radius: 0; background: none; }
.shot { margin: 0; }
.site-footer p { margin: 0; }
.textures { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.textures li {
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font: 600 1.2rem/1 var(--serif);
  color: var(--silver);
  background:
    repeating-linear-gradient(45deg, rgba(243, 210, 122, .07) 0 2px, transparent 2px 7px),
    var(--surface);
}
.texture-samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.texture-samples figure { margin: 0; }
.texture-samples img { width: 100%; border: 1px solid var(--rule); border-radius: 6px; }
.texture-samples figcaption { margin-top: 10px; font: 600 1.2rem/1.2 var(--serif); color: var(--silver); }
@media (max-width: 520px) { .texture-samples { grid-template-columns: 1fr; } }

/* Join page: the one button that opens the app */
.open-app { display: inline-block; margin: 8px 0 4px; padding: 13px 26px; border-radius: 4px; background: var(--foil); color: var(--ink); font: 600 1.0625rem/1 var(--sans); text-decoration: none; }
.open-app:hover { color: var(--ink); filter: brightness(1.08); }
.open-app:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.page code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .9em; color: var(--gold-light); overflow-wrap: anywhere; }

/* Home page: the example 3D preview (portrait thumbnail, links to the live page) */
.example-preview { margin-top: clamp(40px, 7vw, 72px); }
.example-preview .shot { text-align: center; }
.example-preview .shot a { display: inline-block; line-height: 0; }
.example-preview .shot img { width: auto; max-width: 100%; height: auto; max-height: 560px; border-radius: 10px; }
