/* Odd Hours Software
   Night sea and paper. Amber belongs to the moon, so it is used only where
   time is shown. Archivo (condensed) is the signage voice: names, times,
   headings. Literata is for reading. */

:root {
  --night: #14212B;
  --night-line: #2B3A45;
  --paper: #EFEAE0;
  --ink: #14212B;
  --ink-soft: #4A5560;
  --rule: #CFC7B8;
  --cream: #F6F0E1;
  --cream-soft: #B9BFC0;
  --amber: #F2B33D;
  --teal: #0A5A62;
  --teal-soft: #A9CFCC;

  --display: "Archivo", "Arial Narrow", sans-serif;
  --text: "Literata", Georgia, serif;

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
body > main { flex: 1; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }

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

/* Shared signage type */
.sign {
  font-family: var(--display);
  font-stretch: 75%;
  font-variant-numeric: tabular-nums;
}

/* ---------- Home: night opening ---------- */
.night { background: var(--night); color: var(--cream); }

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.masthead .brand img { height: 52px; width: auto; }
.masthead nav { font-family: var(--display); font-stretch: 75%; font-size: 1.125rem; letter-spacing: 0.01em; }
.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.opening .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  align-items: end;
  padding-top: clamp(56px, 10vw, 128px);
  padding-bottom: clamp(48px, 7vw, 80px);
}
.opening .statement {
  grid-column: 1 / span 7;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.4;
  font-weight: 400;
}
.opening .statement em { font-style: italic; color: var(--amber); }

.clock { grid-column: 9 / span 4; justify-self: end; text-align: right; }
.clock .label { font-size: 0.95rem; color: var(--cream-soft); }
.clock time {
  display: block;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 500;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  margin: 6px 0 8px;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.clock .date { font-size: 0.95rem; color: var(--cream-soft); }

/* ---------- Home: apps register ---------- */
.register .wrap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(64px, 9vw, 112px);
}
.register-head { grid-column: 1 / span 3; }
.register h2 {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.1;
}
.register .intro { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; max-width: 16em; }

.apps { grid-column: 4 / span 9; width: 100%; border-collapse: collapse; }
.apps th {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  text-align: left;
  padding: 0 16px 10px 0;
  border-bottom: 2px solid var(--ink);
}
.apps td { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.apps .app a { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.apps .app img { width: 64px; height: 64px; border-radius: 14px; }
.apps .app strong {
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1;
}
.apps .app a:hover strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.apps .app span { display: block; margin-top: 4px; font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--cream-soft); font-size: 0.9rem; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 32px;
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 760px) {
  .masthead .brand img { height: 44px; }
  .opening .statement, .clock { grid-column: 1 / -1; }
  .clock { justify-self: start; text-align: left; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-line); width: 100%; }
  .register-head, .apps { grid-column: 1 / -1; }
  .register .intro { margin-bottom: 24px; max-width: none; }
  .apps thead { display: none; }
  .apps tr { display: grid; grid-template-columns: 1fr auto; padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .apps td { padding: 0; border: 0; }
  .apps td.app { grid-column: 1 / -1; margin-bottom: 12px; }
  .apps td.platforms, .apps td.state { font-size: 0.95rem; color: var(--ink-soft); }
}

/* ---------- KiwiCatch coming-soon page ---------- */
.soon-page { background: var(--teal); color: var(--cream); overflow-x: hidden; }
.soon-page .top .wrap { padding-top: 24px; padding-bottom: 24px; }
.soon-page .top a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-stretch: 75%; font-size: 1.05rem;
  text-decoration: none; color: var(--teal-soft);
}
.soon-page .top a:hover { color: var(--cream); }
.soon-page .top img { width: 26px; height: 26px; }
.soon-page main { position: relative; display: flex; }
.soon-page main .wrap {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  min-height: calc(100vh - 160px);
}
.soon-page .copy { grid-column: 1 / span 6; align-self: center; padding: 48px 0 64px; position: relative; z-index: 1; }
.soon-page .status { font-family: var(--display); font-stretch: 75%; font-size: 1.05rem; color: var(--teal-soft); }
.soon-page h1 {
  margin-top: 6px;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 0.95;
}
.soon-page .lede { margin-top: 20px; font-size: 1.2rem; line-height: 1.55; max-width: 22em; }
.soon-page .more { margin-top: 16px; font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 1.2rem; }
.soon-page .store { margin-top: 36px; }
.soon-page .hook {
  grid-column: 8 / span 5;
  align-self: end;
  justify-self: center;
  width: min(100%, 380px);
  height: auto;
  margin-bottom: -16%;
}
.soon-page footer .wrap { padding-top: 22px; padding-bottom: 26px; font-size: 0.9rem; color: var(--teal-soft); border-top: 1px solid rgba(246, 240, 225, 0.15); position: relative; background: var(--teal); }

@media (max-width: 760px) {
  .soon-page main .wrap { grid-template-columns: minmax(0, 1fr); column-gap: 0; min-height: 0; }
  .soon-page .copy { grid-column: 1 / -1; padding-bottom: 24px; }
  .soon-page .hook { grid-column: 1 / -1; justify-self: end; width: 46%; margin-top: 8px; margin-bottom: -6%; }
}

/* ---------- KiwiCatch page ----------
   Told as a day's fishing: the night before, at the ramp, fish on, back home.
   App screens are cropped from the real app, shown flat with a hairline edge. */

.kc { background: var(--paper); }

