/*
  Fleur de Lynn — pre-launch website.
  Theme values are the custom properties below. Fonts are self-hosted in fonts/;
  nothing on this page is requested from a third party.
*/

/* Fraunces is variable on optical size, so font-optical-sizing:auto lets large
   display text pick up the display cut automatically. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff2") format("woff2");
  font-weight: 500;
  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+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Source Sans 3 is variable on weight 200–900, so one file covers 400 and 600. */
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.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+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC,
                 U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bay-ink: #123447;
  --cobalt: #155e8a;
  --sea-glass: #55b8b5;
  --fog: #eef3f0;
  --sand: #f6f0e6;
  --fired-gold: #c49a45;
  --kelp: #435e55;
  --charcoal: #243238;
  --paper: #fffdf8;

  --body-muted: #4c5b62;
  --hairline: rgba(18, 52, 71, 0.14);
  --hairline-strong: rgba(18, 52, 71, 0.28);

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius-sm: 10px;
  --radius-lg: 16px;
  --control: 44px;
  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(60px, 8vw, 118px);
  --max: 1440px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--charcoal);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2 {
  margin: 0;
  color: var(--bay-ink);
  font-family: var(--display);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--cobalt); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; z-index: 60; top: 8px; left: 8px;
  padding: 12px 18px; background: var(--bay-ink); border-radius: var(--radius-sm);
  color: #fff; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }

.eyebrow {
  margin: 0 0 12px;
  color: var(--cobalt);
  font-size: .75rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}

/* ------------------------------------------------------------- announce --- */

.announce {
  display: flex; gap: 10px; align-items: center; justify-content: center;
  margin: 0; padding: 12px var(--gutter);
  background: var(--bay-ink); color: #e4eeeb;
  font-size: .9rem; font-weight: 600; text-align: center;
}
.announce__dot {
  flex: none; width: 9px; height: 9px;
  background: var(--sea-glass); border-radius: 50%;
}

/* --------------------------------------------------------------- header --- */

.site-header {
  position: sticky; z-index: 30; top: 0;
  background: var(--paper); border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  padding-block: 14px;
}

.lockup { display: inline-flex; flex-direction: column; color: var(--bay-ink); text-decoration: none; }
.lockup__name {
  font-family: var(--display); font-optical-sizing: auto;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem); letter-spacing: -.03em; line-height: 1;
}
.lockup__descriptor {
  margin-top: 7px;
  font-size: .62rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
}

.tide { width: 100%; height: 8px; margin-top: 5px; }
.tide path { fill: none; stroke: var(--fired-gold); stroke-width: 2; stroke-linecap: round; }
.tide--wide { width: min(320px, 100%); height: 12px; margin-top: 34px; }

.nav-toggle {
  display: none; gap: 9px; align-items: center;
  min-height: var(--control); padding: 0 16px;
  background: transparent; border: 1px solid var(--hairline-strong); border-radius: 999px;
  color: var(--bay-ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block; width: 16px; height: 2px;
  background: var(--bay-ink); border-radius: 2px; content: "";
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before { position: absolute; top: -5px; }
.nav-toggle__bars::after { position: absolute; top: 5px; }

.site-nav ul {
  display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 30px);
  margin: 0; padding: 0; list-style: none;
}
.site-nav a {
  display: inline-block; padding: 6px 0;
  color: var(--bay-ink); font-size: .95rem; font-weight: 600;
  text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--fired-gold); }

/* ----------------------------------------------------------------- hero --- */

.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: var(--fog);
}
.hero__copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 106px) var(--gutter);
}
.hero h1 { font-size: clamp(2.9rem, 6.4vw, 5.6rem); line-height: .95; }

.lead {
  max-width: 46ch; margin: 26px 0 0;
  color: var(--body-muted); font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}
.lead--sm { margin-top: 18px; font-size: 1.05rem; }

.rule-note {
  max-width: 46ch; margin: 18px 0 0; padding-left: 14px;
  border-left: 2px solid var(--fired-gold);
  color: var(--bay-ink); font-family: var(--display); font-optical-sizing: auto;
  font-size: 1.16rem;
}

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--control); padding: 0 22px;
  background: transparent; border: 1px solid var(--bay-ink); border-radius: 999px;
  color: var(--bay-ink); font: inherit; font-weight: 700;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--bay-ink); color: #fff; }

.hero__image { position: relative; overflow: hidden; }
.hero__image img { width: 100%; height: 100%; object-fit: cover; object-position: 56% center; }

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

