/* ==========================================================================
   The Tinker Project — Coming Soon
   --------------------------------------------------------------------------
   Four colors, one typeface, no decoration that isn't doing a job.
   Change the values in :root and the whole page follows.
   ========================================================================== */

:root {
  /* ---- Palette ---- */
  --paper:  #FBFAF7;  /* warm off-white background                        */
  --ink:    #1C1B19;  /* headings and body text (16:1 on paper)           */
  --muted:  #6E6A63;  /* secondary text (5.1:1 on paper)                  */
  --line:   #E4E0D8;  /* hairline borders                                 */

  /* Two shades of one orange, and they are not interchangeable.
     --brand is the logo colour, used only for the mark. At 3.9:1 on paper it
     clears the 3:1 bar for graphics but NOT the 4.5:1 bar for text.
     --accent is the same hue darkened to 5.0:1, so links stay readable.
     If you swap in the exact brand hex, put it on --brand and darken --accent
     to match rather than using one value for both. */
  --brand:  #E04A24;
  --accent: #C0401D;

  /* ---- Type ---- */
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* ---- Rhythm ---- */
  --gap:    clamp(2.5rem, 8vw, 3.75rem);  /* space between sections */
  --radius: 6px;
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, p { margin: 0; overflow-wrap: break-word; }

svg { display: block; }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: 0;
  translate: 0 -120%;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus-visible { translate: 0 0; }

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

/* ---------- Layout ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  padding: clamp(3rem, 12vh, 6rem) 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;  /* little content here, so let it sit optically centered */
  gap: var(--gap);
  text-align: center;
  align-items: center;
}

/* ---------- Hero ---------- */
.hero { display: grid; gap: 1rem; justify-items: center; }

.mark {
  width: clamp(64px, 16vw, 78px);
  height: auto;
  color: var(--brand);  /* the mark paints with currentColor */
  margin-bottom: .75rem;
}

.hero__title {
  font-size: clamp(2.125rem, 7vw, 2.875rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__tagline {
  font-size: 1.125rem;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Sections ---------- */
.block {
  width: 100%;
  display: grid;
  gap: .5rem;
  justify-items: center;
  padding-top: var(--gap);
  border-top: 1px solid var(--line);
}

/* Small uppercase label. The only place letter-spacing is used. */
.label {
  margin-bottom: .25rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.block__title {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* ---------- Contact ---------- */
.contact { gap: .3rem; }

.link {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.link:hover { color: #9E3517; }

.link--social {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.link__icon { width: 1.05rem; height: 1.05rem; }

/* ---------- Footer ---------- */
.footer {
  display: grid;
  gap: .15rem;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
}

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