@font-face { font-family: 'Comfortaa'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/comfortaa-latin.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin.woff2) format('woff2'); }
/* Fonts: Comfortaa and Inter, SIL Open Font License 1.1, hosted with the site (no third-party requests). */
/* D6 scheme in light mode: white, light greys, black ink, one red accent. Comfortaa for display, Inter for text. */
:root {
  --bg: #FFFFFF;
  --panel: #F5F5F7;
  --field: #FFFFFF;
  --line: #E4E4E8;
  --line-strong: #C9C9CF;
  --ink: #0B0B0C;
  --muted: #55555C;
  --faint: #6B6B72;
  --accent: #E5333D;
  --display: 'Comfortaa', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); font-weight: 500; }
a:hover { color: var(--muted); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header: B5 icon + D6 wordmark */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 37px; line-height: 1; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; margin-top: -4px; }
.brand-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin: 0 4px 0 3px; }
.brand-labs { color: var(--muted); font-weight: 600; }
nav { display: flex; gap: 4px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); background: var(--panel); }

/* Main */
.hero { flex: 1 0 auto; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero { isolation: isolate; }
#bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(160deg, rgba(0,0,0,.35) 10%, #000 85%); mask-image: linear-gradient(160deg, rgba(0,0,0,.35) 10%, #000 85%); }
.hero::before { display: none; content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, #000 1.2px, transparent 1.8px); background-size: 16px 16px; opacity: 0.12; -webkit-mask-image: linear-gradient(160deg, transparent 20%, #000 95%); mask-image: linear-gradient(160deg, transparent 20%, #000 95%); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 56px; padding-top: 24px; padding-bottom: 24px; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 5vw, 56px); }
.headline { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.15; max-width: 20ch; }
h2 { font-size: clamp(24px, 3vw, 30px); }
.lead { margin: 20px 0 0; font-size: 19px; color: var(--muted); max-width: 520px; }
.hero-mark { margin-top: 48px; }
.hero-mark svg { width: min(160px, 45%); height: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 22px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; }
.btn-primary { background: #0B0B0C; color: #FFFFFF; }
.btn-primary:hover { background: #2A2A2E; color: #FFFFFF; }

/* Contact card */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px; }
.card-intro { margin: 4px 0 16px; color: var(--muted); }
.field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
.field label { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--ink); background: var(--field); border: 1.5px solid var(--line-strong); border-radius: 12px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: var(--ink); }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.turnstile { margin: 0; }
.turnstile .cf-turnstile:not(:empty) { margin: 2px 0 12px; }
.turnstile-ph { margin: 2px 0 12px; min-height: 40px; padding: 4px 12px; text-align: center; display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line-strong); border-radius: 12px; font-size: 13px; color: var(--faint); background: var(--field); }
.turnstile-ph[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.card .btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; }
.card .btn:disabled { opacity: 0.6; cursor: wait; }
.form-status:empty { display: none; }
.form-status { margin: 6px 0 0; min-height: 1.4em; font-size: 15px; color: var(--muted); }
.form-status.ok { color: #166534; }
.form-status.error { color: var(--accent); }
.fine { margin: 10px 0 0; font-size: 13px; color: var(--faint); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--faint); padding: 14px 0; font-size: 12.5px; line-height: 1.5; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 24px; row-gap: 2px; }
.legal { margin: 0; max-width: 820px; }
.todo { background: #FFF1C2; color: #6B4E00; padding: 0 4px; border-radius: 4px; }

/* Simple content pages */
.page { flex: 1 0 auto; padding: 24px 0 64px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 0 8px -4px; padding: 0 8px 0 4px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.back:hover { color: var(--ink); background: var(--panel); }
.page .prose { max-width: 720px; }
.prose p { margin: 0 0 16px; font-size: 16px; color: var(--muted); }
.page h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 24px; }
.page h2 { font-size: 20px; margin: 32px 0 8px; }
.muted { font-size: 14px !important; color: var(--faint) !important; }

@media (max-width: 760px) {
  .hero { min-height: 0; align-items: center; }
  #bg { -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,.4) 60%); mask-image: linear-gradient(180deg, #000 30%, rgba(0,0,0,.4) 60%); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; padding-bottom: 16px; }
  .headline { font-size: 22px; max-width: none; }
  .page h1 { font-size: 32px; }
  .card h2 { font-size: 22px; }
  .card-intro { display: none; }
  .card h2 { margin-bottom: 12px; }
  .field { margin-bottom: 10px; }
  .field textarea { min-height: 64px; }
  /* footer: clear of the iPhone home bar, links easy to tap */
  .site-footer { font-size: 12px; padding: 10px 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .footer-inner { row-gap: 6px; }
  .footer-inner .legal:last-child { order: -1; }
  .site-footer a { display: inline-block; padding: 10px 6px; margin: -10px -6px; }
  .lead { font-size: 16px; margin-top: 0; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-inner { min-height: 56px; }
  .hero-mark { display: none; }
  .card { padding: 18px 18px 16px; }
  .brand-word { font-size: 31px; }
  .brand svg { width: 27px; height: 27px; }
}

/* Short laptop screens: shrink the heading so the page still fits without scrolling */
@media (min-width: 761px) and (max-height: 720px) {
  .headline { font-size: 36px; }
  .field textarea { min-height: 64px; }
  .card-intro { display: none; }
  .card h2 { margin-bottom: 12px; }
}
@media (max-width: 760px) and (max-height: 640px) {
  .headline { font-size: 19px; }
  .field textarea { min-height: 48px; }
  .card h2 { font-size: 19px; margin-bottom: 8px; }
}