.screen {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(246, 240, 225, 0.14);
  background: #000;
}
.screen img { width: 100%; height: auto; }
.screen.on-paper { border-color: rgba(20, 33, 43, 0.25); }

.kicker {
  font-family: var(--display);
  font-stretch: 75%;
  font-size: 1.1rem;
  color: var(--teal);
}
.kc h2 {
  margin-top: 4px;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.02;
}
.kc .body { margin-top: 18px; max-width: 30em; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
}

/* Opening */
.kc-open { background: var(--teal); color: var(--cream); overflow: hidden; }
.kc-top .wrap { padding-top: 24px; padding-bottom: 24px; }
.kc-top a {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-stretch: 75%; font-size: 1.05rem;
  text-decoration: none; color: var(--teal-soft);
}
.kc-top a:hover { color: var(--cream); }
.kc-top img { width: 26px; height: 26px; }

.kc-open .grid { padding-top: clamp(24px, 5vw, 56px); }
.kc-open .copy { grid-column: 1 / span 6; align-self: center; padding-bottom: 72px; }
.kc-open .status { font-family: var(--display); font-stretch: 75%; font-size: 1.1rem; color: var(--teal-soft); }
.kc-open h1 {
  margin-top: 6px;
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 4.75rem);
  line-height: 0.95;
}
.kc-open .lede { margin-top: 20px; font-size: 1.25rem; line-height: 1.5; max-width: 21em; }
.kc-open .body { color: #D3E6E4; }
.store {
  margin-top: 36px;
  padding-top: 20px;
  display: flex; align-items: center; gap: 16px;
  max-width: 26em;
  border-top: 1px solid rgba(246, 240, 225, 0.22);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--teal-soft);
}
.store img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.store strong { display: block; color: var(--cream); font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 1.1rem; }
/* The Today screen sits in the water: it runs off the bottom of the band */
.kc-open .screen {
  grid-column: 8 / span 4;
  align-self: end;
  margin-bottom: -38%;
  border-bottom: 0;
  box-shadow: 0 0 0 10px #0E1418;
  margin-top: 10px;
}
.kc-open { padding-bottom: 0; }
.kc-open .grid { max-height: 760px; }

/* The night before */
.kc-before { padding: clamp(64px, 9vw, 120px) 0; }
.kc-before .copy { grid-column: 1 / span 6; }
.kc-before .screen { grid-column: 8 / span 4; align-self: start; }
.kc-before .kicker, .kc-keeper .kicker { color: var(--teal); }
.plan { margin: 36px 0 0; border-top: 2px solid var(--ink); max-width: 32em; }
.plan div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.plan dt { font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.plan dd { margin: 4px 0 0; color: var(--ink-soft); }

/* At the ramp */
.kc-zone { background: var(--night); color: var(--cream); padding: clamp(64px, 9vw, 120px) 0; }
.kc-zone .kicker { color: var(--amber); }
.kc-zone .copy { grid-column: 1 / span 7; }
.kc-zone .body { color: #CBD0CF; }
.kc-zone .pair { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; margin-top: 56px; }
.kc-zone figure { margin: 0; }
.kc-zone figure:first-child { grid-column: 1 / span 4; }
.kc-zone figure:last-child { grid-column: 6 / span 4; margin-top: 96px; }
.kc-zone figcaption { margin-top: 14px; font-size: 0.95rem; color: #CBD0CF; max-width: 22em; }
.kc-zone figcaption strong { display: block; font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 1.15rem; color: var(--cream); }

/* Fish on */
.kc-keeper { padding: clamp(64px, 9vw, 120px) 0; }
.kc-keeper .screen { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.kc-keeper .copy { grid-column: 6 / span 6; align-self: center; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; counter-reset: step; max-width: 30em; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem 1fr; padding: 16px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--display); font-stretch: 75%; font-weight: 600; font-size: 1.4rem; line-height: 1.3; color: var(--teal); }

/* Back home, and the close */
.kc-home { background: var(--teal); color: var(--cream); padding: clamp(64px, 9vw, 112px) 0 0; }
.kc-home .kicker { color: var(--teal-soft); }
.kc-home .copy { grid-column: 1 / span 5; }
.kc-home .body { color: #D3E6E4; }
.kc-home .screen { grid-column: 7 / span 4; align-self: start; }
.kc-close {
  grid-column: 1 / -1;
  margin-top: clamp(56px, 8vw, 96px);
  padding: 28px 0 36px;
  border-top: 1px solid rgba(246, 240, 225, 0.22);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px;
}
.kc-close .store { margin: 0; padding: 0; border: 0; }
.kc-close .note { max-width: 30em; font-size: 0.95rem; color: var(--teal-soft); }
.kc-close .note a { color: var(--cream); }

@media (max-width: 860px) {
  .grid, .kc-zone .pair { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
  .grid > *, .kc-zone .pair > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .kc-open .grid { max-height: none; }
  .kc-open .copy { padding-bottom: 40px; }
  .kc-open .screen { width: min(78%, 320px); justify-self: center; margin-bottom: -60%; }
  .kc-before .screen, .kc-keeper .screen, .kc-home .screen { width: min(82%, 340px); margin-top: 40px; }
  .kc-keeper .screen { order: 2; }
  .kc-zone .pair { gap: 40px; }
  .kc-zone figure, .kc-zone figure:last-child { width: min(82%, 340px); margin-top: 0; }
  .kc-zone figure:last-child { justify-self: end; }
}
