/* Odd Hours Software
   White page, near-black ink. Each app owns one colour: Kiwi Catch teal,
   Kiwi Hunt bush green. Libre Caslon Display for names and the one big
   lockup on the home page; Schibsted Grotesk for everything you read. */

:root {
  --ink: #16181A;
  --ink-soft: #5B5F63;
  --line: #E2E2DD;
  --wash: #F5F5F2;
  --paper: #FFFFFF;
  --catch: #0C6F79;
  --hunt: #2E6B3F;

  --serif: "Libre Caslon Display", "Iowan Old Style", Georgia, serif;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;

  /* Fluid type scale, 360px to 1440px viewports */
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.9vw, 2.2rem);
  --step-3: clamp(2.2rem, 1.8rem + 1.9vw, 3.4rem);
  --step-4: clamp(2.8rem, 2.1rem + 3.2vw, 5rem);

  --gutter: clamp(20px, 4.5vw, 64px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--ink-soft); }

/* Header */
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 22px; padding-bottom: 22px;
}
.site-head .brand img { height: 30px; width: auto; }
.site-head nav { display: flex; gap: clamp(16px, 3vw, 32px); font-size: var(--step--1); font-weight: 500; }
.site-head nav a { text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current] { text-decoration: underline; }

/* Buttons: one shape, used sparingly */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 6px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: var(--step--1);
  text-decoration: none;
}
.button svg { width: 16px; height: 16px; fill: currentColor; }
.button:hover { background: #000; }
.text-link { font-weight: 600; font-size: var(--step--1); }

/* ---------- Home ---------- */

body { overflow-x: clip; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.state { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); font-weight: 600; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state.live { color: var(--catch); }
.state.soon { color: var(--ink-soft); }

/* Home: each app gets a split. Words on the white, the app on a block of its colour
   that runs off the right edge of the page. The app names are the one loud thing. */
.show .grid { align-items: center; }
.show .copy { grid-column: 1 / span 6; padding: clamp(40px, 6vw, 88px) 0; }
.show h2 {
  margin-top: 14px;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.4rem, 1.6rem + 6.4vw, 7.6rem);
  line-height: 0.9; letter-spacing: -0.03em;
}
.show h2 a { text-decoration: none; }
.show h2 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.1em; }
.show .lede { margin-top: 22px; font-size: var(--step-1); line-height: 1.45; max-width: 25em; }
.show .actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.show .facts { margin-top: 22px; font-size: var(--step--1); color: var(--ink-soft); }
.show .panel {
  grid-column: 8 / -1;
  align-self: stretch;
  margin-right: calc(-1 * var(--gutter) - max(0px, (100vw - var(--max)) / 2));
  display: flex; align-items: center; gap: clamp(14px, 2vw, 24px);
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  text-decoration: none;
}
.catch .panel { background: var(--catch); }
.catch .panel .screen { flex: 0 1 220px; box-shadow: none; }
.catch .panel .screen:last-child { margin-top: 14%; }
.hunt { border-top: 1px solid var(--line); }
.hunt .panel { background: #17201B; color: #F3F1EC; flex-direction: column; align-items: flex-start; justify-content: center; }
.hunt .panel svg { width: 100%; max-width: 460px; height: auto; }
.hunt .panel .cap { font-size: var(--step--1); color: #C9CEC9; }
.hunt .state.soon { color: var(--hunt); }

.about { background: var(--wash); }
.about .grid { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.about h2 { grid-column: 1 / span 4; font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.about .body { grid-column: 6 / span 6; }
.about .body p + p { margin-top: 14px; }

/* ---------- App pages ---------- */
.app-intro .grid { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(48px, 7vw, 96px); align-items: center; }
.app-intro .copy { grid-column: 1 / span 6; }
.app-intro .icon { width: 84px; height: 84px; border-radius: 19px; }
.app-intro h1 { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: var(--step-4); line-height: 0.95; letter-spacing: -0.02em; }
.app-intro .lede { margin-top: 20px; font-size: var(--step-1); line-height: 1.45; max-width: 26em; }
.app-intro .actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.app-intro .facts { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--ink-soft); max-width: 30em; }
.app-intro .shots { grid-column: 8 / span 5; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 20px); align-items: start; }
.app-intro .shots figure:last-child { margin-top: 18%; }

.screen { border-radius: 9% / 4.2%; overflow: hidden; background: #0d1418; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }

/* Feature register: dense, four columns of plain text under ruled heads */
.features { border-top: 1px solid var(--ink); }
.features .grid { padding-top: 24px; padding-bottom: clamp(56px, 8vw, 96px); row-gap: 40px; }
.features .head { grid-column: 1 / span 3; }
.features .head h2 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.features .cols { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(20px, 3vw, 48px); }
.feature h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.25; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.feature ul { list-style: none; margin-top: 4px; }
.feature li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); line-height: 1.5; }

/* Screens strip: the whole app in one row, scrolls sideways on small screens */
.strip { background: var(--wash); }
.strip .wrap { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.strip h2 { font-family: var(--serif); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.strip .row {
  margin-top: 28px;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
}
.strip figure { scroll-snap-align: start; }
.strip figcaption { margin-top: 12px; font-size: var(--step--1); line-height: 1.4; }
.strip figcaption strong { display: block; font-weight: 600; }

.fine .grid { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.fine p { grid-column: 1 / span 7; font-size: var(--step--1); color: var(--ink-soft); }
.fine .links { grid-column: 9 / span 4; justify-self: end; display: flex; gap: 24px; font-size: var(--step--1); font-weight: 600; }

/* Kiwi Hunt is in development: text-led, its own colour */
.hunt-list { grid-column: 4 / span 9; list-style: none; }
.hunt-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hunt-list li:first-child { padding-top: 0; }
.hunt-list strong { font-weight: 600; }

.app-intro .light { grid-column: 8 / span 5; }
.app-intro .light svg { width: 100%; height: auto; }
.app-intro .light figcaption { margin-top: 4px; font-size: var(--step--1); color: var(--ink-soft); max-width: 28em; }
.features .head p { margin-top: 12px; font-size: var(--step--1); }
.hunt a:not(.button) { color: var(--hunt); }
.hunt .state.soon { color: var(--hunt); }

/* ---------- Legal and support ---------- */
.doc .grid { padding-top: clamp(28px, 5vw, 64px); padding-bottom: clamp(56px, 8vw, 104px); }
.doc aside { grid-column: 1 / span 3; font-size: var(--step--1); }
.doc aside a { font-weight: 600; }
.doc aside p + p { margin-top: 6px; color: var(--ink-soft); }
.doc article { grid-column: 4 / span 7; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1; }
.doc .updated { margin-top: 12px; color: var(--ink-soft); font-size: var(--step--1); }
.doc h2 { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.doc p { margin-top: 12px; max-width: 40em; overflow-wrap: anywhere; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); font-size: var(--step--1); }
.site-foot .grid { padding-top: 28px; padding-bottom: 36px; row-gap: 20px; }
.site-foot .who { grid-column: 1 / span 4; }
.site-foot .who img { height: 22px; width: auto; margin-bottom: 10px; }
.site-foot nav { grid-column: span 2; display: grid; gap: 4px; align-content: start; }
.site-foot nav b { font-weight: 600; margin-bottom: 2px; }
.site-foot nav a { color: var(--ink-soft); text-decoration: none; }
.site-foot nav a:hover { color: var(--ink); text-decoration: underline; }
.site-foot .copy { grid-column: 11 / span 2; justify-self: end; color: var(--ink-soft); }

@media (max-width: 900px) {
  .grid > * { grid-column: 1 / -1 !important; }
  .show .copy { padding-bottom: 32px; }
  .show .panel { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); justify-content: center; }
  .hunt .panel { align-items: center; }
  .about .body, .features .cols, .hunt-list { margin-top: 20px; }
  .app-intro .shots { margin-top: 40px; max-width: 460px; }
  .app-intro .light { margin-top: 40px; }
  .features .cols { grid-template-columns: minmax(0, 1fr); }
  .hunt-list li { grid-template-columns: minmax(0, 1fr); }
  .fine .links { justify-self: start; margin-top: 16px; }
  .doc article { margin-top: 24px; }
  .site-foot nav { grid-column: span 6 !important; }
  .site-foot .copy { justify-self: start; }
}
@media (max-width: 560px) {
  .site-head nav .opt { display: none; }
}

.hunt-list li div p + p { margin-top: 8px; }
.site-head .brand img { height: 34px; }
.site-head nav a { white-space: nowrap; }
@media (max-width: 560px) {
  .site-head .brand img { height: 26px; }
  .site-head nav { gap: 14px; }
}
.doc.hunt a { color: var(--hunt); }
