/* Story Safe: direct, centred, system type, leather colours, one cognac action. */

:root {
  --text: #2a1d16;
  --text-secondary: #74655a;
  --text-tertiary: #9a8878;
  --bg: #fdfbf8;
  --bg-alt: #f3ebe1;
  --sand: #eadfd0;
  --tile: #fffdfa;
  --border: #ddd2c5;
  --accent: #9a4a1c; /* cognac */
  --accent-hover: #833d15;
  --focus-ring: rgb(154 74 28 / 0.25);
  --link: #9a4a1c;
  --error: #c4261d;
  --saddle: #a0703f;
  --tan: #c8a27a;
  --dark: #2b1b12; /* espresso leather */
  --on-dark: #f5eee5;
  /* Faint warm grain for the leather surfaces. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .92 0 0 0 0 .82 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(5rem, 11vw, 10rem);
  --nav-height: 64px;
  --radius-tile: 28px;
  --radius-field: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.016em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
p,
figure {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.wrap {
  width: 100%;
  max-width: calc(1024px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------- button */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 400;
  letter-spacing: -0.016em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.button--small {
  min-height: 28px;
  padding: 4px 12px;
  font-size: 12px;
  letter-spacing: -0.01em;
}

.button--large {
  min-height: 52px;
  padding: 14px 28px;
  font-size: 17px;
}

.button--block {
  width: 100%;
}

.button[disabled] {
  opacity: 0.55;
  cursor: progress;
}

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-height);
  background: rgb(253 251 248 / 0.8);
  border-bottom: 1px solid rgb(42 29 22 / 0.08);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo img,
.footer img {
  display: block;
}

/* --------------------------------------------------------------- hero */

.hero {
  padding-block: clamp(4rem, 9vw, 7.5rem);
  background: var(--sand);
}

.hero__headline {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero__headline span {
  display: block;
}

/* The quieter second line: an invitation, not a command. */
.hero__coda {
  margin-top: 0.4em;
  color: var(--text-secondary);
  font-size: 0.6em;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.012em;
}

/* ---------------------------------------------------------- photographs */

.photo {
  position: relative;
}

.photo img,
.photo__placeholder {
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 3 / 2);
  object-fit: cover;
  background-color: var(--dark);
}

.photo--hero {
  --ratio: 4 / 5;
}

.photo--tile {
  --ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: var(--radius-tile);
}

.photo--wide {
  --ratio: 4 / 3;
}

@media (min-width: 48rem) {
  .photo--hero {
    --ratio: 16 / 9;
  }

  .photo--tile {
    --ratio: 2 / 1;
  }

  .photo--wide {
    --ratio: 21 / 9;
  }
}

.photo__placeholder {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  background-image:
    var(--grain),
    radial-gradient(ellipse 70% 60% at 30% 25%, rgb(200 162 122 / 0.16), transparent 70%),
    linear-gradient(180deg, #4a2e1d 0%, var(--dark) 100%);
  color: var(--on-dark);
}

.photo__label {
  color: var(--tan);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.photo__brief {
  max-width: 28em;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* --------------------------------------------------------- background */

.background {
  padding-block: var(--section);
}

/* Long-form reading text, shared by Background and Price. */
.story {
  max-width: 40rem;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-size: clamp(1.1875rem, 1.05rem + 0.5vw, 1.4375rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.story p + p {
  margin-top: 1.25em;
}

.background .button {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* ------------------------------------------------------------ process */

.section-headline {
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-subhead {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.process {
  padding-block: var(--section);
  background: var(--bg-alt);
}

.process .section-headline {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-tile);
  background: var(--tile);
  color: var(--text-secondary);
  font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: -0.012em;
}

.steps li::before {
  content: counter(step);
  color: var(--saddle);
  font-size: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.steps strong {
  color: var(--text);
  font-weight: inherit;
}

@media (min-width: 40rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps li:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .steps li {
    grid-column: span 2;
  }

  .steps li:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* ------------------------------------------------------------ payment */

.payment {
  background-color: var(--dark);
  background-image: var(--grain);
  color: var(--on-dark);
}

.payment .photo__placeholder {
  background-image:
    var(--grain),
    radial-gradient(ellipse 70% 60% at 30% 25%, rgb(200 162 122 / 0.14), transparent 70%),
    linear-gradient(180deg, #3d2618 0%, var(--dark) 100%);
}

.payment__body {
  padding-block: var(--section);
}

/* ------------------------------------------------------------ contact */

.contact {
  padding-block: var(--section);
}

.contact .section-subhead {
  max-width: 24em;
}

.form {
  display: grid;
  gap: 1.5rem;
  max-width: 34rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field > label {
  display: block;
  margin-bottom: 0.5rem;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.field__optional {
  margin-left: 0.4em;
  color: var(--text-tertiary);
  font-weight: 400;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 17px;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 140px;
  padding-block: 14px;
  resize: vertical;
}

.field select {
  padding-right: 44px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2374655a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
  cursor: pointer;
}

/* The "Choose one" prompt reads as a placeholder; the options themselves stay dark. */
.field select:has(option[value=""]:checked) {
  color: var(--text-secondary);
}

.field select option {
  color: var(--text);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--error);
}

.field.is-invalid > label {
  color: var(--error);
}

/* Honeypot: hidden from people, visible to naive bots. */
.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .button {
  margin-top: 0.5rem;
}

.form__status {
  color: var(--text-secondary);
}

.form__status:empty {
  display: none;
}

.form__status[data-tone="error"] {
  color: var(--error);
}

.form__small {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* reCAPTCHA v3's floating badge is replaced by the notice above, as Google allows. */
.grecaptcha-badge {
  visibility: hidden;
}

.thanks {
  max-width: 34rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius-tile);
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.thanks:focus {
  outline: none;
}

.thanks__title {
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.022em;
}

/* ------------------------------------------------------------- footer */

.footer {
  padding-block: 1.25rem 2rem;
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------- 404 */

.lost {
  padding-block: clamp(6rem, 18vw, 14rem);
}

.lost .hero__headline {
  margin-bottom: 2.5rem;
}
