/* Overlook: shared stylesheet. The design view and the site both load this file. Every spacing, type and rounding value comes from tokens.css. */
@import url("tokens.css");

@font-face { font-family: "Zodiak"; src: url("fonts/Zodiak-Variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Zodiak"; src: url("fonts/Zodiak-VariableItalic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fonts/Supreme-Variable.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Supreme"; src: url("fonts/Supreme-VariableItalic.woff2") format("woff2"); font-weight: 100 800; font-style: italic; font-display: swap; }

:root {
  /* First Light: coolors.co trending #0d1321 #1d2d44 #3e5c76 #748cab #f0ebd8. Page is bone paper; ink is the frame; steel is the one button color. */
  --paper: #f0ebd8;
  --sand: #e3ddc8;
  --ink: #0d1321;
  --midnight: #1d2d44;
  --muted: #4b5d73;
  --dusty: #748cab;
  --steel: #3e5c76;
  --steel-deep: #1d2d44;
  --error: #8c2f39;
  --white: #ffffff;

  --display: "Zodiak", Georgia, "Times New Roman", serif;
  --body: "Supreme", "Helvetica Neue", Arial, sans-serif;

  --r-btn: var(--r-button);
  --r-field: var(--r-button);

  --gutter: clamp(var(--s-4), 4vw, var(--s-7));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: var(--text-body); line-height: var(--line-body); font-weight: 400; }
img, svg, video, canvas { display: block; max-width: 100%; }

/* Type */
/* Air under every heading: .45em of its own size. Sections put more between them than inside them. */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0 0 var(--gap-after-heading); letter-spacing: -.005em; max-width: none; }
.t-display { font-family: var(--display); font-size: clamp(44px, 7.2vw, 104px); line-height: .96; font-weight: 700; letter-spacing: -.005em; margin-bottom: .3em; }
.t-h1, .t-h2 { margin-bottom: .5em; }
p + .btn, p + .form-row, ul + .btn { margin-top: var(--s-2); }
.t-h1 { font-size: clamp(38px, 5.4vw, 72px); }
.t-h2 { font-size: clamp(30px, 3.8vw, 52px); }
.t-h3 { font-size: var(--text-h3); line-height: 1.15; }
.t-lead { font-size: var(--text-lead); line-height: 1.45; font-weight: 400; }
.t-body { font-size: var(--text-body); line-height: var(--line-body); }
.t-small { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.t-price { font-family: var(--display); font-weight: 600; font-size: 20px; }
p { margin: 0 0 var(--gap-after-body); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

/* Logo: the founder's mark (site/brand/). Header and footer use the wordmark row; the full lockup is for the hero and the story. */
.wordmark { display: inline-block; line-height: 0; text-decoration: none; }
.wordmark img { height: 26px; width: auto; }
.wordmark.lg img { height: 40px; }
.lockup img { width: min(100%, 520px); height: auto; }

/* Links */
a { color: inherit; text-decoration-color: var(--steel); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--steel-deep); }
a:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); gap: var(--s-2); font-family: var(--body); font-weight: 600; font-size: 16px; line-height: 1; padding: var(--s-3) var(--s-5); border-radius: var(--r-btn); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .18s var(--ease-out), color .18s, border-color .18s, transform .12s; }
.btn + .btn { margin-left: 0; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }
.btn-primary { background: var(--steel); color: var(--white); border-color: var(--steel); }
.btn-primary:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-dark:hover { background: var(--midnight); border-color: var(--midnight); color: var(--paper); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-onfilm { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-onfilm:hover { background: var(--steel); border-color: var(--steel); color: var(--white); }
.btn-text { background: none; border: 0; padding: 0; color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--steel); text-underline-offset: .22em; text-decoration-thickness: 2px; }
.btn-text:hover { color: var(--steel-deep); }
.btn[disabled], .btn.is-disabled { opacity: .45; cursor: not-allowed; }
.btn-lg { font-size: 18px; padding: var(--s-4) var(--s-6); }
/* The quiet line under a button: what happens next and what it costs. */
.btn-note { display: block; margin-top: var(--s-2); font-size: .85em; color: var(--muted); }
.btn .arrow { width: 18px; height: 18px; }

/* Fields */
.field { display: grid; gap: var(--s-2); }
.field label { font-weight: 600; font-size: 15px; }
.input { font: inherit; font-size: var(--text-body); min-height: var(--tap); padding: var(--s-3) var(--s-4); border: 2px solid var(--midnight); border-radius: var(--r-field); background: var(--white); color: var(--ink); width: 100%; min-width: 0; }
.input::placeholder { color: var(--muted); }
.input:hover { border-color: var(--ink); }
.input:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(62, 92, 118, .28); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field .hint { font-size: 14px; color: var(--muted); }
.field .error { font-size: 14px; color: var(--error); font-weight: 600; }
/* Email capture is always stacked: field full width, button full width under it, centered. Never a button beside the field. */
.signup { display: grid; grid-template-columns: 1fr; gap: var(--s-3); width: min(560px, 100%); margin-inline: auto; text-align: center; }
.signup .btn { justify-content: center; width: 100%; }
.signup .input { background: var(--paper); text-align: center; font-size: var(--text-lead); padding: var(--s-4); }

/* Product card */
.card { padding: 0; background: var(--white); border: 1px solid var(--sand); border-radius: var(--r-card); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.card .photo { aspect-ratio: 4 / 5; background: var(--sand); position: relative; overflow: hidden; }
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .photo .awaiting { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 14px; }
.card .body { padding: var(--s-4) var(--s-4) var(--s-2); display: grid; gap: var(--s-1); align-content: start; }
.card .body h3 { font-size: var(--text-h3); margin-bottom: .2em; }
.card .use { color: var(--muted); font-size: 15px; }
.card .spec { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: 0 var(--s-4); font-size: 15px; color: var(--muted); }
.card .spec b { color: var(--ink); font-family: var(--display); font-size: 20px; }
.card .foot { padding: var(--s-3) var(--s-4) var(--s-4); display: grid; gap: var(--s-2); }
.card .foot .btn { width: 100%; }
.card:hover .photo img { transform: scale(1.03); }
.card .photo img { transition: transform .8s var(--ease-out); }

/* Hour rows (layering system) */
.hour { border-left: var(--s-1) solid var(--dusty); padding: var(--s-1) 0 var(--s-1) var(--s-4); }
.hour .when { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.05; }
.hour .what { margin-top: var(--s-2); color: var(--midnight); }

/* Proof line */
.proof { border-top: 2px solid var(--ink); padding-top: var(--s-3); }
.proof strong { display: block; font-family: var(--display); font-size: var(--text-h3); font-weight: 700; line-height: 1.1; margin-bottom: var(--s-1); }
.proof span { color: var(--muted); font-size: 15px; }

/* Time readout pill (over the film) */
.readout { display: inline-flex; align-items: center; gap: var(--s-2); border-radius: var(--r-pill); padding: var(--s-2) var(--s-4) var(--s-2) var(--s-3); background: rgba(13, 19, 33, .72); color: var(--white); font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.readout i { width: 8px; height: 8px; border-radius: 50%; background: var(--dusty); display: inline-block; }

/* Layout helpers */
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: var(--gap-between-sections) 0; text-align: left; }
/* Grids are 1, 2 or 4 across. Never three. */
.grid { display: grid; gap: var(--s-5); grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid > * { min-width: 0; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* Swatches (design view) */
.swatch { border-radius: var(--r-card); border: 1px solid var(--sand); overflow: hidden; }
.swatch div { height: var(--s-9); }
.swatch p { font-size: 14px; padding: var(--s-2) var(--s-3); margin: 0; background: var(--white); }
.swatch p b { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
