/* Honolulu Yacht Management — single stylesheet.
   Vocabulary: CLAUDE.md. Navy ink / sand paper / brass accent.
   Fraunces for display, Source Sans 3 for text. 4-pt spacing scale. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-var.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2212;
}

:root {
  --ink: #152A3D;
  --ink-soft: #46586B;
  --ink-raise: #1E3A52;
  --paper: #F7F3EB;
  --sand: #EDE6D8;
  --brass: #7E5C1F;
  --line: #D8CFBE;
  --white: #FFFFFF;
  --scrim: rgba(13, 26, 38, 0.66);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.375rem, 7vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h3 { font-size: 1.375rem; }

p { max-width: 68ch; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.section--navy :focus-visible,
.cta-band :focus-visible,
.footer :focus-visible,
.hero :focus-visible,
.page-hero :focus-visible {
  outline-color: var(--white);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: var(--s3) var(--s5);
  z-index: 100;
}
.skip-link:focus { left: 0; }

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--s5);
}

/* ---------- Header ---------- */

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

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s5);
  padding-block: var(--s3);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.15;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s2);
  order: 3;
  width: 100%;
}

.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: var(--s2) var(--s3);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--brass); }

.header-cta { margin-left: auto; }

@media (min-width: 960px) {
  .header-row { flex-wrap: nowrap; }
  .nav { order: 0; width: auto; margin-left: var(--s5); }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--s2) var(--s5);
  font-family: var(--font-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
}

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-raise); }

.btn-paper { background: var(--paper); color: var(--ink); }
.btn-paper:hover { background: var(--white); }

.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.btn-wide { width: 100%; }

.text-link { color: var(--brass); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Hero ---------- */

.hero, .page-hero { position: relative; background: var(--ink); }

.hero { min-height: min(86vh, 720px); display: flex; align-items: flex-end; }
.page-hero { min-height: 320px; display: flex; align-items: flex-end; }

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  width: 100%;
  background: var(--scrim);
  color: var(--white);
  padding-block: var(--s6);
  max-width: none;
}

.hero-content > * {
  width: min(100%, 1120px);
  max-width: none;
  margin-inline: auto;
}

.hero-content h1 { margin-bottom: var(--s3); }

.hero .lede { font-size: 1.1875rem; }

@media (min-width: 720px) {
  .hero-content { padding-block: var(--s7); }
}

/* Keep hero text aligned with .container gutters */
.hero-content { padding-inline: var(--s5); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }

/* ---------- Sections ---------- */

.section { padding-block: var(--s8); }
.section--sand { background: var(--sand); }

@media (min-width: 720px) {
  .section { padding-block: var(--s9); }
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: var(--s3);
}

.eyebrow-light { color: var(--paper); }

.section-head { margin-bottom: var(--s6); }

.section-lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  margin-top: var(--s3);
}

.fine { font-size: 0.875rem; color: var(--ink-soft); margin-top: var(--s3); }

/* ---------- Plans ---------- */

.plans {
  display: grid;
  gap: var(--s4);
}

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: var(--s6);
}

.section--sand .plan { background: var(--paper); }

.plan-name { margin-bottom: var(--s1); }

.plan-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: var(--s4);
}

.plan > p { margin-bottom: var(--s4); }

.plan-list { list-style: none; }

.plan-list li {
  padding-left: var(--s5);
  position: relative;
  margin-bottom: var(--s2);
}

.plan-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--brass);
}

.plans-note { margin-top: var(--s5); color: var(--ink-soft); }
.plans-note a { color: var(--brass); font-weight: 600; }

@media (min-width: 720px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
}

/* ---------- Steps ---------- */

.steps { list-style: none; max-width: 760px; }

.steps li {
  display: flex;
  gap: var(--s4);
  align-items: baseline;
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
  font-size: 1.125rem;
}

.steps li:last-child { border-bottom: none; }

.step-n {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--brass);
  flex: 0 0 var(--s6);
}

.section .steps + p { margin-top: var(--s5); }

/* ---------- Split sections ---------- */

.split {
  display: grid;
  gap: var(--s6);
  align-items: center;
}

.figure img { width: 100%; border-radius: 2px; }

@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .split--reverse .figure { order: 2; }
}

.split-copy h2 { margin-bottom: var(--s4); }
.split-copy p { margin-bottom: var(--s4); }

.price-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

