/* ==========================================================================
   Gull Rock — Coastal Apparel
   Palette and type per BRAND-GUIDELINES.md v1.0 (July 2026)
   ========================================================================== */

:root {
  /* Core palette */
  --navy:      #0C2A43; /* Deep Harbor Navy */
  --teal:      #2C7A7B; /* Coastal Teal */
  --white:     #FFFFFF; /* Crisp White */
  --driftwood: #8A8D91; /* Driftwood Gray */
  --gold:      #C6A15B; /* Metallic Gold */

  /* Extended: reverse-on-navy tints */
  --mist:      #B9C4CE; /* Mist Blue — secondary text on navy */
  --seaglass:  #7FB6B6; /* Sea Glass — teal accent on navy */

  /* Derived from palette (opacity only, no new hues) */
  --navy-scrim: rgba(12, 42, 67, 0.30);
  --hairline:   rgba(138, 141, 145, 0.28);
  --tint:       rgba(185, 196, 206, 0.16);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --track-head: 0.17em;   /* +160 to +180 per guidelines */
  --track-label: 0.22em;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 11vw, 9rem);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  padding: .6rem 1rem; background: var(--navy); color: var(--white);
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 780px; text-align: center; }
.section { padding: var(--section-y) 0; scroll-margin-top: var(--header-h); }

/* Type primitives -------------------------------------------------------- */
.label {
  font-weight: 400;
  font-size: .72rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--driftwood);
}
.label--light { color: var(--mist); }
.label--gold  { color: var(--gold); }

.section-title {
  margin-top: 1rem;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: var(--track-head);
  text-transform: uppercase;
  color: var(--navy);
}
.section-title--light { color: var(--white); }

.rule {
  display: block; width: 48px; height: 1px;
  margin: 1.75rem auto; background: var(--gold);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 2rem;
  font-weight: 400; font-size: .74rem;
  letter-spacing: var(--track-label); text-transform: uppercase;
  border: 1px solid currentColor; background: transparent; cursor: pointer;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.btn--light { color: var(--white); }
.btn--light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--gold { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.btn--gold:hover { background: transparent; color: var(--gold); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--white); color: var(--navy);
  box-shadow: 0 1px 0 var(--hairline);
}
.site-header__inner {
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-header__brand img { width: 220px; min-width: 140px; height: auto; }

.site-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.site-nav a {
  font-weight: 400; font-size: .72rem;
  letter-spacing: var(--track-label); text-transform: uppercase;
  padding: .5rem 0; border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-nav a:hover { border-bottom-color: var(--gold); }

@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .site-nav a:not(:last-child) { display: none; }
  .site-header__brand img { width: 170px; }
}

/* Hero ------------------------------------------------------------------- */
/* Text sits in the navy upper sky: clear of the sun (left) and the gull (right). */
.hero {
  position: relative;
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  min-height: 520px; max-height: 1000px;
  display: flex; justify-content: center; align-items: flex-start;
  color: var(--white); background: var(--navy);
  overflow: hidden; text-align: center;
}
.hero__art, .hero__art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__art img { object-fit: cover; object-position: 60% 70%; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 55%; z-index: 1;
  background: linear-gradient(to bottom, rgba(12,42,67,.30), rgba(12,42,67,0));
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; padding: clamp(2.5rem, 9vh, 6rem) var(--gutter) 0; }
.hero__title {
  margin: .9rem 0 .5rem;
  font-weight: 500;
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: var(--track-head);
  text-transform: uppercase;
}
.hero__sub { font-weight: 300; font-size: 1.02rem; margin-bottom: 1.75rem; }
.label--light { color: var(--white); opacity: .85; }

/* Collection ------------------------------------------------------------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto; }
.section-lede { color: var(--navy); font-size: 1.02rem; }

.filters {
  display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 2rem;
  margin: 3.5rem 0 1rem;
}
.no-js .filters, html:not(.js) .filters { display: none; }
.filter {
  background: none; border: 0; border-bottom: 1px solid transparent;
  padding: .4rem 0; cursor: pointer;
  font-weight: 400; font-size: .72rem;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--driftwood);
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.filter:hover { color: var(--navy); }
.filter.is-active { color: var(--navy); border-bottom-color: var(--gold); }

.series { margin-top: clamp(3rem, 6vw, 4.5rem); }
.series[hidden] { display: none; }
.series__head {
  display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem;
  padding-bottom: 1.25rem; margin-bottom: 2rem;
  border-bottom: 1px solid var(--hairline);
}
.series__title {
  font-weight: 500; font-size: .95rem;
  letter-spacing: var(--track-head); text-transform: uppercase;
}
.series__note { font-size: .9rem; color: var(--driftwood); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.25rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; }
/* The art is printed on cream paper; show it whole, edge to edge. */
.card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--white); box-shadow: 0 0 0 1px var(--hairline); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.02); }

.card__body {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  column-gap: 1rem; padding-top: 1rem;
}
.card__no {
  grid-column: 1 / -1; margin-bottom: .15rem;
  font-weight: 400; font-size: .66rem;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--gold);
}
.card__name {
  grid-column: 1;
  font-weight: 500; font-size: .9rem;
  letter-spacing: var(--track-head); text-transform: uppercase;
}
.card__status { grid-column: 1; font-size: .84rem; color: var(--driftwood); }
.card__cta {
  grid-column: 2; grid-row: 2 / span 2;
  font-weight: 400; font-size: .68rem;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--teal);
  padding: .35rem 0; border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.card__cta:hover { border-bottom-color: var(--teal); }

