/* Porto Seafood Tours — shared styles
   Tokens: azulejo blue + ember on porcelain (light) / charcoal (dark).
   Type: Rockwell (display), Charter (body), Courier New (labels). */

:root {
  color-scheme: light dark;
  --porcelain: #eef1ed;
  --card: #ffffff;
  --ink: #1a1b1e;
  --char: #5b5346;
  --azulejo: #1f4e79;
  --azulejo-soft: #3f6f93;
  --ember: #b53d0a;
  --line: rgba(26, 27, 30, 0.14);
  --line-strong: rgba(26, 27, 30, 0.28);

  --bg: var(--porcelain);
  --bg-raised: var(--card);
  --text: var(--ink);
  --text-muted: var(--char);
  --accent: var(--azulejo);
  --accent-soft: var(--azulejo-soft);
  --accent-2: var(--ember);
  --on-accent: #eef1ed;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --bg-raised: #1e2126;
    --text: #edeee7;
    --text-muted: #a8a297;
    --accent: #86b4da;
    --accent-soft: #5f93bd;
    --accent-2: #e2703a;
    --on-accent: #14161a;
    --line: rgba(237, 238, 231, 0.14);
    --line-strong: rgba(237, 238, 231, 0.28);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: 96px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-soft); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.display { font-family: Rockwell, "Roboto Slab", "Arial Black", sans-serif; text-wrap: balance; }
.mono { font-family: "Courier New", Courier, monospace; letter-spacing: 0.04em; }
.eyebrow {
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent-2);
  font-weight: 700;
  margin: 0;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 720px; margin: 0 auto; padding: 0 28px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px;
}
.skip:focus { left: 16px; top: 12px; }

