/* Newport Fish Co. Fresh sheet, written for this site only. */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--fog);
}
[id] { scroll-margin-top: 24px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0 0 var(--s2); }
h1 { font-size: var(--fs-h1); letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 var(--s2); max-width: var(--measure); }
a { color: inherit; }
::selection { background: var(--dawn); color: var(--ink); }
html { scrollbar-color: var(--steel) var(--ice); }
:focus-visible { outline: 2px solid var(--dawn); outline-offset: 3px; border-radius: 0; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 60;
  background: var(--dawn); color: var(--ink); padding: 10px 16px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus-visible { left: 8px; top: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.caps {
  font-size: var(--fs-caps); text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 700;
}
.muted { color: var(--steel); }

/* ---------- header: the shipping tag (A27) ---------- */
.site-head { background: var(--ink); color: var(--ice); position: relative; }
.head-inner { display: block; }
.tag-brand {
  display: block; text-decoration: none; color: var(--ice);
  margin-top: 0; width: min(300px, 62vw);
}
.tag-brand svg { display: block; width: 100%; height: auto; }
.tag-brand:hover .tag-body { transform: rotate(0.8deg); }
.tag-body { transform-origin: 50% 0; transform: rotate(0deg); transition: transform 400ms var(--ease-out); }

.site-nav { padding: 6px 0 14px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--gull); color: var(--ice);
  font: 700 var(--fs-caps) var(--body); text-transform: uppercase; letter-spacing: 0.14em;
  padding: 12px 18px; cursor: pointer; min-height: 44px;
  position: absolute; top: 14px; right: clamp(16px, 4vw, 40px); z-index: 51;
}
.nav-toggle:active { transform: translateY(1px); }
#nav-list { list-style: none; display: flex; gap: clamp(10px, 2.4vw, 34px); margin: 0; padding: 0; }
.nav-link {
  display: inline-block; padding: 12px 2px; min-height: 44px;
  text-decoration: none; color: var(--gull);
  font-size: var(--fs-caps); text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700;
  position: relative; transition: color var(--t-micro) ease;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 8px; height: 2px;
  background: var(--dawn); transition: right 220ms var(--ease-out);
}
.nav-link:hover, .nav-link:focus-visible { color: var(--white); }
.nav-link:hover::after, .nav-link:focus-visible::after { right: 0; }
.nav-link[aria-current="page"] { color: var(--white); }
.nav-link[aria-current="page"]::after { right: 0; background: var(--sea); }

@media (max-width: 760px) {
  .site-nav { padding: 0 0 12px; }
  .nav-toggle { display: inline-block; }
  #nav-list {
    display: none; position: absolute; z-index: 50; right: 0; left: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--slate);
    border-top: var(--rule-dark); padding: var(--s1) 0 var(--s2);
  }
  .site-nav.open #nav-list { display: flex; }
  #nav-list .nav-link { display: block; padding: 13px clamp(16px, 4vw, 40px); }
  .nav-link::after { display: none; }
}

