/* Kupy Labs website: one stylesheet.
   Change colours, font and spacing here, in the variables below. */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/libre-franklin-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/libre-franklin-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/libre-franklin-latin-700.woff2") format("woff2");
}

:root {
  /* Colours, light mode */
  --bg: #FFFFFF;
  --soft: #F4F5F6;
  --text: #16181A;
  --muted: #565C63;
  --line: #E2E5E8;
  --frame: #16181A;            /* phone frame */
  --shadow: rgba(0, 0, 0, 0.18);

  /* Flok's own colours (used only for Flok). A future app adds its own set the same way. */
  --flok-soft: #E7F3EE;
  --flok-text: #1A6B57;
  --flok-button: #1F7A64;
  --flok-on-button: #FFFFFF;

  /* Font */
  --font: "Libre Franklin", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing and sizes */
  --page-width: 70rem;         /* 1120 px */
  --reading-width: 42rem;      /* privacy policy */
  --gutter: 1.5rem;
  --space-section: clamp(3rem, 8vw, 5.5rem);
  --space-gap: clamp(2rem, 5vw, 3.5rem);
  --radius-panel: 1.25rem;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --soft: #1B1E21;
    --text: #ECEEF0;
    --muted: #A6ADB4;
    --line: #2B2F34;
    --frame: #000000;
    --shadow: rgba(0, 0, 0, 0.5);

    --flok-soft: #15302A;
    --flok-text: #6FD1B0;
    --flok-button: #3DB38F;
    --flok-on-button: #0E1412;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;   /* 17 px */
  line-height: 1.6;
}

img, svg { max-width: 100%; }

a { color: inherit; }
a:hover { opacity: 0.75; }
a:focus-visible { outline: 3px solid var(--muted); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; }

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

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus { left: var(--gutter); top: 0.5rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }

/* ---------- Header and footer ---------- */
.site-header .wrap {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
  color: var(--muted);
}
.menu a { text-decoration: none; padding: 0.5rem 0; }
.menu a[aria-current="page"] { color: var(--text); font-weight: 600; }

.site-footer { border-top: 1px solid var(--line); margin-top: var(--space-section); }
.site-footer .wrap {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  font-size: 1rem;
  color: var(--muted);
}

