/* ==========================================================================
   Hawaiʻi British Cats — shared stylesheet
   Used by: index.html, kittens.html, essentials.html
   Ocean theme, light-on-dark. Mobile-first; breakpoints are min-width.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --teal:       #4ccbcc;
  --aqua:       #9de4de;
  --deep-teal:  #2a9d9e;
  --ocean:      #0d2b2e;
  --surface:    #13383b;
  --cream:      #eaf6f4;
  --muted:      #7fa8a6;

  --hairline:   rgba(76, 203, 204, 0.22);
  --glow:       rgba(76, 203, 204, 0.15);

  --maxw:       1120px;
  --maxw-text:  62ch;
  --pad:        clamp(1.125rem, 5vw, 2.5rem);
  --gap-grid:   4px;
  --radius:     14px;
  --radius-lg:  20px;

  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                  Helvetica, Arial, sans-serif;
  --font-display: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ocean);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); }
a:hover { color: var(--aqua); }

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 9vw, 4rem); }
h2 { font-size: clamp(1.75rem, 6vw, 2.75rem); }
h3 { font-size: clamp(1.125rem, 3.5vw, 1.375rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  color: var(--aqua);
}

.prose { max-width: var(--maxw-text); color: var(--cream); }
.prose p + p { margin-top: 0; }

.muted { color: var(--muted); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(3.25rem, 9vw, 6rem); }

.section--surface {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}

.section__head { margin-bottom: clamp(1.75rem, 5vw, 2.75rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--teal);
  color: var(--ocean);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--ocean);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 2px solid var(--teal);
  transition: background-color 0.18s ease, border-color 0.18s ease,
              transform 0.18s ease;
}
.btn:hover,
.btn:focus-visible {
  background: var(--aqua);
  border-color: var(--aqua);
  color: var(--ocean);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border-color: var(--deep-teal);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--teal);
  color: var(--ocean);
  border-color: var(--teal);
}

/* Two or more buttons: side by side where they fit, stacked when they don't. */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
}

/* --------------------------------------------------------------------------
   6. Site header / nav
   -------------------------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--ocean);
}

.site-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--cream);
}

.brand__mark {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: var(--cream);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--cream);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.site-nav a:hover { background: var(--surface); color: var(--aqua); }

.site-nav a[aria-current="page"] {
  color: var(--ocean);
  background: var(--teal);
}

@media (min-width: 720px) {
  .site-header__inner {
    flex-direction: row;
    justify-content: space-between;
    padding-block: 1.15rem;
  }
  .brand__mark { width: 54px; height: 54px; }
  .brand__name { font-size: 1.1875rem; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(2.25rem, 7vw, 4.5rem); }

.hero__inner {
  display: grid;
  gap: clamp(1.75rem, 6vw, 3.5rem);
  align-items: center;
}

.hero__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 50px -20px var(--glow);
}
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero h1 { margin-bottom: 0.5rem; }

.hero__sub {
  font-size: clamp(1.0625rem, 3.2vw, 1.3125rem);
  color: var(--aqua);
  margin-bottom: 1.75rem;
  max-width: 26ch;
}

.hero__tagline {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 3vw, 1.25rem);
  font-style: italic;
  color: var(--muted);
  max-width: 30ch;
}

@media (min-width: 860px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero__media { order: 2; }
  .hero__media img { aspect-ratio: 5 / 4; }
}

/* --------------------------------------------------------------------------
   8. Photo grid (full-bleed, Instagram style)
   -------------------------------------------------------------------------- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-grid);
}

.photo-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media (min-width: 700px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   9. About our cats
   -------------------------------------------------------------------------- */
.about__inner {
  display: grid;
  gap: clamp(1.75rem, 5vw, 3rem);
  align-items: start;
}

.about__figure { margin: 0; }

.about__figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 50px -22px var(--glow);
}

.about__caption {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--muted);
}

@media (min-width: 860px) {
  .about__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .about__figure img { aspect-ratio: 9 / 14; }
}

/* --------------------------------------------------------------------------
   10. Instagram band
   -------------------------------------------------------------------------- */
.instagram { text-align: center; }
.instagram__handle {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 5vw, 2rem);
  color: var(--teal);
  margin: 0.4rem 0 1.75rem;
}

/* --------------------------------------------------------------------------
   11. Waitlist
   -------------------------------------------------------------------------- */
.waitlist__inner { max-width: 46rem; margin-inline: auto; text-align: center; }
.waitlist .prose { margin-inline: auto; text-align: left; }
.waitlist__cta { margin-top: 2rem; }

