/* Palette and type lifted from the reference (betweenthelinescopy.com), substituted with free faces:
   Ivy Presto Display -> Newsreader (opsz 72, light), Helvetica Neue Light -> IBM Plex Sans 300/400,
   Mercenary Medium caps -> IBM Plex Sans 500 tracked, handwriting -> Reenie Beanie. */
:root {
  --navy: #132133;
  --ink: #1d3145;
  --steel: #335c80;
  --sky: #75a5cb;
  --mist: #adbfcf;
  --paper: #efebe6;
  --line: #d9dee4;
  --white: #ffffff;
  --muted: #55667a;
  --serif: 'Newsreader', 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --hand: 'Reenie Beanie', cursive;
  --measure: 62ch;
  --gutter: clamp(20px, 4vw, 60px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 300; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; }
strong { font-weight: 500; }
button { font: inherit; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

/* Labels: the reference's small tracked caps (Mercenary). Kept where the reference uses them. */
.caps { font-family: var(--sans); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hand { font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--ink); }

/* Buttons: steel rectangle, small caps label, like INQUIRE / SEE MORE */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  background: var(--steel); color: #fff; text-decoration: none;
  font-family: var(--sans); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 0; cursor: pointer;
  transition: background-color 160ms ease;
}
.btn:hover { background: var(--navy); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--steel); }
.btn.paper { background: var(--paper); color: var(--ink); }
.btn.paper:hover { background: var(--white); }
.btn.sky { background: var(--sky); color: var(--navy); }
.btn.sky:hover { background: var(--steel); color: #fff; }

/* Circle arrow that sits on the corner of every tile in the reference */
.arrow {
  width: 56px; height: 56px; border-radius: 50%; background: var(--sky); color: #fff;
  display: inline-grid; place-items: center; flex: 0 0 auto;
}
.arrow svg { width: 20px; height: 20px; }

/* Announcement bar */
.announce {
  background: var(--sky); color: var(--navy); text-align: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 0.7em var(--gutter);
}
.announce a { color: var(--navy); }

/* Header: monogram left, nav centre, Inquire right */
.site-head {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.site-head .mark { justify-self: start; text-decoration: none; }
.site-head .mark img { width: 58px; height: auto; display: block; }
.site-head nav { display: flex; gap: clamp(14px, 2.4vw, 34px); }
.site-head nav a { text-decoration: none; color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--steel); }
.site-head .btn { justify-self: end; }
.site-head .menu { display: none; }
@media (max-width: 800px) {
  .site-head { grid-template-columns: auto 1fr auto; }
  .site-head nav { display: none; }
  .site-head nav.open { display: flex; flex-direction: column; grid-column: 1 / -1; padding-top: 14px; gap: 14px; }
  .site-head .menu {
    display: inline-flex; flex-direction: column; justify-self: end; margin-right: 14px; background: none; border: 0; padding: 8px; cursor: pointer;
  }
  .site-head .menu span { display: block; width: 26px; height: 1.5px; background: var(--ink); margin: 5px 0; }
}

/* Footer with the reference's wave edge */
/* The wave is drawn in navy over whatever section sits above, so bands and boxes can run right up to it. */
.site-foot { background: var(--navy); color: #fff; position: relative; margin-top: 0; }
.site-foot::before {
  content: ""; display: block; height: 46px; margin-top: -46px; background: var(--navy);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 46' preserveAspectRatio='none'><path d='M0 46V18c20 0 30 20 50 20s30-20 50-20 30 20 50 20 30-20 50-20v28z'/></svg>") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 46' preserveAspectRatio='none'><path d='M0 46V18c20 0 30 20 50 20s30-20 50-20 30 20 50 20 30-20 50-20v28z'/></svg>") center / 100% 100% no-repeat;
}
.foot-grid {
  display: grid; grid-template-columns: 1.3fr 0.8fr 1fr; gap: clamp(28px, 4vw, 70px);
  padding: 40px var(--gutter) 50px;
}
.foot-grid .mark img { width: 104px; height: auto; }
.foot-grid .blurb { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.foot-grid h3 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.8em; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 0 0 0.75em; }
.foot-grid .caps a { text-decoration: none; color: #fff; }
.foot-grid a { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.15); text-align: center; font-size: 0.72rem; padding: 14px var(--gutter); color: #c8d2dc; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; } }

/* Shared section rhythm */
.wrap { padding-inline: var(--gutter); max-width: 1440px; margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 110px); }
.bookmark { display: inline-block; width: 14px; height: 24px; background: var(--sky); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
