/* ---- Fonts (self-hosted, SIL Open Font License) ---- */
@font-face {
  font-family: 'Tenor Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/tenor-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Tenor Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/tenor-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Pontano Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/pontano-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Pontano Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/pontano-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                 U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ----
   Type scale mirrors Squarespace's fluid formula: 16px + N*vw, clamped.  */
:root {
  --bg:   #fbfbfb;
  --fg:   #342e2e;
  --rule: #342e2e;

  --display: 'Tenor Sans', 'Optima', 'Palatino Linotype', Georgia, serif;
  --body:    'Pontano Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --fs-wordmark: clamp(21.4px,  0.60vw + 16px, 28px);
  --fs-display:  clamp(28.96px, 1.44vw + 16px, 44px);
  --fs-h2:       clamp(35.44px, 2.16vw + 16px, 58px);
  --fs-h4:       clamp(22.48px, 0.72vw + 16px, 30px);
  --fs-body:     14.4px;
  --fs-label:    16px;

  --gutter: 24px;
  --maxw:   1600px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---- Header ---- */
.masthead { padding: 22px 0; }
.wordmark {
  font-size: var(--fs-wordmark);
  line-height: 1.2;
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

/* ---- Hero ---- */
.hero { padding: 36px 0 40px; }
.hero h1 { font-size: var(--fs-display); line-height: 1.142; }

/* ---- Projects ---- */
.projects {
  padding: 56px 0 41px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  align-items: start;
}
.projects > h2 { font-size: var(--fs-h2); line-height: 1.114; }
.project h3 { font-size: var(--fs-h4); line-height: 1.171; }
.project p { margin: 33px 0 0; max-width: 46ch; }
.project .status { margin-top: 16px; }

/* ---- Labelled rows (About / Contact) ---- */
.row {
  border-top: 1px solid var(--rule);
  padding: 23px 0 83px;
  display: grid;
  grid-template-columns: minmax(120px, 16.8%) minmax(0, 1fr);
  align-items: start;
}
.row:last-of-type { padding-bottom: 61px; }
.row > h2.label {
  font-family: var(--body);
  font-size: var(--fs-label);
  line-height: 1.5;
  letter-spacing: normal;
}
.row p, .row .lead { font-size: var(--fs-display); line-height: 1.142; letter-spacing: -0.02em; font-family: var(--display); margin: 0; }

.email {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--display);
  font-size: var(--fs-display);
  line-height: 1.142;
  letter-spacing: -0.02em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.1em;
  text-decoration-thickness: from-font;
}
.email:hover { text-decoration-thickness: 2px; }

/* ---- Footer ---- */
footer { padding: 0 0 74px; }
footer p { margin: 0; font-size: var(--fs-label); }

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

/* ---- Narrow screens ---- */
@media (max-width: 900px) {
  .projects {
    grid-template-columns: 1fr;
    row-gap: 44px;
    padding: 36px 0 40px;
  }
  .row {
    grid-template-columns: 1fr;
    row-gap: 14px;
    padding: 24px 0 52px;
  }
  .row:last-of-type { padding-bottom: 44px; }
  .hero { padding: 28px 0 28px; }
}

/* ============================================================
   Content pages (privacy, support, 404)
   ============================================================ */

.page-head { padding: 36px 0 8px; }
.page-head h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: var(--fs-h2);
  line-height: 1.114;
  margin: 0;
}
.page-head .meta {
  margin: 14px 0 0;
  font-size: var(--fs-label);
  opacity: 0.62;
}

.doc {
  border-top: 1px solid var(--rule);
  margin-top: 30px;
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: minmax(120px, 16.8%) minmax(0, 1fr);
  align-items: start;
}
.doc > .doc-nav { position: sticky; top: 28px; }
.doc-nav ol { list-style: none; margin: 0; padding: 0; font-size: var(--fs-label); }
.doc-nav li { margin-bottom: 7px; }
.doc-nav a { color: inherit; text-decoration: none; opacity: 0.62; }
.doc-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 0.15em; }

.doc-body { max-width: 68ch; }
.doc-body > section + section { margin-top: 40px; }
.doc-body h2 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: var(--fs-h4);
  line-height: 1.171;
  margin: 0 0 14px;
}
.doc-body p, .doc-body li { font-size: var(--fs-label); line-height: 1.62; margin: 0 0 14px; }
.doc-body ul { margin: 0 0 14px; padding-left: 1.1em; }
.doc-body li { margin-bottom: 8px; }
.doc-body a { color: inherit; text-decoration: underline; text-underline-offset: 0.14em; }
.doc-body strong { font-weight: 400; border-bottom: 1px solid var(--rule); }
.lead-note {
  border-left: 2px solid var(--rule);
  padding: 2px 0 2px 18px;
  margin: 0 0 34px;
}

/* Footer navigation shared by every page */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  font-size: var(--fs-label);
}
.footer-nav a { color: inherit; text-decoration: none; opacity: 0.62; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { opacity: 1; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 0.15em; }

@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; row-gap: 26px; padding: 28px 0 56px; }
  .doc > .doc-nav { position: static; }
}

/* ============================================================
   App product pages (/modeliste/, /regroove/, /podback/)
   ============================================================ */

.app-intro { max-width: 62ch; }
.app-intro p {
  font-family: var(--display);
  font-size: var(--fs-display);
  line-height: 1.142;
  letter-spacing: -0.02em;
  margin: 26px 0 0;
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0 8px;
  padding: 0;
  list-style: none;
}
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
}
.shots figcaption {
  margin-top: 10px;
  font-size: var(--fs-label);
  opacity: 0.62;
}

.feature-rows { margin-top: 20px; }

/* Secondary, body-sized copy inside a labelled row */
.row .sub {
  font-family: var(--body);
  font-size: var(--fs-label);
  line-height: 1.62;
  letter-spacing: normal;
  margin: 18px 0 0;
  max-width: 68ch;
}

/* Project titles may link to their product page without reading as links */
.project h3 a { color: inherit; text-decoration: none; }

.project .more {
  display: inline-block;
  margin-top: 14px;
  color: inherit;
  font-size: var(--fs-label);
  text-underline-offset: 0.14em;
}

@media (max-width: 900px) {
  .shots { grid-template-columns: 1fr; gap: 34px; }
}

/* Wide (desktop-app) screenshots: one per row, full measure */
.shots--wide { grid-template-columns: 1fr; gap: 42px; margin-top: 44px; }
.shots--wide img { border: 1px solid var(--rule); }
.shots--wide figcaption { max-width: 72ch; }
