/* ==========================================================================
   Venqaro — site styles

   Type:   Newsreader (headings) and Hanken Grotesk (text), self-hosted,
           both under the SIL Open Font License 1.1 (see /fonts).
   Grid:   12 columns. Section labels sit in columns 1–4; all running
           content hangs from one axis at column 5 (--content).
   Colour: warm paper, near-black ink, one vermilion accent used sparingly.
   ========================================================================== */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f3f0e9;
  --ink: #161513;
  --text: #2b2925;
  --muted: #6b675f;
  --rule: rgba(22, 21, 19, 0.16);
  --accent: #b5401d;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1360px;
  --margin: clamp(20px, 4.4vw, 64px);
  --gutter: clamp(16px, 1.9vw, 28px);
  --content: 5;

  color-scheme: light;
}

/* ---- Base ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

svg {
  display: block;
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

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

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---- Grid ---------------------------------------------------------------- */

.wrap {
  width: min(100% - 2 * var(--margin), var(--wrap));
  margin-inline: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

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

.site-header {
  padding-block: clamp(20px, 2.4vw, 34px);
}

/* Unlike the page content, the header bar spans the full viewport width.
   --margin resolves to 20px on phones and 48–64px on desktop. */
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 32px;
  padding-inline: var(--margin);
}

.wordmark {
  grid-column: 1 / span 4;
  justify-self: start;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.site-footer a {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s ease;
}

.site-nav a:hover,
.site-footer a:hover {
  text-decoration-color: var(--accent);
}

/* ---- Buttons ------------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 22px 0 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

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

.button .arrow {
  transition: transform 0.2s ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

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

.hero {
  padding-block: clamp(48px, 7.5vw, 120px) clamp(64px, 7.5vw, 112px);
}

.hero .grid {
  align-items: baseline;
}

.hero-title {
  grid-column: 1 / span 10;
  max-width: 13em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.75rem, 1.3rem + 4.8vw, 5.75rem);
  line-height: 1.02;
  letter-spacing: -0.022em;
}

/* Descriptor in the label column, level with the first line of the lede. */
.hero-label {
  margin-top: clamp(32px, 4.5vw, 64px);
}

.hero-aside {
  grid-column: var(--content) / span 6;
  margin-top: clamp(32px, 4.5vw, 64px);
}

.lede {
  max-width: 30em;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.02rem + 0.35vw, 1.3125rem);
  line-height: 1.5;
}

.hero .button {
  margin-top: 32px;
}

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

.section {
  padding-bottom: clamp(56px, 7vw, 100px);
}

.section > .grid {
  align-items: baseline;
  padding-top: clamp(20px, 2.2vw, 30px);
  border-top: 1px solid var(--rule);
}

.label {
  grid-column: 1 / span 4;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.content {
  grid-column: var(--content) / -1;
}

.heading {
  max-width: 16em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.875rem, 1.4rem + 1.45vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

/* About: two text columns that sit exactly on the page grid. */
.text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
  margin-top: clamp(28px, 3.2vw, 48px);
}

.text-columns p {
  max-width: 30em;
}

/* Approach: a typographic list rather than cards. */
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: baseline;
  padding-block: clamp(20px, 2.4vw, 32px);
}

.step:first-child {
  padding-top: 0;
}

.step:last-child {
  padding-bottom: 0;
}

.step + .step {
  border-top: 1px solid var(--rule);
}

.step-title {
  display: flex;
  align-items: baseline;
  grid-column: 1 / span 4;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.15;
}

.step-number {
  min-width: 2.75rem;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0.02em;
}

.step-text {
  grid-column: 5 / span 4;
  max-width: 30em;
}

/* Founder */
.statement {
  max-width: 25em;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.2rem + 0.55vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -0.008em;
}

.founder .statement + p {
  max-width: 30em;
  margin-top: clamp(20px, 2.2vw, 28px);
}

/* Contact */
.contact-text {
  max-width: 30em;
  margin-top: clamp(20px, 2.2vw, 28px);
}

.contact-email {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 18px;
  margin-top: clamp(32px, 3.6vw, 48px);
}

.contact-email a {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration-line: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: text-decoration-color 0.2s ease;
}

.contact-email a:hover {
  text-decoration-color: var(--accent);
}

.copy {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.copy:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.copy.is-copied {
  color: var(--accent);
}

.section-contact .button {
  margin-top: clamp(28px, 3vw, 40px);
}

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

.site-footer .grid {
  align-items: baseline;
  padding-block: 24px 40px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .wordmark {
  font-size: 0.8125rem;
}

.footer-tagline {
  grid-column: var(--content) / span 4;
}

.footer-copy {
  grid-column: span 4 / -1;
  text-align: right;
}

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

.notfound {
  padding-block: clamp(48px, 10vw, 160px);
}

.notfound .hero-title {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
}

/* ---- Responsive ---------------------------------------------------------- */

@media (max-width: 1023px) {
  :root {
    --content: 4;
  }

  .label,
  .wordmark {
    grid-column: 1 / span 3;
  }

  .hero-title {
    grid-column: 1 / -1;
  }

  .hero-aside {
    grid-column: var(--content) / -1;
  }

  .text-columns {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
  }

  .step {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .step-title,
  .step-text {
    grid-column: 1;
  }

  /* Hang the description under the title, clear of the numeral. */
  .step-text {
    max-width: 34em;
    padding-left: 2.75rem;
  }

  .footer-tagline {
    grid-column: var(--content) / span 5;
  }
}

@media (max-width: 719px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid > * {
    grid-column: 1 / -1;
  }

  .site-nav a {
    font-size: 0.875rem;
  }

  .section > .grid {
    align-items: start;
  }

  .hero-label {
    margin-top: 28px;
  }

  .hero-aside {
    margin-top: 14px;
  }

  .label {
    margin-bottom: 18px;
  }

  .site-footer .grid {
    row-gap: 6px;
  }

  .footer-copy {
    text-align: left;
  }
}

/* Smallest phones (320px): tighten the header spacing so the nav stays on one line. */
@media (max-width: 359px) {
  .site-header-inner {
    column-gap: 12px;
  }

  .site-nav ul {
    gap: 14px;
  }
}

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