/* ---------- Type ---------- */
.eyebrow {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-hero {
  font-size: clamp(2.25rem, 7.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.h-section {
  font-size: clamp(1.75rem, 4.5vw, 2.25rem);
  line-height: 1.15;
}
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.strong-link { font-weight: 600; }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.button-flok { background: var(--flok-button); color: var(--flok-on-button); }

/* ---------- Home ---------- */
.hero {
  padding-top: clamp(3rem, 9vw, 6rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero .h-hero { max-width: 51rem; }
.hero-drawing { width: 100%; max-width: 40rem; height: auto; margin-top: 2rem; }

.band-flok { background: var(--flok-soft); }
.band-flok .wrap {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-gap);
  align-items: center;
}
.band-text { flex: 1 1 22rem; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; }
.band-text .h-section { font-size: clamp(2rem, 6vw, 2.75rem); }
.band-shot { flex: 0 1 19rem; min-width: 0; display: flex; justify-content: center; }
.band-text .flok-tagline { font-size: 1.375rem; font-weight: 600; line-height: 1.35; color: var(--flok-text); }
.app-icon { border-radius: 22%; display: block; }

.next { padding-top: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.next strong { color: var(--text); font-weight: 600; }

.made-by {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.made-by .text { flex: 1 1 24rem; min-width: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.made-by .big { font-size: clamp(1.25rem, 3.5vw, 1.5rem); font-weight: 600; line-height: 1.35; }
.made-by .links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 0.25rem; font-weight: 600; }
.person-drawing { width: 7.5rem; height: 7.5rem; flex: 0 0 auto; }

.contact-line { color: var(--muted); }
.contact-line a { color: var(--text); font-weight: 600; }

/* ---------- Drawings (line art) ---------- */
.drawing {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text);
}
.drawing .paper { fill: var(--bg); }
.drawing .soft { fill: var(--soft); stroke: var(--line); }
.drawing .arrow { stroke: var(--muted); }
.drawing .flok-album { fill: var(--flok-soft); stroke: var(--flok-button); }
.drawing .flok-line { stroke: var(--flok-button); }

/* ---------- Phone screenshots ---------- */
.phone {
  display: block;
  width: min(17.5rem, 100%);
  height: auto;
  border: 10px solid var(--frame);
  border-radius: 34px;
  box-shadow: 0 24px 60px var(--shadow);
}
.phone-crop {
  width: min(20rem, 100%);
  height: 26.25rem;
  object-fit: cover;
  object-position: top;
  border: 12px solid var(--frame);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  box-shadow: none;
}

/* ---------- Flok page ---------- */
.flok-hero { background: var(--flok-soft); }
.flok-hero .wrap {
  padding-top: clamp(3rem, 8vw, 5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}
.flok-hero .tagline {
  max-width: 42.5rem;
  font-size: clamp(1.5rem, 4.5vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--flok-text);
}
.flok-hero .lead { max-width: 37.5rem; }
.flok-hero .phone-crop { margin-top: 2.5rem; }

.feature {
  padding-top: var(--space-section);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-gap);
  align-items: center;
}
.feature .text { flex: 1 1 24rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.feature .shot { flex: 0 1 20rem; min-width: 0; display: flex; justify-content: center; }
.feature p.lead { font-size: 1.125rem; }

.kinds {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.kinds li {
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--soft);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}
.kinds strong { display: block; margin-bottom: 0.35rem; color: var(--text); font-weight: 600; }
.keeps-line { font-weight: 600; }

.panel-wrap { padding-top: var(--space-section); }
.panel {
  padding: clamp(1.5rem, 5vw, 3rem);
  border-radius: var(--radius-panel);
  background: var(--flok-soft);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.panel h2 { color: var(--text); }
.panel p { max-width: 46rem; color: var(--text); font-size: 1.125rem; }

.questions { padding-top: var(--space-section); }
.questions h2 { text-align: center; margin-bottom: 2.5rem; }
.qa {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem var(--space-gap);
}
.qa h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 0.4rem; }
.qa p { color: var(--muted); }
.privacy-link { margin-top: 3rem; text-align: center; font-weight: 600; }

/* ---------- Simple pages (Projects, About, 404) ---------- */
.page-head { padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: 2rem; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 3rem; max-width: 46rem; margin: 0 auto; padding-bottom: 1rem; }
.stack section { display: flex; flex-direction: column; gap: 0.75rem; }
.placeholder {
  padding: 1.25rem 1.5rem;
  border: 2px dashed var(--muted);
  border-radius: 1rem;
  color: var(--muted);
}
.project-flok {
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--flok-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.project-flok .text { flex: 1 1 16rem; display: flex; flex-direction: column; gap: 0.35rem; }
.project-flok h3 { font-size: 1.5rem; }
.project-flok .text a { color: var(--flok-text); font-weight: 600; }
.about-person { display: flex; justify-content: center; margin-bottom: 2rem; }
.about-person .person-drawing { width: 9rem; height: 9rem; }

.notfound { text-align: center; padding-top: clamp(3rem, 10vw, 7rem); padding-bottom: 2rem; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }

/* ---------- Privacy policy ---------- */
.reading { max-width: var(--reading-width); margin: 0 auto; padding: 1rem var(--gutter) 1rem; }
.reading h1 { font-size: 1.8rem; line-height: 1.2; margin-bottom: 0.25rem; }
.reading .meta { color: var(--muted); margin-bottom: 1.25rem; }
.reading h2 { font-size: 1.25rem; margin-top: 1.75rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.reading p, .reading ul { margin-bottom: 1rem; }
.reading ul { padding-left: 1.25rem; }
.reading li { margin-bottom: 0.5rem; }
.reading a { font-weight: 600; }

/* ---------- Small screens ---------- */
@media (max-width: 40rem) {
  .qa { grid-template-columns: 1fr; }
}
@media (max-width: 26rem) {
  .kinds { grid-template-columns: 1fr; }
  .menu { gap: 0.25rem 1.25rem; }
}
