@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFFFFF;
  --sage: #E3EDE3;       /* the alternating block colour: white header, sage intro, white apps, sage about, white footer */
  --navy: #12324A;
  --teal: #1F6B6B;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: 5.9rem; }
body {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
section[id] { scroll-margin-top: 0; }

.skip {
  position: absolute; left: -999px; top: .5rem;
  background: var(--navy); color: var(--paper);
  padding: .6rem 1rem; border-radius: .5rem; z-index: 20;
  font-weight: 700; text-decoration: none;
}
.skip:focus { left: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid rgba(18,50,74,.12);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem 1rem; padding-top: 1.25rem; padding-bottom: .5rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--serif); font-weight: 600; font-size: 2.75rem; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--navy); text-decoration: none;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; }
.byline { font-size: .9375rem; font-weight: 500; line-height: 1.3; color: #4A5D6C; text-decoration: none; }
.byline:hover { color: var(--navy); text-decoration: underline; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5rem .9rem; border-radius: 999px;
  color: var(--navy); font-weight: 700; text-decoration: none;
}
.site-nav a:hover { background: var(--sage); }
.nav-toggle {
  display: none; min-height: 44px; padding: .4rem 1.1rem;
  font: inherit; font-weight: 700; color: var(--navy);
  background: rgba(255,255,255,.75); border: 2px solid var(--navy);
  border-radius: 999px; cursor: pointer;
}

/* Hero */
.band-hero { background: var(--sage); padding: 3rem 0 4rem; }
.hero { max-width: 42rem; }
h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  text-wrap: balance;
}
.tagline {
  margin: 0 0 1.25rem;
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}
.lead-copy { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.55; max-width: 32rem; margin: 0 0 1.75rem; }
.button {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--paper);
  background: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 18px -10px rgba(18,50,74,.6);
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 20px -10px rgba(18,50,74,.6); }

/* Colour bands */
.band { padding: 3.5rem 0; }
.band-apps  { background: var(--paper); }
.band-about { background: var(--sage); text-align: center; }
.section-title {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15;
  text-align: center; text-wrap: balance; margin: 0 0 2rem;
}

/* Featured app */
.app-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--sage);
  border-radius: 1.75rem;
  text-decoration: none;
  color: var(--navy);
  box-shadow: 0 30px 50px -38px rgba(18,50,74,.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card:hover { transform: translateY(-4px); box-shadow: 0 36px 56px -36px rgba(18,50,74,.65); }
.app-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.app-head img { width: 4.5rem; height: 4.5rem; flex: none; }
.app-card h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.platform { margin: .25rem 0 0; font-weight: 600; font-size: .95rem; color: var(--teal); }
.app-card p.desc { margin: 0 0 1.5rem; font-size: 1.125rem; max-width: 27rem; }
.app-card .button { pointer-events: none; }
.device {
  justify-self: center;
  width: 100%;
  max-width: 17rem;
  padding: .6rem;
  background: #1d1d1f;
  border-radius: 1.9rem;
  box-shadow: 0 34px 50px -28px rgba(18,50,74,.6), 0 0 0 2px #3a3a3c inset;
}
.device img { display: block; width: 100%; height: auto; border-radius: 1.35rem; }

.soon {
  margin-top: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: 1.5rem;
  border: 2px dashed rgba(18,50,74,.3);
  display: flex; align-items: center; gap: 1rem;
}
.soon strong { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.soon span { display: block; }

/* About */
.band-about p { max-width: 34rem; margin: 0 auto 1.75rem; font-size: 1.125rem; }
.pills { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.pill {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: .7rem 1.4rem; border-radius: 999px;
  background: #fff; color: var(--navy); border: 1px solid rgba(18,50,74,.18);
  transition: background .15s ease, transform .15s ease;
}
.pill:hover { background: #D3E3D4; transform: translateY(-2px); }

/* Footer */
footer { padding: 0 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: 1rem; }
footer .wrap > div {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  border-top: 1px solid rgba(18,50,74,.18);
  padding-top: 1.5rem;
}
footer a { color: var(--navy); font-weight: 700; }
footer .links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
footer .links a { white-space: nowrap; }

@media (max-width: 800px) {
  .band { padding: 2.5rem 0; }
  .band-hero { padding: 2rem 0 3rem; }
  .app-card { grid-template-columns: 1fr; }
  .device { max-width: 14rem; justify-self: start; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 4.8rem; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .brand { flex: 1 1 0; min-width: 0; }
  .js .nav-toggle { flex: none; }
  .byline { font-size: .78rem; }
  .logo { font-size: 2rem; }
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    display: none; position: absolute; left: 1.5rem; right: 1.5rem; top: 100%;
    padding: .5rem; border-radius: 1.25rem; background: var(--paper);
    box-shadow: 0 24px 34px -22px rgba(18,50,74,.7);
  }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .85rem 1rem; }
}
@media (max-width: 360px) {
  .logo { font-size: 1.65rem; }
  .nav-toggle { padding: .4rem .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .app-card, .pill { transition: none; }
}