/* ---------- hero mosaic (B4) ---------- */
.hero { background: var(--ink); color: var(--ice); position: relative; overflow: clip; padding-bottom: var(--s8); }
.hero .wrap { position: relative; z-index: 2; }
.mosaic {
  display: grid; gap: 14px;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1.02fr) minmax(0, 0.6fr);
  grid-template-areas: "wide gap a" "wide gap b";
  align-items: stretch;
}
.hero h1 { font-size: clamp(1.9rem, 1.15rem + 2.3vw, 2.75rem); }
.mosaic .tile-wide { grid-area: wide; }
.mosaic .tile-a { grid-area: a; }
.mosaic .tile-b { grid-area: b; }
.mosaic .gap-cell { grid-area: gap; align-self: center; padding: var(--s3) clamp(4px, 1.5vw, 18px); }
.tile { margin: 0; position: relative; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.deckle { clip-path: var(--deckle); }
.tile-wide img { min-height: 480px; }
.tile-a img, .tile-b img { min-height: 230px; }

.hero-kicker-line { color: var(--sea); margin-bottom: var(--s2); }
.hero h1 { color: var(--white); margin-bottom: var(--s2); }
.hero-sub { color: var(--gull); font-size: var(--fs-body); margin-bottom: var(--s4); }

/* CTA C1: one filled square button + phone as plain bold text */
.btn-square {
  display: inline-block; background: var(--dawn); color: var(--ink);
  font: 700 1rem var(--body); letter-spacing: 0.02em;
  padding: 15px 26px; text-decoration: none; border: 0; border-radius: 0;
  cursor: pointer; min-height: 44px;
  transition: background var(--t-micro) ease, transform var(--t-micro) ease, box-shadow var(--t-micro) ease;
}
.btn-square:hover, .btn-square:focus-visible { background: #d69a5d; transform: translateY(-1px); box-shadow: 0 2px 0 rgba(0,0,0,0.35); }
.btn-square:active { background: var(--dawn-deep); transform: translateY(1px); box-shadow: none; }
.phone-line { margin-top: var(--s2); font-weight: 700; font-size: 1.2rem; }
.phone-line a { color: var(--white); text-decoration: none; }
.phone-line a:hover, .phone-line a:focus-visible { color: var(--dawn); }
.phone-line .muted { color: var(--gull); font-weight: 400; font-size: var(--fs-small); }

/* wet sheen (E15): one soft light band passing down the dark hero */
.sheen { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: clip; }
.sheen::before {
  content: ""; position: absolute; left: -5%; right: -5%; top: 0; height: 46%;
  background: linear-gradient(
    to bottom,
    rgba(219, 228, 233, 0) 0%,
    rgba(219, 228, 233, 0.045) 40%,
    rgba(219, 228, 233, 0.085) 50%,
    rgba(219, 228, 233, 0.045) 60%,
    rgba(219, 228, 233, 0) 100%);
  transform: translateY(-120%);
}
@media (prefers-reduced-motion: no-preference) {
  .sheen::before { animation: sheen-pass 10s linear infinite; }
}
@keyframes sheen-pass {
  0% { transform: translateY(-120%); }
  100% { transform: translateY(340%); }
}

@media (max-width: 900px) {
  .mosaic {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "wide wide" "gap gap" "a b";
  }
  .tile-wide img { min-height: 300px; }
  .tile-a img, .tile-b img { min-height: 200px; }
  .mosaic .gap-cell { padding: var(--s3) 0 var(--s2); }
}

/* ---------- running fact line ---------- */
.standing {
  border-top: 3px solid var(--ink); border-bottom: var(--rule);
  padding: var(--s4) 0;
}
.standing p { max-width: none; margin: 0; font-size: 1.15rem; }
.standing .sep { color: var(--dawn); font-weight: 700; padding-inline: 10px; }

/* ---------- floor strip (uneven, no identical boxes) ---------- */
.floor-strip { padding: var(--s10) 0 var(--s8); }
.strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.strip-head p { margin: 0; }
.strip-grid { display: grid; gap: 18px; grid-template-columns: 1.5fr 1fr 1.15fr; align-items: end; }
.strip-grid figure { margin: 0; }
.strip-grid figcaption { padding-top: 10px; color: var(--steel); font-size: var(--fs-small); }
.strip-grid figcaption strong { color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 1.05rem; display: block; }
.strip-grid .ph-1 img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.strip-grid .ph-2 img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.strip-grid .ph-3 img { aspect-ratio: 1 / 1.15; object-fit: cover; width: 100%; }
@media (max-width: 820px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .strip-grid .ph-1 { grid-column: 1 / -1; }
}
.text-link {
  font-weight: 700; color: var(--ink); text-decoration: none; position: relative; white-space: nowrap;
  padding: 12px 0;
}
.text-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 2px;
  background: var(--dawn); transition: right 220ms var(--ease-out);
}
.text-link:hover::after, .text-link:focus-visible::after { right: 0; }
.text-link .arr { color: var(--dawn); }

/* ---------- season rail (F5 signature) ---------- */
.seasons { background: var(--ice); padding: var(--s10) 0 var(--s8); border-top: var(--rule); }
.seasons-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s6); align-items: start; margin-bottom: var(--s6); }
.seasons-intro figure { margin: 0; }
.seasons-intro img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.seasons-intro figcaption { padding-top: 8px; color: var(--steel); font-size: var(--fs-small); }
@media (max-width: 820px) { .seasons-intro { grid-template-columns: 1fr; } }

