/* Harbor Test Bakery: type and colour only, no images. */
:root {
  --navy: #14304a;
  --navy-deep: #0e2236;
  --cream: #fbf5e9;
  --paper: #fffdf8;
  --crust: #8f4a14;
  --sea: #1f6f78;
  --sun: #f2c14e;
  --ink: #1d232a;
  --muted: #4a5560;
  --line: #e4d8c3;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--sea); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--navy);
}

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); margin: 0 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 0.5em; }
h3 { font-size: 1.35rem; margin: 0 0 0.3em; }
p { margin: 0 0 1em; }

.wrap { width: min(68rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(44rem, 100% - 2.5rem); margin-inline: auto; }

.skip {
  position: absolute; left: -10000px; top: 0;
  background: var(--sun); color: var(--navy-deep); padding: 0.6rem 1rem; font-weight: 700; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header and navigation */
.site-header { background: var(--navy); color: var(--cream); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.6rem 1.5rem; padding-block: 1rem;
}
.brand {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--cream); text-decoration: none; letter-spacing: 0.01em;
}
.brand:hover { color: var(--sun); }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 600; padding: 0.25rem 0; display: inline-block; }
.site-nav a:hover { color: var(--sun); }
.site-nav a[aria-current="page"] { color: var(--sun); border-bottom: 2px solid var(--sun); }

/* Hero band with a scalloped "harbor" edge drawn in CSS colour */
.hero {
  background: var(--navy); color: var(--cream);
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem);
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px;
  background: radial-gradient(circle at 12px 18px, var(--cream) 12px, transparent 12.5px) repeat-x;
  background-size: 24px 18px;
}
.hero h1 { color: var(--cream); max-width: 18ch; }
.hero h1 .accent { color: var(--sun); display: block; }
.hero .lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); max-width: 40rem; color: #e9eef3; }
.kicker {
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sun); margin-bottom: 0.8rem;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.button {
  display: inline-block; padding: 0.8rem 1.3rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; line-height: 1.2;
}
.button-primary { background: var(--sun); color: var(--navy-deep); }
.button-primary:hover { background: #ffd56e; color: var(--navy-deep); }
.button-ghost { border-color: var(--cream); color: var(--cream); }
.button-ghost:hover { background: var(--cream); color: var(--navy); }

/* Sections */
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-intro { max-width: 40rem; color: var(--muted); }

/* The bakes: big type in place of photos */
.bakes { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.bake {
  background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--crust);
  border-radius: 6px; padding: 1.4rem 1.4rem 1.2rem;
}
.bake:nth-child(2) { border-top-color: var(--sea); }
.bake:nth-child(3) { border-top-color: var(--sun); }
.bake .bake-name { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2rem); color: var(--navy); margin: 0 0 0.35rem; }
.bake p { margin: 0; color: var(--muted); }
.note { margin-top: 1.4rem; color: var(--muted); }
.note strong { color: var(--ink); }

/* Steps */
.steps { list-style: none; counter-reset: step; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--navy); color: var(--sun);
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center;
}
.steps h3 { margin-bottom: 0.25rem; }
.steps p { color: var(--muted); margin: 0; }

/* Key details */
.details { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 0; }
.details div { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; }
.details dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--crust); }
.details dd { margin: 0.25rem 0 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.details a { font-weight: 700; }

/* Questions */
.faq { margin: 1.4rem 0 0; }
.faq dt { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--navy); margin-top: 1.2rem; }
.faq dd { margin: 0.25rem 0 0; color: var(--ink); }

/* Page header for inner pages */
.page-head { background: var(--navy); color: var(--cream); padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.8rem, 6vw, 4.2rem); position: relative; }
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 18px;
  background: radial-gradient(circle at 12px 18px, var(--cream) 12px, transparent 12.5px) repeat-x;
  background-size: 24px 18px;
}
.page-head h1 { color: var(--cream); margin-bottom: 0.3em; }
.page-head p { color: #e9eef3; max-width: 40rem; margin: 0; font-size: 1.15rem; }

/* Contact layout */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

.call-card { background: var(--navy); color: var(--cream); border-radius: 8px; padding: 1.5rem; }
.call-card h2 { color: var(--cream); font-size: 1.5rem; }
.call-card .phone-big { font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 700; color: var(--sun); text-decoration: none; overflow-wrap: anywhere; }
.call-card .phone-big:hover { text-decoration: underline; }
.call-card p { color: #e9eef3; }
.call-card dl { margin: 1.2rem 0 0; }
.call-card dt { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sun); margin-top: 0.9rem; }
.call-card dd { margin: 0.15rem 0 0; }

/* Form */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; position: relative; }
.form-card h2 { font-size: 1.5rem; }
form label { display: block; font-weight: 700; margin: 1rem 0 0.3rem; }
form .optional { font-weight: 400; color: var(--muted); }
form input, form textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 2px solid #6f7b87; border-radius: 6px; padding: 0.65rem 0.75rem;
}
form input:focus, form textarea:focus { border-color: var(--navy); }
form .hint { font-size: 0.95rem; color: var(--muted); margin: 0.3rem 0 0; }
form button {
  margin-top: 1.3rem; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--navy); color: var(--cream); border: 0; border-radius: 999px; padding: 0.85rem 1.6rem;
}
form button:hover { background: var(--sea); }
.form-trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Prose pages */
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #d9e1e8; padding: 2.5rem 0 2rem; margin-top: 0; }
.site-footer a { color: var(--sun); }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer h2 { color: var(--cream); font-size: 1.15rem; margin-bottom: 0.4rem; }
.site-footer p { margin: 0 0 0.4rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.3rem; }
.site-footer .test-note { grid-column: 1 / -1; border-top: 1px solid #2c4560; padding-top: 1rem; font-size: 0.95rem; color: #b9c6d2; }
.spaced-top { margin-top: 2.5rem; }
.call-card .call-foot { margin-top: 1.2rem; margin-bottom: 0; }
