/* The Artist Website: a gallery wall. Every product screenshot is hung like
   a painting, with a museum wall label beside it. One accent, ultramarine,
   for buttons, links and two solid bands. Light only, by choice. */
:root {
  --wall: #f7f7f4;
  --frame: #ffffff;
  --ink: #1b1c21;
  --muted: #5d606a;
  --rule: #e2e2dc;
  --field-border: #c9c9c2;
  --ultramarine: #2a399c;
  --ultramarine-deep: #1f2b7a;
  --ultramarine-wash: #eceef8;
  --band-muted: #c4cbf0;
  --on-accent: #ffffff;
  --shot: #e9e9e4;

  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.1875rem;
  --step-1: 1.5rem;
  --step-2: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  --step-3: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);

  --measure: 34rem;
  --page: 75rem;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--wall);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  margin: 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ultramarine); text-underline-offset: 0.18em; }
a:hover { color: var(--ultramarine-deep); }
:focus-visible { outline: 2px solid var(--ultramarine); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

.wrap {
  max-width: var(--page);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Coming soon banner */
.banner { background: var(--ultramarine-wash); color: var(--ink); font-family: var(--display); font-size: var(--step--1); }
.banner .wrap { padding-block: 0.7rem; display: flex; gap: 0.4rem 0.9rem; flex-wrap: wrap; align-items: baseline; }
.banner strong { font-weight: 600; color: var(--ultramarine-deep); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Header */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.wordmark:hover { color: var(--ink); }
.head-link { font-family: var(--display); font-size: var(--step--1); font-weight: 500; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ultramarine); color: var(--on-accent);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; min-height: 52px; white-space: nowrap;
}
.button:hover { background: var(--ultramarine-deep); color: var(--on-accent); }
.small-note { font-family: var(--display); font-size: var(--step--1); color: var(--muted); }

/* Hero */
.hero { overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 7vw, 6rem); }
.hero-text { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.hero h1 { font-size: var(--step-3); }
.hero .sub { font-size: var(--step-1); line-height: 1.35; }
.hero .painter { color: var(--muted); max-width: 28rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.1rem; margin-top: 0.4rem; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
}

/* Hung screenshots */
.hung { position: relative; min-width: 0; }
.browser {
  background: var(--frame); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(27, 28, 33, 0.06), 0 18px 40px -18px rgba(27, 28, 33, 0.28);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.browser-bar em { font-style: normal; font-family: var(--display); font-size: 0.72rem; color: var(--muted); margin-left: 10px; }
.phone {
  background: var(--ink); border-radius: 30px; padding: 9px; width: min(220px, 42%);
  box-shadow: 0 22px 44px -16px rgba(27, 28, 33, 0.4);
}
.phone .screen { border-radius: 22px; overflow: hidden; aspect-ratio: 390 / 844; background: var(--shot); }
.shot { background: var(--shot); aspect-ratio: 16 / 10; }
.phone .shot { aspect-ratio: auto; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shot.pending { display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: var(--step--1); color: var(--muted); padding: 1rem; }
.hero .hung .phone { position: absolute; right: -4%; bottom: -12%; }
@media (max-width: 860px) {
  .hero .hung { margin-bottom: 2.5rem; }
  .hero .hung .phone { right: 2%; bottom: -10%; width: 36%; }
}

/* Why I built it, and the other prose sections */
.prose-section .wrap { padding-block: clamp(3.5rem, 8vw, 6rem); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem; border-top: 1px solid var(--rule); }
.prose-section h2 { font-size: var(--step-2); }
.prose-section .copy { display: flex; flex-direction: column; gap: 1.1rem; max-width: var(--measure); }
.why .copy { font-size: 1.3rem; line-height: 1.55; }
.why .wants { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 0.35rem; }
.why .wants li::marker { color: var(--ultramarine); }
.why .copy a { font-family: var(--display); font-size: 1.05rem; font-weight: 500; }
@media (max-width: 860px) { .prose-section .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Features: each one hung on the wall with its label */
.features .wrap { display: flex; flex-direction: column; gap: clamp(4rem, 9vw, 8rem); padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem); }
.feature { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: end; }
.feature.is-phone .hung { display: flex; justify-content: center; gap: 1.5rem; background: var(--frame); border-radius: 10px; padding: clamp(1.5rem, 4vw, 3rem) 1rem; }
.feature.is-phone .phone { width: min(250px, 60%); }
.label { border-top: 1px solid var(--ink); padding-top: 0.9rem; display: flex; flex-direction: column; gap: 0.55rem; max-width: 22rem; }
.label h3 { font-size: var(--step-1); letter-spacing: -0.015em; line-height: 1.15; }
.label .medium { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.label p { font-size: 1.1rem; line-height: 1.5; }
@media (max-width: 860px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .label { max-width: var(--measure); }
}

/* Blazing fast: the first ultramarine band */
.fast { background: var(--ultramarine); color: var(--on-accent); }
.fast .wrap { padding-block: clamp(3.5rem, 8vw, 6.5rem); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2rem; align-items: center; }
.fast .figure { font-family: var(--display); font-weight: 700; font-size: clamp(4.5rem, 3rem + 8vw, 10rem); letter-spacing: -0.05em; line-height: 0.9; color: var(--on-accent); }
.fast .figure small { display: block; font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; color: var(--band-muted); margin-top: 1rem; }
.fast .copy { display: flex; flex-direction: column; gap: 1rem; max-width: var(--measure); }
.fast h2 { font-size: var(--step-2); }
@media (max-width: 860px) { .fast .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Price and questions */
.price-figure { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 2rem + 4vw, 5rem); letter-spacing: -0.04em; line-height: 1; }
.price-figure span { font-size: var(--step-1); font-weight: 500; letter-spacing: -0.01em; color: var(--muted); }
.moving { font-style: italic; color: var(--muted); }
dl.faq { margin: 0; display: flex; flex-direction: column; gap: 1.6rem; }
dl.faq dt { font-family: var(--display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.35rem; }
dl.faq dd { margin: 0; }

/* Closing: the second ultramarine band */
.closing { background: var(--ultramarine); color: var(--on-accent); }
.closing .wrap { padding-block: clamp(4rem, 9vw, 7rem); display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.closing h2 { font-size: var(--step-3); }
.closing .button { background: var(--frame); color: var(--ultramarine-deep); }
.closing .button:hover { background: var(--ultramarine-wash); color: var(--ultramarine-deep); }

/* Footer */
.site-foot .wrap { padding-block: 2rem 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-family: var(--display); font-size: var(--step--1); color: var(--muted); }
.site-foot a { color: var(--muted); }
.site-foot.ruled .wrap { border-top: 1px solid var(--rule); }

/* Join, thanks and privacy pages */
.narrow .wrap { padding-block: clamp(3rem, 9vw, 7rem); }
.narrow-card { max-width: 32rem; display: flex; flex-direction: column; gap: 1.3rem; }
.narrow-card.reading { max-width: var(--measure); }
.narrow h1 { font-size: var(--step-3); }
.narrow h2 { font-size: var(--step-1); margin-top: 0.8rem; }
.join-form { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.join-form input[type="email"] {
  flex: 1 1 15rem; min-width: 0; min-height: 52px; padding: 0.8rem 1.1rem; font: inherit; font-size: 1.1rem;
  border: 1px solid var(--field-border); border-radius: 999px; background: var(--frame); color: var(--ink);
}
.join-form input[type="email"]:focus { outline: 2px solid var(--ultramarine); outline-offset: 1px; border-color: var(--ultramarine); }
.back { font-family: var(--display); font-size: var(--step--1); font-weight: 500; }

@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 0.15s ease; }
}
