/* belalba.com: one stylesheet, mobile first, no framework.
   Brand: deep navy-teal ground, terracotta and ochre accents, peach mark, geometric capital wordmark. */

:root {
  /* Brand palette, taken from the brand image */
  --navy: #0f2634;
  --navy-2: #163a4a;
  --teal: #2a5f66;
  --teal-2: #3f7f84;
  --terracotta: #a5502e;
  --terracotta-2: #c2673f;
  --ochre: #d9a35a;
  --peach: #f3c9b1;
  --peach-2: #fbe9dd;
  --sand: #f7f3ee;

  /* Roles */
  --ink: #16232b;
  --ink-2: #4b5a63;
  --bg: #fffdfa;
  --bg-2: var(--sand);
  --line: #e3dcd4;
  --accent: var(--terracotta);
  --accent-ink: #ffffff;
  --link: #1f5c64;
  --focus: var(--ochre);
  --measure: 44rem;
  --wide: 64rem;

  --display: "Montserrat", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 106.25%; /* 17px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, svg { max-width: 100%; height: auto; }

/* Layout */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.15rem;
}
.wrap-wide { max-width: var(--wide); }

main > .wrap { padding-top: 2rem; padding-bottom: 3.5rem; }
section + section { margin-top: 3rem; }

/* Skip link */
.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 10;
  border-radius: 4px;
}
.skip:focus { left: 0.5rem; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 0;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
}
.brand .mark { width: 34px; height: 34px; flex: none; }
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding-top: 0.1em;
}
.wordmark sup { font-size: 0.45em; letter-spacing: 0; margin-left: 0.15em; vertical-align: top; }
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.1rem;
  font-size: 0.93rem;
}
.site-header nav a {
  color: var(--peach-2);
  text-decoration: none;
  padding: 0.3rem 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover { color: #fff; border-bottom-color: var(--ochre); }
.site-header nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--terracotta-2); }

/* Page head and hero: dark band in the brand gradient, drawn in CSS, no image */
.band {
  background-color: var(--navy);
  background-image:
    radial-gradient(70% 90% at 8% 15%, rgba(63, 127, 132, 0.55) 0, rgba(63, 127, 132, 0) 60%),
    radial-gradient(55% 75% at 92% 25%, rgba(194, 103, 63, 0.55) 0, rgba(194, 103, 63, 0) 62%),
    radial-gradient(45% 60% at 80% 95%, rgba(217, 163, 90, 0.45) 0, rgba(217, 163, 90, 0) 60%);
  color: #fff;
}
.band a { color: var(--peach); }
.band a:hover { color: #fff; }
.page-head { padding: 2.2rem 0 2.4rem; }
.page-head h1 { margin: 0 0 0.6rem; }
.page-head .lead { color: var(--peach-2); margin-bottom: 0; }
.page-head .lead + p, .page-head p.cta { margin-top: 1.2rem; }
.hero { padding: 3rem 0 3.2rem; }
.hero h1 { font-size: 2.1rem; margin: 0 0 1rem; max-width: 22ch; }
.hero .lead { color: var(--peach-2); max-width: 52ch; }
.hero .eyebrow {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--ochre);
  margin: 0 0 1rem;
}
.hero-mark { width: 56px; height: 56px; margin-bottom: 1.2rem; display: block; }

/* Type */
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.005em; }
h1 { font-size: 1.85rem; line-height: 1.15; margin: 0.4rem 0 1rem; font-weight: 700; }
h2 { font-size: 1.32rem; line-height: 1.25; margin: 0 0 0.7rem; font-weight: 700; }
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.35rem; font-weight: 700; }
p, ul, ol, dl { margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.small { font-size: 0.9rem; color: var(--ink-2); }
a { color: var(--link); text-underline-offset: 0.15em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
strong { font-weight: 650; }

/* Section heading with a short brand rule */
main h2::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 3px;
  background: var(--terracotta-2);
  border-radius: 2px;
  margin-bottom: 0.7rem;
}
.card h2::before, .next h2::before { display: none; }

dl.facts div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.5rem; padding: 0.55rem 0; border-top: 1px solid var(--line); }
dl.facts div:last-child { border-bottom: 1px solid var(--line); }
dl.facts dt { color: var(--ink-2); }
dl.facts dd { margin: 0; }

/* Cards */
.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  padding: 1.1rem 1.2rem 1.2rem;
  margin-bottom: 1rem;
  background: #fff;
}
.card:nth-of-type(even) { border-top-color: var(--terracotta-2); }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Ladder */
ol.ladder { list-style: none; padding: 0; margin: 0 0 1rem; counter-reset: step; }
ol.ladder li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1rem;
}
ol.ladder li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--peach-2);
  color: var(--terracotta);
  font-family: var(--display);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  padding: 0.75rem 1.2rem;
  border-radius: 6px;
  border: 0;
  font: inherit;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.98rem;
  min-height: 44px;
  cursor: pointer;
}
.btn:hover { background: var(--terracotta-2); color: #fff; }
.band .btn { background: var(--peach); color: var(--navy); }
.band .btn:hover { background: #fff; color: var(--navy); }
.btn-secondary { background: transparent; color: var(--link); border: 2px solid var(--link); }
.btn-secondary:hover { background: var(--peach-2); }

.next {
  margin-top: 3rem;
  padding: 1.3rem 1.3rem 1.4rem;
  background: var(--peach-2);
  border-left: 5px solid var(--terracotta-2);
  border-radius: 0 8px 8px 0;
}
.next h2 { margin-top: 0; }
.next p:last-child { margin-bottom: 0; }

/* Forms */
form { margin: 1rem 0; }
.field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
label .small { font-weight: 400; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid #9aa5ac;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
input:focus, textarea:focus { border-color: var(--teal); }
textarea { min-height: 7rem; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.9rem; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0 0.3rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; margin-bottom: 0.5rem; }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--terracotta); }
.hp { position: absolute; left: -9999px; }

/* Screenshot placeholder */
figure { margin: 1rem 0 0; }
.shot {
  border: 1px dashed var(--teal-2);
  border-radius: 6px;
  min-height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--ink-2);
  background: var(--sand);
  text-align: center;
  font-size: 0.9rem;
}
figcaption { font-size: 0.9rem; color: var(--ink-2); margin-top: 0.4rem; }

/* Items awaiting confirmation on unpublished pages */
mark.confirm { background: #ffe9a8; padding: 0 0.2em; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--peach-2);
  padding: 2rem 0 2.5rem;
  font-size: 0.92rem;
}
.site-footer .wordmark { font-size: 1rem; display: inline-block; margin-bottom: 0.8rem; }
.site-footer nav ul { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; }
.site-footer a { color: var(--peach); }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 0.4rem; }

/* Wider screens */
@media (min-width: 40rem) {
  html { font-size: 112.5%; } /* 18px */
  h1 { font-size: 2.2rem; }
  .hero { padding: 4.5rem 0 4.8rem; }
  .hero h1 { font-size: 2.9rem; }
  .page-head { padding: 3rem 0 3.2rem; }
  .site-header .wrap { justify-content: space-between; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
  .grid-2 .card { margin-bottom: 0; }
  .site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header nav, .site-footer nav, .skip, .btn { display: none; }
  .band { background: none; color: #000; }
}
