/* Biddy Enterprises Ltd — site styles */

:root {
  --ink: #14273a;
  --ink-2: #33495e;
  --ink-3: #5d7185;
  --paper: #edede8;
  --paper-2: #f7f7f4;
  --rule: #c7c7bd;
  --stamp: #1c6547;
  --stamp-soft: #dfe9e3;
  --measure: 34rem;
  --gutter: 1.5rem;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
}

h1, h2, h3 {
  font-family: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.4vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: 1.16rem; margin-bottom: 0.35em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--stamp); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--stamp);
  outline-offset: 3px;
}

.wrap {
  width: min(70rem, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper-2);
  padding: 0.7rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  padding: 1.15rem 0;
}

.wordmark {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.2;
}

.wordmark span {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.95rem;
}

.nav a { text-decoration: none; padding-bottom: 2px; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--stamp); }

/* ---------- generic sections ---------- */

section { padding: 3.4rem 0; }
section + section { border-top: 1px solid var(--rule); }

.lede {
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--ink-2);
  max-width: 38rem;
}

.pagehead { padding: 3rem 0 2.4rem; border-bottom: 1px solid var(--rule); }

/* ---------- hero ---------- */

.hero {
  background: var(--ink);
  color: var(--paper-2);
  padding: 4.2rem 0 0;
  border-top: none;
}

.hero h1 { color: var(--paper-2); max-width: 20ch; }
.hero p { color: #c3ccd6; max-width: 36rem; }

.hero a { color: var(--paper-2); }

/* the route device — the one bold element on the page */

.route {
  margin-top: 3rem;
  border-top: 1px solid #2c4159;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.route__stop {
  padding: 1.5rem 1.2rem 2.6rem 0;
  border-left: 1px solid #2c4159;
  padding-left: 1.1rem;
  position: relative;
}

.route__stop::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--paper-2);
  border-radius: 50%;
}

.route__stop:last-child::before { background: var(--stamp); box-shadow: 0 0 0 4px rgba(28,101,71,0.35); }

.route__stop b {
  display: block;
  font-weight: 600;
  font-size: 0.97rem;
  margin-bottom: 0.25rem;
}

.route__stop span {
  color: #96a5b4;
  font-size: 0.88rem;
  line-height: 1.5;
  display: block;
}

/* ---------- manifest rows ---------- */

.manifest { border-top: 1px solid var(--rule); }

.row {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0 1.4rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: start;
}

.row__no {
  font-family: "IBM Plex Serif", Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink-3);
  line-height: 1.3;
}

.row p:last-child { margin-bottom: 0; }

.covers {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  max-width: var(--measure);
  font-size: 0.96rem;
  color: var(--ink-2);
}

.covers li { padding-left: 1.15rem; position: relative; }

.covers li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 1px;
  background: var(--stamp);
}

/* ---------- two-column blocks ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2rem 3rem;
}

.split p { max-width: 30rem; }

/* ---------- call to action ---------- */

.cta-band {
  background: var(--stamp-soft);
  border-top: 1px solid var(--rule);
}

.button {
  display: inline-block;
  background: var(--stamp);
  color: var(--paper-2);
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  font-size: 1rem;
  border: 1px solid var(--stamp);
}

.button:hover { background: #17513a; color: var(--paper-2); }

.button--light {
  background: transparent;
  color: var(--paper-2);
  border-color: #52667a;
}
.button--light:hover { background: #1d344a; color: var(--paper-2); }

/* ---------- forms ---------- */

.form { max-width: 36rem; }

.field { margin-bottom: 1.2rem; }

label {
  display: block;
  font-size: 0.93rem;
  margin-bottom: 0.3rem;
  color: var(--ink-2);
}

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--ink-3);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 0;
}

textarea { min-height: 9rem; resize: vertical; }

.hp { position: absolute; left: -9999px; }

/* ---------- details / footer ---------- */

.contact-details p { font-size: 0.98rem; }

.foot {
  background: var(--ink);
  color: #9fadbb;
  font-size: 0.9rem;
  padding: 2.4rem 0;
}

.foot a { color: var(--paper-2); }

.foot__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.6rem 2rem;
}

.foot strong { color: var(--paper-2); font-weight: 600; display: block; margin-bottom: 0.3rem; }

.foot__legal { border-top: 1px solid #2c4159; margin-top: 2rem; padding-top: 1.2rem; }

/* ---------- responsive ---------- */

@media (max-width: 42rem) {
  .route { grid-template-columns: 1fr; border-top: none; }
  .route__stop { border-left: 1px solid #2c4159; padding-bottom: 1.5rem; }
  .row { grid-template-columns: 1fr; gap: 0.2rem; }
  .row__no { font-size: 1.05rem; }
  section { padding: 2.6rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