/* ---------- Price tables ---------- */

.price-table {
  width: 100%;
  max-width: 760px;
  border-collapse: collapse;
}

.price-table th {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: left;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--ink);
}

.price-table th:last-child, .price-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.price-table td {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.price-table td:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
}

.table-note {
  display: block;
  font-size: 0.875rem;
  color: var(--ink-soft);
  font-weight: 400;
}

/* ---------- Harbors ---------- */

.harbor-list { list-style: none; }

.harbor {
  display: grid;
  gap: var(--s4);
  padding-block: var(--s5);
  border-bottom: 1px solid var(--line);
}

.harbor:last-child { border-bottom: none; }

.harbor img { border-radius: 2px; }

.harbor h3 { margin-bottom: var(--s2); }

.harbor p { color: var(--ink-soft); }

@media (min-width: 720px) {
  .harbor { grid-template-columns: 320px 1fr; align-items: center; gap: var(--s6); }
  .harbor > div:only-child { grid-column: 1 / -1; }
}

/* ---------- Notice ---------- */

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  background: var(--white);
  padding: var(--s5);
  margin-block: var(--s6);
  max-width: 760px;
}

.section--sand .notice { background: var(--paper); }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--s8);
}

.cta-band h2 { margin-bottom: var(--s2); }
.cta-band p { color: #C8D2DC; }

/* ---------- Prose ---------- */

.prose h1 { margin-bottom: var(--s5); }
.prose h2 { margin-top: var(--s6); margin-bottom: var(--s3); }
.prose p { margin-bottom: var(--s4); }
.prose ul { padding-left: var(--s5); }
.prose li { margin-bottom: var(--s2); }
.prose a { color: var(--brass); font-weight: 600; }
.prose .btn { color: var(--white); font-weight: 600; margin-top: var(--s3); }

/* ---------- Form ---------- */

.form-layout { display: grid; gap: var(--s6); }

@media (min-width: 880px) {
  .form-layout { grid-template-columns: 5fr 7fr; gap: var(--s8); align-items: start; }
  .form-intro { position: sticky; top: var(--s6); }
  .form-panel { grid-column: 2; }
}

.form-intro h1 { margin-bottom: var(--s4); }

.form { display: grid; gap: var(--s4); }

.field { display: grid; gap: var(--s1); }

.field label { font-weight: 600; font-size: 0.9375rem; }

.field-row { display: grid; gap: var(--s4); }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.input {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--ink-soft);
  border-radius: 2px;
  padding: var(--s3);
  min-height: 48px;
  width: 100%;
}

textarea.input { resize: vertical; min-height: 120px; }

.input:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }

.form .fine { margin-top: calc(-1 * var(--s2)); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-panel { display: none; border: 1px solid var(--line); padding: var(--s5); background: var(--white); }
.form-panel h2 { font-size: 1.375rem; margin-bottom: var(--s3); }
.form-result { border-left: 3px solid var(--brass); }
.form-error { border-left: 3px solid #8C2F1E; }

.form-panel:target, .form-panel.show { display: block; }

/* When the sent panel is shown after a non-JS submit, the form has done its job */
#sent:target ~ .form { display: none; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: var(--white);
  padding-block: var(--s8) var(--s6);
}

.footer-grid { display: grid; gap: var(--s6); }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1.4fr; gap: var(--s7); }
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: var(--s4);
}

.footer-head {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ABB8C4;
  margin-bottom: var(--s3);
}

.footer-head + .footer-head, p.footer-line + .footer-head { margin-top: var(--s5); }

.footer-line { color: #C8D2DC; margin-bottom: var(--s4); }

.footer-grid nav a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding-block: var(--s2);
  min-height: 40px;
}

.footer-grid nav a:hover { text-decoration: underline; }

.footer .btn { margin-top: var(--s2); }

.footer-legal {
  border-top: 1px solid #2C4257;
  margin-top: var(--s7);
  padding-top: var(--s5);
  font-size: 0.875rem;
  color: #C8D2DC;
}

.footer-legal p { margin-bottom: var(--s3); max-width: none; }

.credits summary {
  cursor: pointer;
  font-weight: 600;
  padding-block: var(--s2);
}

.credits ul { list-style: none; padding-left: 0; margin-block: var(--s3); }

.credits li { margin-bottom: var(--s2); }

.credits a { color: #C8D2DC; }