.rail { position: relative; border-top: 2px solid var(--ink); }
.rail-months {
  display: grid; grid-template-columns: repeat(12, 1fr);
  border-bottom: var(--rule); margin-left: var(--rail-label, 172px);
}
.rail-months span {
  font-size: 0.75rem; letter-spacing: 0.1em; font-weight: 700; color: var(--steel);
  padding: 8px 0 6px; border-left: 1px solid rgba(22,32,42,0.1);
  text-align: center;
}
.rail-row { display: grid; grid-template-columns: var(--rail-label, 172px) 1fr; border-bottom: var(--rule); }
.rail-name { padding: 14px 12px 14px 0; }
.rail-name b { font-family: var(--display); font-weight: 500; display: block; line-height: 1.2; }
.rail-name small { color: var(--steel); font-size: 0.8125rem; line-height: 1.3; display: block; }
.rail-track { position: relative; min-height: 58px; background:
  repeating-linear-gradient(to right, rgba(22,32,42,0.08) 0 1px, transparent 1px calc(100% / 12)); }
.rail-bar {
  position: absolute; top: 50%; height: 14px; margin-top: -7px;
  background: var(--slate);
}
.rail-bar.open-all { background: var(--sea); height: 8px; margin-top: -4px; }
.rail-bar.hatched {
  background: repeating-linear-gradient(135deg, var(--dawn-deep) 0 5px, rgba(168,107,50,0.35) 5px 10px);
}
.rail-bar.ticked {
  background: repeating-linear-gradient(to right, var(--sea) 0 18px, rgba(127,152,166,0.3) 18px 24px);
  height: 8px; margin-top: -4px;
}
.rail-today {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--dawn);
  left: var(--today-x, 68%); z-index: 2;
}
.rail-today i {
  position: absolute; top: -26px; left: -14px; font-style: normal;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dawn-deep);
}
.rail-foot { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: baseline; padding-top: var(--s4); }
.floor-line { font-family: var(--display); font-size: 1.3rem; margin: 0; }
.floor-line a { text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--dawn); }
.floor-line a:hover, .floor-line a:focus-visible { border-bottom-width: 3px; }
.rail-src { color: var(--steel); font-size: var(--fs-small); max-width: 66ch; margin: 0; }
@media (max-width: 700px) {
  .rail { --rail-label: 118px; }
  .rail-name b { font-size: 0.95rem; }
  .rail-months span { font-size: 0.62rem; letter-spacing: 0.04em; }
}

/* ---------- dark account band ---------- */
.account-band { background: var(--slate); color: var(--ice); padding: var(--s10) 0; position: relative; overflow: clip; }
.account-band h2 { color: var(--white); }
.account-band .lead { color: var(--gull); }
.account-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s6); align-items: center; position: relative; z-index: 2; }
@media (max-width: 780px) { .account-cols { grid-template-columns: 1fr; } }
.nap { border-left: 3px solid var(--dawn); padding-left: var(--s3); font-style: normal; line-height: 1.7; }
.nap a { color: var(--white); text-decoration: none; font-weight: 700; }
.nap a:hover, .nap a:focus-visible { color: var(--dawn); }
.nap .lbl { color: var(--gull); font-size: var(--fs-caps); text-transform: uppercase; letter-spacing: 0.12em; }

/* ---------- subpage intro band ---------- */
.page-intro { background: var(--ink); color: var(--ice); position: relative; overflow: clip; padding-bottom: var(--s6); }
.page-intro .wrap { position: relative; z-index: 2; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s6); align-items: center; padding-top: var(--s4); }
.intro-grid h1 { color: var(--white); }
.intro-grid .lead { color: var(--gull); }
.intro-grid figure { margin: 0; }
.intro-grid img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (max-width: 780px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- photo essay rows (floor page) ---------- */
.essay { padding: var(--s10) 0; }
.essay-row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: var(--s6) 0;
}
.essay-row + .essay-row { border-top: var(--rule); }
.essay-row:nth-child(even) .essay-photo { order: 2; }
.essay-photo { margin: 0; }
.essay-photo img { width: 100%; object-fit: cover; }
.essay-photo.portrait img { aspect-ratio: 4 / 5; }
.essay-photo.landscape img { aspect-ratio: 16 / 10; }
.essay-copy h2 { margin-bottom: var(--s2); }
@media (max-width: 780px) {
  .essay-row { grid-template-columns: 1fr; }
  .essay-row:nth-child(even) .essay-photo { order: 0; }
}

