/* Shared by the homepage (index.html) and How it works (how.html). */
:root {
  --cream: #F7F4EF;
  --paper: #EBE8DE;
  --ink: #1C1A17;
  --ink-2: #4A4740;
  --dim: #5A5650;
  --rule: rgba(28,26,23,0.14);
  --rule-strong: rgba(28,26,23,0.26);
  --max: 1180px;
  --gutter: 24px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: 'DM Sans', -apple-system, 'Helvetica Neue', sans-serif; font-size: 17px; line-height: 1.55; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
h1, h2 { font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 96px 0; }

.cta { display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: 16px; text-decoration: none; transition: background .2s ease; }
.cta:hover { background: #3A3733; }

/* Header: logo, How it works, fit spec, Instagram. */
.head { position: sticky; top: 0; z-index: 20; background: rgba(247,244,239,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.head .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.head .logo img { height: 16px; width: auto; }
.head nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 500; }
.head nav a { text-decoration: none; }
.head nav a:hover { opacity: 0.7; }
.head nav a[aria-current] { opacity: 0.55; }

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 26px; padding-bottom: 30px; font-size: 14px; color: var(--dim); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .head .wrap { padding: 0 16px; height: 60px; }
  .head .logo img { height: 13px; }
  .head nav { gap: 14px; font-size: 13px; }
  /* Footer on a phone: links in a row that wraps from the left, the
     copyright on its own line under them. */
  footer .wrap { justify-content: flex-start; gap: 10px 20px; padding: 22px var(--gutter) 26px; font-size: 13px; }
  footer span { order: 1; flex-basis: 100%; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