.section { padding-block: var(--section); }
.section--fog { background: var(--fog); }
.section--ink { background: var(--bay-ink); color: #dfeae7; }
.section--ink .eyebrow { color: var(--sea-glass); }
.section--ink h2 { max-width: 18ch; color: #fff; font-size: clamp(2.1rem, 5vw, 4rem); }
.section--ink p { max-width: 58ch; margin-top: 26px; font-size: 1.05rem; }

.head { max-width: 62ch; }
.head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }

.prose { max-width: 62ch; margin-top: 24px; color: var(--body-muted); }
.prose .lead--sm { color: var(--charcoal); }
.prose p + p { margin-top: 18px; }

.panel {
  max-width: 62ch; margin-top: 32px; padding: 22px 24px;
  background: var(--paper); border: 1px solid var(--hairline);
  border-left: 3px solid var(--sea-glass); border-radius: var(--radius-lg);
  color: var(--body-muted);
}
.panel__title {
  margin: 0 0 8px; color: var(--bay-ink);
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}

/* -------------------------------------------------------------- gallery --- */

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.filter {
  min-height: var(--control); padding: 0 18px;
  background: var(--paper); border: 1px solid var(--hairline-strong); border-radius: 999px;
  color: var(--bay-ink); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
}
.filter:hover { border-color: var(--cobalt); }
.filter[aria-pressed="true"] { background: var(--bay-ink); border-color: var(--bay-ink); color: #fff; }

.gallery {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  margin: 26px 0 0; padding: 0; list-style: none;
}

.card {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 10px 10px 0;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }

.card__media {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--fog); border-radius: var(--radius-sm);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-block; padding: 6px 11px;
  background: var(--fog); border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--bay-ink);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.card__badge { position: absolute; top: 12px; left: 12px; background: rgba(255,253,248,.94); }

.card__body { display: flex; flex: 1; flex-direction: column; padding: 18px 10px 20px; }
.card__title {
  display: block; color: var(--bay-ink);
  font-family: var(--display); font-optical-sizing: auto; font-size: 1.3rem; line-height: 1.2;
}
.card__meta { display: block; margin-top: 8px; color: var(--body-muted); font-size: .9rem; }
.card__action {
  display: inline-block; align-self: flex-start; margin-top: 16px;
  color: var(--cobalt);
  font-size: .86rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 2px solid var(--sea-glass);
}

.gallery__status { margin-top: 20px; color: var(--body-muted); font-size: .92rem; }

/* A set Lynn made together, introduced once above its run of cards. */
.series-head {
  grid-column: 1 / -1;
  padding: 4px 0 2px;
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
}
.gallery > .series-head:first-child { border-top: 0; margin-top: 0; }
.series-head__name {
  margin: 14px 0 4px;
  font-family: var(--font-display, inherit);
  font-size: 1.12rem; font-weight: 600; letter-spacing: .01em;
}
.series-head__blurb {
  margin: 0; max-width: 62ch;
  color: var(--body-muted); font-size: .94rem; line-height: 1.55;
}
.card__series {
  display: block; margin-top: 2px;
  color: var(--body-muted); font-size: .78rem;
  letter-spacing: .07em; text-transform: uppercase;
}
.detail__series {
  margin: 0 0 12px; padding-left: 12px;
  border-left: 2px solid var(--sea-glass);
  color: var(--body-muted); font-size: .95rem;
}

.noscript {
  padding: 24px 26px; background: var(--paper);
  border: 1px solid var(--hairline); border-left: 3px solid var(--sea-glass);
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------- footer --- */

.site-footer { padding: clamp(40px, 6vw, 66px) 0; background: var(--bay-ink); color: #cbd9d6; }
.site-footer__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px;
}
.site-footer .lockup__name { display: block; color: #fff; }
.site-footer .lockup__descriptor { display: block; margin-top: 7px; }
.site-footer .tide { max-width: 240px; }
.site-footer nav ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a {
  display: inline-block; padding: 4px 0;
  color: #dfeae7; font-size: .95rem; text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-footer a:hover, .site-footer a:focus-visible { border-bottom-color: var(--sea-glass); }
.site-footer__note { margin: 0; font-size: .88rem; }

/* --------------------------------------------------------------- dialog --- */

.dialog { padding: 0; border: 0; background: transparent; color: var(--charcoal); }
.dialog::backdrop { background: rgba(18, 52, 71, .55); }
.dialog {
  width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 48px);
  margin: auto; overflow: hidden; border-radius: var(--radius-lg);
}
.dialog__inner { display: flex; flex-direction: column; max-height: 100%; background: var(--paper); }
.dialog__bar {
  display: flex; flex: none; gap: 16px; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--hairline);
}
.dialog__eyebrow {
  margin: 0; color: var(--cobalt);
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.dialog__body { flex: 1; padding: 22px 20px 26px; overflow-y: auto; }

.icon-btn {
  display: grid; flex: none; place-items: center;
  width: var(--control); height: var(--control);
  background: transparent; border: 1px solid var(--hairline-strong); border-radius: 50%;
  color: var(--bay-ink); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.icon-btn:hover { border-color: var(--cobalt); }

.detail__media {
  aspect-ratio: 4 / 3; overflow: hidden; background: var(--fog); border-radius: var(--radius-sm);
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.detail h2 { margin-top: 14px; font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
.detail__desc { margin-top: 16px; color: var(--body-muted); }
.detail__note {
  margin-top: 20px; padding: 14px 16px;
  background: var(--fog); border-left: 3px solid var(--sea-glass);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  color: var(--bay-ink); font-size: .92rem;
}

/* ----------------------------------------------------------- responsive --- */

@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

@media (max-width: 899px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  /* aspect-ratio drives height from width here, so no min-height */
  .hero__image { width: 100%; aspect-ratio: 4 / 3; }
}

@media (max-width: 767px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; flex-basis: 100%; padding-top: 8px; border-top: 1px solid var(--hairline); }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { display: block; min-height: var(--control); padding: 11px 0; }
  .dialog { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border-radius: 0; }
}

@media (max-width: 400px) {
  body { font-size: 16px; }
  .announce { font-size: .82rem; text-align: left; }
  .nav-toggle { padding: 0 13px; font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover { transform: none; }
  .skip-link { transition: none; }
}