/* ---------- buyers page ---------- */
.split-band { padding: var(--s10) 0; }
.split-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 780px) { .split-cols { grid-template-columns: 1fr; } }
.ruled-list { list-style: none; margin: 0; padding: 0; }
.ruled-list li { border-top: var(--rule); padding: var(--s2) 0; display: flex; gap: var(--s2); align-items: baseline; }
.ruled-list li:last-child { border-bottom: var(--rule); }
.ruled-list .tick { color: var(--dawn-deep); font-weight: 700; flex: none; }
.no-prices { background: var(--ice); border-left: 3px solid var(--dawn); padding: var(--s3); }
.no-prices p { margin: 0; }
.tall-texture { margin: 0; position: relative; }
.tall-texture img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.tall-texture figcaption { padding-top: 8px; color: var(--steel); font-size: var(--fs-small); }

/* ---------- contact ---------- */
.contact-band { padding: var(--s8) 0 var(--s10); }
.contact-band .nap a { color: var(--ink); }
.contact-band .nap a:hover, .contact-band .nap a:focus-visible { color: var(--dawn-deep); }
.contact-band .nap .lbl { color: var(--steel); }
.contact-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 64px); }
@media (max-width: 820px) { .contact-cols { grid-template-columns: 1fr; } }
.form-panel { background: var(--white); border: var(--rule); border-radius: 0; padding: clamp(20px, 3.5vw, 36px); }
.form-panel h2 { margin-bottom: var(--s1); }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--gull); border-radius: 0; background: var(--fog);
  font: 400 1rem var(--body); color: var(--ink); padding: 12px 12px; min-height: 44px;
  transition: border-color var(--t-micro) ease, box-shadow var(--t-micro) ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--dawn-deep); box-shadow: 0 0 0 3px rgba(201, 138, 75, 0.28);
}
.hp-wrap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note {
  margin-top: var(--s3); padding: var(--s3); background: var(--ice);
  border-left: 3px solid var(--dawn);
}
.form-note[hidden] { display: none; }
.form-note a { font-weight: 700; }

/* ---------- footer: butcher-paper strip ---------- */
.site-foot {
  background: var(--ink); color: var(--gull); margin-top: 0; position: relative;
  padding: var(--s8) 0 calc(var(--s8) + 56px);
}
.site-foot::before {
  content: ""; display: block; position: absolute; top: -14px; left: 0; right: 0; height: 15px;
  background: var(--ink); clip-path: var(--deckle); transform: scaleY(-1);
}
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--s5) var(--s10); align-items: flex-start; }
.foot-tag { font-family: var(--display); color: var(--ice); font-size: 1.25rem; margin: 0 0 4px; }
.foot-legal { font-size: var(--fs-small); margin: 0; }
.site-foot address { font-style: normal; line-height: 1.9; }
.site-foot a { color: var(--ice); text-decoration: none; display: inline-block; padding: 8px 0; }
.site-foot a:hover, .site-foot a:focus-visible { color: var(--dawn); }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-note { margin-top: var(--s5); padding-top: var(--s3); border-top: var(--rule-dark); font-size: var(--fs-small); max-width: none; }

/* ---------- mobile sticky call bar ---------- */
.sticky-call {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: none; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 2px solid var(--dawn);
  transition: transform 250ms var(--ease-out);
}
.sticky-call a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; text-decoration: none; font-weight: 700;
  color: var(--white); font-size: 1rem;
}
.sticky-call a + a { background: var(--dawn); color: var(--ink); }
.sticky-call.hidden { transform: translateY(110%); }
@media (max-width: 760px) {
  .sticky-call { display: grid; }
  body { padding-bottom: 56px; }
}

/* ---------- icons ---------- */
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.6; fill: none; vertical-align: -3px; }

/* ---------- motion: reveals gated on html[data-anim] ---------- */
html[data-anim] .rev { opacity: 0; transform: translateY(14px); }
html[data-anim] .rev.in {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
  transition-delay: calc(var(--seq, 0) * var(--step));
}
html[data-anim] .hero-seq { opacity: 0; transform: translateY(16px); }
html[data-anim] .rail-bar { transform: scaleX(0); transform-origin: left center; }
html[data-anim] .rail-bar.drawn {
  transform: scaleX(1);
  transition: transform 480ms var(--ease-out);
}
html[data-anim] .rail-today { opacity: 0; }
html[data-anim] .rail-today.drawn { opacity: 1; transition: opacity 400ms ease 300ms; }
@media (prefers-reduced-motion: reduce) {
  html[data-anim] .rev, html[data-anim] .hero-seq, html[data-anim] .rail-bar, html[data-anim] .rail-today {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  html { scroll-behavior: auto; }
  .tag-body, .btn-square, .nav-link, .text-link { transition: none !important; }
}

/* print sanity */
@media print {
  .sticky-call, .sheen { display: none; }
}