.contact-line {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.9rem;
  color: var(--muted);
  font-size: 0.975rem;
}
.contact-line__sep { color: var(--deep-teal); }
.contact-line b { color: var(--cream); font-weight: 600; }

/* --------------------------------------------------------------------------
   12. Breeding cats
   -------------------------------------------------------------------------- */
.cats {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.cat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cat img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.cat__body { padding: 1.15rem 1.25rem 1.35rem; }
.cat__name { margin-bottom: 0.35rem; }

.cat__tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua);
  background: rgba(76, 203, 204, 0.12);
  border: 1px solid rgba(76, 203, 204, 0.45);
  border-radius: 999px;
}

.cat__meta { margin: 0; font-size: 0.95rem; }
.cat__meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cat__meta dd {
  margin: 0 0 0.55rem;
  color: var(--cream);
}
.cat__meta dd:last-child { margin-bottom: 0; }

@media (min-width: 620px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .cats { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   13. FAQ  (details/summary — keyboard navigable with no JS)
   -------------------------------------------------------------------------- */
.faq { max-width: 52rem; }

.faq__item {
  border-bottom: 1px solid var(--hairline);
}
.faq__item:first-of-type { border-top: 1px solid var(--hairline); }

.faq__q {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  cursor: pointer;
  list-style: none;
  color: var(--cream);
}
.faq__q::-webkit-details-marker { display: none; }

.faq__q h3 {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(1.0625rem, 3.2vw, 1.25rem);
  font-weight: 600;
}

.faq__q:hover h3 { color: var(--aqua); }

.faq__icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.2rem;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--deep-teal);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 50% 25%;
  background: var(--teal);
  height: 2px;
  margin-top: -1px;
  transition: transform 0.2s ease;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }

.faq__a {
  padding: 0 0.25rem 1.4rem;
  max-width: var(--maxw-text);
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: clamp(2.25rem, 6vw, 3.5rem);
  text-align: center;
}

.site-footer .brand { justify-content: center; }
.site-footer__mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--cream);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.site-footer__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   15. Interior content pages (/kittens, /essentials later)
   Additive only — no rule above this point is modified.
   -------------------------------------------------------------------------- */

/* Page intro: h1 + standfirst, in place of the home page's split hero. */
.page-intro { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.page-intro h1 { margin-bottom: 0.6rem; }
.page-intro .lede { max-width: 46ch; }

/* Long-form prose on these pages gains sub-headings and lists.
   index.html's .prose blocks contain only <p>, so these are inert there. */
.prose h3 {
  margin-top: 1.9em;
  margin-bottom: 0.5em;
}
.prose > h3:first-child { margin-top: 0; }

.prose ul {
  margin: 0 0 1.15em;
  padding-left: 1.35rem;
}
.prose li { margin-bottom: 0.4rem; }
.prose li::marker { color: var(--teal); }

/* A call to action sitting after a prose block. */
.cta { margin-top: clamp(1.5rem, 4vw, 2rem); }

/* Centred section variant — .contact-line and .button-row already centre
   themselves; this brings the heading with them. */
.section--center { text-align: center; }

/* Page intro with a call to action beside the heading.
   Stacks by default; splits at 860px to match index.html's hero. */
.page-intro__inner {
  display: grid;
  gap: clamp(1.5rem, 5vw, 3rem);
  align-items: center;
}

@media (min-width: 860px) {
  .page-intro__inner { grid-template-columns: 1fr auto; }
}

/* --------------------------------------------------------------------------
   16. Product cards (/essentials)
   Additive only — no rule in sections 1-15 is modified.
   Mirrors section 12 (.cats / .cat), with a square CONTAIN image tile:
   these are product shots, so nothing may be cropped.
   -------------------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.product {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Light rounded tile so white-background product shots do not glare
   against the ocean page. The tile is the image's container. */
.product__tile {
  margin: 0.9rem 0.9rem 0;
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
}

.product__tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 0.6rem;
}

.product__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.product__name { margin-bottom: 0.35rem; }

.product__tag {
  align-self: flex-start;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua);
  background: rgba(76, 203, 204, 0.12);
  border: 1px solid rgba(76, 203, 204, 0.45);
  border-radius: 999px;
}

.product__desc {
  margin: 0 0 1.15rem;
  font-size: 0.95rem;
  color: var(--cream);
}

.product__body .btn { align-self: flex-start; margin-top: auto; }

@media (min-width: 620px) {
  .products { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .products { grid-template-columns: repeat(3, 1fr); }
}

/* Intro portrait on /essentials, sitting where /kittens puts its button. */
.page-intro__figure { margin: 0; }
.page-intro__figure img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
}