/* ---------- header / nav ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: var(--bg);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 28px;
}
.wordmark {
  font-family: Rockwell, "Roboto Slab", "Arial Black", sans-serif;
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em;
  text-decoration: none; color: var(--text); white-space: nowrap;
}
.wordmark span { color: var(--accent-2); }
nav.links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
nav.links a {
  text-decoration: none; color: var(--text-muted);
  font-family: "Courier New", Courier, monospace;
  text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em;
  border-bottom: 1px solid transparent; padding-bottom: 3px;
}
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--text); border-color: var(--accent-2); }
nav.links a.ig {
  color: var(--on-accent); background: var(--accent);
  padding: 6px 11px; border-radius: 2px; border-bottom: none;
}
nav.links a.ig:hover { background: var(--accent-soft); color: var(--on-accent); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: "Courier New", Courier, monospace; font-weight: 700;
  text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.06em;
  padding: 13px 22px; border-radius: 2px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--text);
}
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.btn.ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- home hero ---------- */
.hero { padding: 64px 0 0; position: relative; }
.hero .wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero .ember-line { width: 64px; height: 4px; background: var(--accent-2); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.04;
  margin: 8px 0 22px; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede { max-width: 46ch; font-size: 1.14rem; color: var(--text-muted); margin: 0 0 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }
.hero-media {
  position: relative; margin: 0; border: 1px solid var(--line-strong);
  aspect-ratio: 4 / 5; overflow: hidden; align-self: end;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  color: #fff; padding: 28px 16px 12px; font-size: 0.72rem;
}

/* ---------- home: trail cards ---------- */
section.trail { padding: 64px 0 76px; border-top: 1px solid var(--line); }
section.trail h2 { font-size: 1.9rem; margin: 8px 0 10px; }
section.trail .intro { color: var(--text-muted); max-width: 60ch; margin: 0 0 40px; }
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.card { background: var(--bg-raised); display: flex; flex-direction: column; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .tag {
  font-family: "Courier New", Courier, monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2);
}
.card h3 {
  font-family: Rockwell, "Roboto Slab", "Arial Black", sans-serif;
  font-size: 1.18rem; margin: 0;
}
.card p { color: var(--text-muted); margin: 0; font-size: 0.98rem; }
.card a.more { font-size: 0.85rem; margin-top: auto; text-decoration: none; }
.card a.more:hover { color: var(--accent-2); }

/* ---------- home: why ---------- */
section.why { padding: 70px 0 90px; border-top: 1px solid var(--line); }
section.why h2 { font-size: 1.9rem; margin: 8px 0 16px; }
section.why p { color: var(--text-muted); margin: 0 0 16px; max-width: 52ch; }

/* ---------- call-to-action band ---------- */
section.cta-band { border-top: 1px solid var(--line); padding: 64px 0; }
.cta-box {
  border: 1px solid var(--line-strong); background: var(--bg-raised);
  padding: 34px 36px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.cta-box h2 { font-size: 1.6rem; margin: 8px 0 10px; }
.cta-box p { margin: 0; color: var(--text-muted); max-width: 54ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- inner page heads ---------- */
.page-head { padding: 60px 0 40px; }
.page-head.ruled { border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 10px 0 18px; line-height: 1.06; }
.page-head p.lede { max-width: 58ch; color: var(--text-muted); font-size: 1.12rem; margin: 0; }

/* ---------- tapas trail ---------- */
.layout { padding: 56px 28px 90px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: start; }
.layout h2 { margin: 6px 0 0; font-size: 1.5rem; }
.steps { list-style: none; margin: 8px 0 44px; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: none; }
.steps li::before {
  content: counter(step);
  font-family: "Courier New", Courier, monospace; font-weight: 700;
  color: var(--accent-2); font-size: 1.3rem;
}
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; font-family: Rockwell, "Roboto Slab", sans-serif; }
.steps p { margin: 0; color: var(--text-muted); font-size: 0.98rem; }
aside .box { border: 1px solid var(--line-strong); background: var(--bg-raised); padding: 24px; margin-bottom: 24px; }
aside .box h2 {
  font-family: Rockwell, "Roboto Slab", sans-serif; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 14px;
}
aside .box dl { margin: 0; }
aside .box dt { font-weight: 700; font-size: 0.92rem; margin-top: 12px; }
aside .box dt:first-child { margin-top: 0; }
aside .box dd { margin: 2px 0 0; color: var(--text-muted); font-size: 0.9rem; }
aside .box p { margin: 0 0 14px; color: var(--text-muted); font-size: 0.92rem; }
aside .box p:last-child { margin-bottom: 0; }

section.gallery { border-top: 1px solid var(--line); padding: 56px 0 64px; overflow: hidden; }
section.gallery h2 { font-size: 1.9rem; margin: 8px 0 10px; }
section.gallery .wrap > p { color: var(--text-muted); max-width: 60ch; margin: 8px 0 32px; }
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 56px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: scroll-left 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.g-item { flex: 0 0 auto; width: 230px; margin: 0; }
.g-item .frame { width: 230px; height: 288px; overflow: hidden; border: 1px solid var(--line-strong); }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-item figcaption, .g-item p {
  margin: 8px 0 0; font-size: 0.76rem; color: var(--text-muted);
  font-family: "Courier New", Courier, monospace; letter-spacing: 0.02em;
}

/* ---------- story ---------- */
article.prose { padding: 20px 0 30px; }
article.prose p { margin: 0 0 20px; font-size: 1.08rem; }
article.prose p.lead { font-size: 1.22rem; color: var(--text-muted); }
article.prose .names { color: var(--accent-2); font-weight: 700; font-style: normal; }
article.prose > h2 { font-size: 1.5rem; line-height: 1.15; margin: 40px 0 16px; }
.divider { border: none; border-top: 1px solid var(--line); margin: 40px 0; }
figure.story-photo { margin: 32px 0; }
figure.story-photo img { width: 100%; display: block; border: 1px solid var(--line-strong); }
figure.story-photo figcaption {
  margin-top: 8px; font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem; color: var(--text-muted);
}
.signoff { padding: 8px 0 70px; }
.signoff .cta-box { grid-template-columns: 1fr; }

/* ---------- contact form ---------- */
.badge {
  display: inline-block; margin-left: 10px; padding: 3px 10px; vertical-align: 1px;
  border: 1px solid var(--accent-2); border-radius: 2px; color: var(--accent-2);
  letter-spacing: 0.14em; font-size: 0.72rem;
}
@media (max-width: 620px) { .badge { margin: 8px 0 0; } }
.contact-body { padding: 48px 0 90px; }
.form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .field > legend, fieldset.field > legend {
  font-family: "Courier New", Courier, monospace; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.76rem; color: var(--text-muted);
  padding: 0; margin-bottom: 8px;
}
.field .opt { font-weight: 400; text-transform: none; letter-spacing: 0.02em; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); width: 100%;
  background: var(--bg-raised); border: 1px solid var(--line-strong);
  border-radius: 2px; padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; height: 100%; padding: 12px 14px; font-size: 0.98rem;
  border: 1px solid var(--line-strong); background: var(--bg-raised); border-radius: 2px;
}
.choice input:checked + span { border-color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent-2); }
.choice input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.86rem; color: var(--text-muted); margin: 0; max-width: 60ch; }
.form-note.direct { margin-top: 28px; font-size: 0.95rem; }
.form-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-status { margin: 0; min-height: 1.4em; font-size: 0.95rem; color: var(--accent-2); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.thanks { display: none; border: 1px solid var(--line-strong); background: var(--bg-raised); padding: 32px; }
.thanks h2 { margin: 6px 0 12px; font-size: 1.6rem; }
.thanks p { margin: 0 0 18px; color: var(--text-muted); }
.thanks:target { display: block; }
.thanks:target + form { display: none; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: 40px 0 52px; }
footer.site .foot-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px 32px; }
footer.site p { color: var(--text-muted); font-size: 0.86rem; margin: 0; max-width: 46ch; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a {
  font-family: "Courier New", Courier, monospace; text-transform: uppercase;
  font-size: 0.78rem; letter-spacing: 0.08em; text-decoration: none; color: var(--text-muted);
}
.foot-links a:hover { color: var(--accent-2); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; }
  .layout { grid-template-columns: 1fr; gap: 36px; }
  .cta-box { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .nav-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .choices, .row2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}