@media (max-width: 600px) {
  .series__head { flex-direction: column; gap: .25rem; }
}

.collection__note {
  margin-top: clamp(3.5rem, 6vw, 5rem);
  text-align: center; font-size: .88rem; color: var(--driftwood);
}

/* Story ------------------------------------------------------------------ */
.story { background: var(--tint); }
.story__mark { width: 96px; height: auto; margin: 0 auto 2rem; }
.story__body p { font-size: 1.05rem; line-height: 1.9; }
.story__body p + p { margin-top: 1.4rem; }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  margin-top: clamp(3.5rem, 6vw, 5rem); padding-top: 3rem;
  border-top: 1px solid var(--hairline);
}
.pillar__title {
  font-weight: 500; font-size: .78rem;
  letter-spacing: var(--track-head); text-transform: uppercase;
  margin-bottom: .6rem;
}
.pillar p { font-size: .9rem; color: var(--driftwood); line-height: 1.7; }
@media (max-width: 720px) { .pillars { grid-template-columns: 1fr; gap: 2rem; } }

/* Notify ----------------------------------------------------------------- */
.notify { background: var(--navy); color: var(--white); }
.notify__lede { margin: 1.5rem auto 2.5rem; max-width: 30rem; color: var(--mist); }
.notify__form {
  display: flex; gap: .75rem; max-width: 30rem; margin: 0 auto;
}
.notify__form input[type="email"] {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem;
  background: transparent; color: var(--white);
  border: 1px solid rgba(185, 196, 206, 0.45);
  font-weight: 300; font-size: .95rem;
  transition: border-color .4s var(--ease);
}
.notify__form input::placeholder { color: var(--mist); opacity: .8; }
.notify__form input:focus { outline: none; border-color: var(--seaglass); }
.notify__status { min-height: 1.75rem; margin-top: 1.25rem; font-size: .9rem; color: var(--seaglass); }
@media (max-width: 480px) { .notify__form { flex-direction: column; } }

/* Footer ----------------------------------------------------------------- */
.site-footer {
  background: var(--navy); color: var(--mist);
  border-top: 1px solid rgba(185, 196, 206, 0.14);
  padding: 3.5rem 0 3rem;
}
.site-footer__inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem 3rem;
}
.site-footer__brand img { width: 200px; min-width: 140px; height: auto; }
.site-footer__nav { display: flex; gap: 2rem; justify-content: center; }
.site-footer__nav a, .site-footer__meta, .site-footer__copy {
  font-weight: 400; font-size: .68rem;
  letter-spacing: var(--track-label); text-transform: uppercase;
}
.site-footer__nav a { transition: color .4s var(--ease); }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__meta { color: var(--driftwood); }
.site-footer__copy { grid-column: 1 / -1; color: var(--driftwood); padding-top: 1.5rem; border-top: 1px solid rgba(185, 196, 206, 0.14); }

@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .site-footer__nav { flex-wrap: wrap; gap: 1rem 2rem; }
}

/* Landing / sign in ------------------------------------------------------ */
.landing__wrap { display: grid; grid-template-columns: 1fr minmax(360px, 480px); min-height: 100vh; min-height: 100svh; }
.landing__art { position: relative; background: var(--navy); }
.landing__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.landing__panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.5rem, 6vw, 4rem);
  background: var(--white);
}
.landing__logo { width: 260px; max-width: 100%; min-width: 140px; height: auto; margin-bottom: clamp(3rem, 8vh, 5rem); }
.landing__title {
  font-weight: 500; font-size: 1.1rem;
  letter-spacing: var(--track-head); text-transform: uppercase;
}
.rule--left { margin: 1.25rem 0 2rem; }
.landing__form { display: flex; flex-direction: column; }
.landing__form label {
  font-weight: 400; font-size: .68rem;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--driftwood); margin-bottom: .4rem;
}
.landing__form input {
  min-height: 48px; padding: 0 1rem; margin-bottom: 1.4rem;
  border: 1px solid var(--hairline); background: var(--white);
  font-weight: 300; font-size: .95rem;
  transition: border-color .4s var(--ease);
}
.landing__form input:focus { outline: none; border-color: var(--teal); }
.btn--navy { width: 100%; margin-top: .4rem; color: var(--white); background: var(--navy); border-color: var(--navy); }
.btn--navy:hover { background: var(--teal); border-color: var(--teal); }
.landing__link {
  align-self: flex-start; margin-top: 2rem;
  font-weight: 400; font-size: .68rem;
  letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--teal); border-bottom: 1px solid transparent; padding: .3rem 0;
  transition: border-color .4s var(--ease);
}
.landing__link:hover { border-bottom-color: var(--teal); }

@media (max-width: 760px) {
  .landing__wrap { grid-template-columns: 1fr; grid-template-rows: 42vh auto; }
  .landing__logo { margin-bottom: 2.5rem; }
}

@media (max-width: 560px) {
  .hero__content { padding-top: 1.75rem; }
  .hero__title { font-size: 1.55rem; margin: .6rem 0 .35rem; }
  .hero__sub { font-size: .92rem; margin-bottom: 1.1rem; }
  .hero .btn { min-height: 42px; padding: 0 1.4rem; }
}
