/* Sydney Flying Squadron. One stylesheet, no framework, system fonts.
   Palette drawn from the club's world: harbour navy, sail white, insignia red. */
:root {
  --navy: #0d2c4a;
  --navy-deep: #081d33;
  --red: #b52025;
  --sand: #f6f3ec;
  --ink: #1c2733;
  --mist: #5d6b7a;
  --line: #d9d4c8;
  --white: #ffffff;
  --link: #145a9e;
  --maxw: 68rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); }

/* Header */
.site-header { background: var(--navy); color: #fff; border-bottom: 4px solid var(--red); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { text-decoration: none; color: #fff; display: block; }
.brand-name { display: block; font-family: Georgia, serif; font-size: 1.35rem; letter-spacing: .02em; }
.brand-tag { display: block; font-size: .75rem; color: #b9c6d4; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem; }
.site-nav > ul > li { position: relative; }
.site-nav a { color: #fff; text-decoration: none; padding: .55rem .7rem; display: block; font-size: .95rem; }
.site-nav a:hover { background: var(--navy-deep); }
.site-nav li ul { display: none; position: absolute; left: 0; top: 100%; background: var(--navy-deep); min-width: 13rem; z-index: 5; padding: .3rem 0; }
.site-nav li:hover ul, .site-nav li:focus-within ul { display: block; }
.site-nav li ul a { padding: .45rem .9rem; font-size: .9rem; }
.nav-cta a { background: var(--red); font-weight: 600; border-radius: 3px; }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; background: var(--navy-deep); color: #fff; overflow: hidden; }
.hero img { width: 100%; height: min(56vh, 30rem); object-fit: cover; display: block; opacity: .85; }
.hero-text { position: absolute; inset: auto 0 0 0; padding: 2.5rem 0 1.5rem; background: linear-gradient(transparent, rgba(8, 29, 51, .85)); }
.hero-text h1 { color: #fff; margin: 0; }
.hero-text p { margin: .3rem 0 0; max-width: 46rem; }
.hero-credit { position: absolute; top: .5rem; right: .8rem; font-size: .7rem; color: #cfd8e2; }

/* Slots and cards */
.slots { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); margin: 1.5rem 0; }
.slot { background: var(--sand); border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.1rem; }
.slot h2 { margin: 0 0 .5rem; font-size: 1.1rem; }
.slot p { margin: .3rem 0; font-size: .95rem; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); padding: 0; list-style: none; }
.card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card img { height: 10rem; object-fit: cover; width: 100%; }
.card-body { padding: .9rem 1rem 1.1rem; }
.card h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.card p { margin: 0; font-size: .9rem; color: var(--mist); }

.section { padding: 2rem 0; }
.section-alt { background: var(--sand); }
article.prose, .prose { max-width: 46rem; }
.prose img { border-radius: 4px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
td, th { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--sand); }

.meta-line { color: var(--mist); font-size: .9rem; margin: 0 0 1rem; }
.badge { display: inline-block; background: var(--navy); color: #fff; font-size: .72rem; padding: .15rem .5rem; border-radius: 3px; text-transform: uppercase; letter-spacing: .05em; }
.badge-sample { background: var(--red); }
.notice { border-left: 4px solid var(--red); background: var(--sand); padding: .8rem 1rem; margin: 1rem 0; }
.notice-quiet { border-left-color: var(--mist); }
.archival { border-left: 4px solid var(--mist); background: var(--sand); padding: .8rem 1rem; margin: 1rem 0; color: var(--mist); }

.doc-download { display: flex; gap: .8rem; align-items: center; border: 1px solid var(--line); border-radius: 6px; padding: .8rem 1rem; margin: 1rem 0; background: var(--sand); }
.doc-download a { font-weight: 600; }
.doc-kind { font-size: .8rem; color: var(--mist); }

.price-set { display: flex; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.price { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.price small { font-weight: 400; color: var(--mist); }
.saving { color: var(--red); font-weight: 600; }

.btn { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: .6rem 1.2rem; border-radius: 4px; font-weight: 600; border: 0; font-size: 1rem; cursor: pointer; }
.btn:hover { background: #93191d; }
.btn-quiet { background: var(--navy); }

form.club-form { max-width: 32rem; }
form.club-form label { display: block; font-weight: 600; margin: .9rem 0 .2rem; }
form.club-form input[type=text], form.club-form input[type=email], form.club-form textarea, form.club-form select {
  width: 100%; padding: .55rem .6rem; border: 1px solid var(--mist); border-radius: 4px; font: inherit;
}
form.club-form .consent { display: flex; gap: .6rem; align-items: flex-start; margin: .8rem 0; font-weight: 400; }
form.club-form .consent input { margin-top: .3rem; }
.collection-notice { font-size: .85rem; color: var(--mist); border: 1px solid var(--line); border-radius: 4px; padding: .7rem .9rem; margin: 1rem 0; }

.boat-specs dt { font-weight: 700; color: var(--navy); }
.boat-specs dd { margin: 0 0 .6rem; }
.boat-specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0 1.5rem; }
.not-recorded { color: var(--mist); font-style: italic; }

.hours-table td, .hours-table th { border: 0; border-bottom: 1px solid var(--line); padding: .3rem .4rem; }

.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); padding-top: 2rem; padding-bottom: 1rem; }
.site-footer { background: var(--navy); color: #d7dee6; margin-top: 3rem; font-size: .92rem; }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .5rem; }
.site-footer a { color: #aecbe8; }
.site-footer p { margin: .25rem 0; }
.footnote { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: .8rem; padding-bottom: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .82rem; color: #93a5b6; }

.countdown { font-variant-numeric: tabular-nums; font-size: 1.2rem; color: var(--navy); font-weight: 700; }

.pagination { display: flex; gap: .5rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 2rem 0; }
.pagination a { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; }
.pagination .current { padding: .35rem .7rem; background: var(--navy); color: #fff; border-radius: 4px; }

@media (max-width: 800px) {
  .site-nav > ul { flex-direction: column; width: 100%; display: none; }
  .site-nav.open > ul { display: flex; }
  .site-nav li ul { position: static; display: block; padding-left: 1rem; background: transparent; }
  .nav-toggle { display: block; background: transparent; border: 1px solid #fff; color: #fff; padding: .4rem .9rem; border-radius: 4px; font: inherit; }
  .header-row { align-items: flex-start; }
}
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
}
