/* Casa en Puerto Vallarta — site styles
   Palette: stucco walls, bay ink, bougainvillea, Sierra green, sand.
   Fonts: Alegreya and Alegreya Sans (SIL Open Font License), self-hosted. */
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/alegreya-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/alegreya-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Alegreya"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/alegreya-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/alegreya-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Alegreya Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/alegreya-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --stucco: #FAFAF7;
  --white: #FFFFFF;
  --ink: #0F3B57;
  --ink-soft: #40606F;
  --bloom: #B5306B;
  --bloom-deep: #932456;
  --sierra: #2E5E4E;
  --sand: #ECE5D5;
  --mist: #EDF2F1;
  --line: #D3DCDB;
  --error: #A3213D;
  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Segoe UI", system-ui, sans-serif;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stucco);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;          /* 19px */
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
}

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

a {
  color: var(--ink);
  text-decoration-color: var(--bloom);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--bloom-deep); }

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 20; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  font-feature-settings: "kern", "liga", "lnum";
}
h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); letter-spacing: -0.01em; }   /* 36–60 */
h2 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }                            /* 28–36 */
h3 { font-size: 1.3125rem; line-height: 1.25; }                              /* 21 */
p { margin: 0 0 1em; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--stucco); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; min-height: 72px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.375rem;
  color: var(--ink); text-decoration: none; line-height: 1;
}
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-family: var(--sans); font-size: 1.0625rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: .25rem 0; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--bloom); }
.nav a.lang { color: var(--ink); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { padding: 3.5rem 0 1rem; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem; align-items: center;
}
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.3125rem; line-height: 1.5; color: var(--ink-soft); max-width: 36ch; }
.hero-map { margin: 0; }
.hero-map .map-frame { border-radius: 14px 0 0 14px; overflow: hidden; margin-right: calc(-1 * max(1.5rem, (100vw - 1180px) / 2 + 1.5rem)); }
.hero-map figcaption { margin-top: .6rem; }

/* ---------- Bay map ---------- */
.bay-map { width: 100%; height: auto; }
.bay-map .water { fill: var(--ink); }
.bay-map .land { fill: var(--sand); }
.bay-map .coast { fill: none; stroke: #BFB397; stroke-width: 2.5; stroke-linejoin: round; }
.bay-map .river { fill: none; stroke: #7FA2B3; stroke-width: 5; stroke-linecap: round; }
.bay-map text { font-family: var(--sans); }
.bay-map .lbl { font-size: 25px; font-weight: 700; }
.bay-map .on-water { fill: var(--white); }
.bay-map .on-land { fill: var(--ink); }
.bay-map .sub { font-size: 18px; font-weight: 500; }
.bay-map .on-water.sub { fill: #C9DAE2; }
.bay-map .region { font-family: var(--serif); font-style: italic; font-size: 24px; fill: #6E7F86; }
.bay-map .sea { font-family: var(--serif); font-style: italic; font-size: 22px; fill: #8FAEBD; }
.bay-map .sea.big { font-size: 42px; fill: #BBD0DA; }
.bay-map .airport { font-size: 16px; font-weight: 700; fill: #6E7F86; }
.bay-map .rivername { font-family: var(--serif); font-style: italic; font-size: 19px; fill: #5F7F8D; }
.bay-map .dot { fill: var(--bloom); stroke: var(--white); stroke-width: 3; }
.bay-map .ring { fill: none; stroke: var(--bloom); stroke-width: 2.5; }
.bay-map a { cursor: pointer; }
.bay-map a:hover .dot, .bay-map a:focus .dot { fill: var(--white); stroke: var(--bloom); stroke-width: 5; }
.bay-map a:hover .lbl, .bay-map a:focus .lbl { text-decoration: underline; }
.bay-map a:focus { outline: none; }
.bay-map a:focus-visible .ring { stroke: var(--white); stroke-width: 4; }
.bay-map .dim { opacity: .45; }

/* small, sidebar version */
.bay-map.mini .lbl { font-size: 46px; }
.bay-map.mini .sub, .bay-map.mini .minor, .bay-map.mini .sea, .bay-map.mini .airport { display: none; }

@media (max-width: 700px) {
  .bay-map .lbl { font-size: 36px; }
  .bay-map .sub, .bay-map .minor, .bay-map .airport, .bay-map .sea:not(.big) { display: none; }
  .bay-map .sea.big { font-size: 48px; }
  .bay-map .region { font-size: 34px; }
}

/* One orchestrated moment: the coastline draws, then the towns appear. */
@media (prefers-reduced-motion: no-preference) {
  .bay-map.animate .coast { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 1.8s ease-out .15s forwards; }
  .bay-map.animate .towns { opacity: 0; animation: appear .6s ease-out 1.6s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

figcaption, .caption { font-family: var(--sans); font-size: .9375rem; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Forms ---------- */
.signup { margin-top: 1.75rem; max-width: 31rem; }
.signup .field-label { display: block; font-family: var(--sans); font-weight: 700; font-size: 1.125rem; margin-bottom: .45rem; }
.signup-row { display: flex; gap: .5rem; }
.signup-lang { border: 0; padding: 0; margin: .7rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; font-family: var(--sans); font-size: 1rem; }
.signup-lang legend { float: left; padding: 0; margin-right: .6rem; color: var(--ink-soft); }
.signup-lang label { display: inline-flex; align-items: center; gap: .35rem; cursor: pointer; }
.signup-lang input { accent-color: var(--bloom); width: 1.05rem; height: 1.05rem; margin: 0; }

input[type="email"], input[type="text"], input[type="tel"], select, textarea {
  font-family: var(--sans); font-size: 1.0625rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #8FA6B2; border-radius: 6px;
  padding: .7rem .85rem; width: 100%; line-height: 1.3;
}
textarea { min-height: 7rem; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 12px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(181, 48, 107, .35); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--error); }

.btn {
  font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  background: var(--bloom); color: var(--white); border: 0; border-radius: 6px;
  padding: .8rem 1.3rem; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--bloom-deep); color: var(--white); }
.btn[disabled] { opacity: .7; cursor: progress; }

.fineprint { font-family: var(--sans); font-size: .9375rem; color: var(--ink-soft); margin: .6rem 0 0; }
.status { font-family: var(--sans); font-size: 1rem; margin: .5rem 0 0; min-height: 1.4em; }
.status.ok { color: var(--sierra); font-weight: 700; }
.status.err { color: var(--error); font-weight: 700; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.field .hint { font-weight: 400; color: var(--ink-soft); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-family: var(--sans); font-size: 1rem; line-height: 1.45; }
.check input { width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--bloom); flex: none; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .signup-row { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-soft); }

/* Towns, north to south: a vertical shoreline */
.coast-list { list-style: none; margin: 0; padding: 0; position: relative; max-width: 46rem; }
.coast-list::before { content: ""; position: absolute; left: 9px; top: .9rem; bottom: 2.4rem; width: 2px; background: #BFCBCB; }
.coast-list li { position: relative; padding: 0 0 1.9rem 2.9rem; }
.coast-list li::before {
  content: ""; position: absolute; left: 1px; top: .45rem; width: 18px; height: 18px;
  border-radius: 50%; background: var(--stucco); border: 3px solid var(--bloom);
}
.section-alt .coast-list li::before { background: var(--mist); }
.coast-list li.has-guide::before { background: var(--bloom); }
.coast-list h3 { margin: 0; font-size: 1.4375rem; }
.coast-list .state { font-family: var(--sans); font-size: .9375rem; font-weight: 500; color: var(--ink-soft); margin: .1rem 0 .35rem; }
.coast-list p { margin: 0 0 .4rem; max-width: 60ch; }
.coast-list .go { font-family: var(--sans); font-weight: 700; font-size: 1.0625rem; }
.coast-list .soon { font-family: var(--sans); font-size: .9375rem; color: var(--ink-soft); margin: 0; }
.coast-list .river-mark { padding-bottom: 1.9rem; font-family: var(--sans); font-size: .9375rem; color: var(--ink-soft); font-style: italic; }
.coast-list .river-mark::before { width: 18px; height: 4px; border: 0; border-radius: 2px; background: #7FA2B3; top: .65rem; }

/* Monthly letter */
.letter-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.covers { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.covers li { padding: .85rem 0; border-top: 1px solid var(--line); }
.covers li:last-child { border-bottom: 1px solid var(--line); }
.covers strong { font-family: var(--sans); font-size: 1.0625rem; display: block; }
.issue {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.75rem;
  font-family: var(--sans); box-shadow: 0 22px 44px -28px rgba(15, 59, 87, .45);
}
.issue .meta { font-size: .9375rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.issue .subject { font-family: var(--serif); font-weight: 700; font-size: 1.375rem; line-height: 1.3; margin: .6rem 0 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.issue h3 { font-family: var(--sans); font-size: 1.0625rem; margin: 1rem 0 .15rem; }
.issue p { font-size: 1rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }
.issue .sponsor { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px dashed #B9C6C6; }
.issue .tag { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--sierra); background: #E1EDE7; border-radius: 4px; padding: .1rem .45rem; margin-right: .4rem; }

/* Connect */
.connect-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 3.5rem; align-items: start; }
.connect-form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.75rem; }

/* Neutrality */
.promise { max-width: 44rem; }
.promise ul { padding-left: 1.25rem; margin: 0; }
.promise li { margin-bottom: .6rem; }
.promise li::marker { color: var(--bloom); }

/* ---------- Article (area guide) ---------- */
.crumbs { font-family: var(--sans); font-size: .9375rem; color: var(--ink-soft); padding-top: 1.75rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #9AAFB9; }
.crumbs a { color: var(--ink-soft); }
.article-head { padding: 1.25rem 0 2.25rem; max-width: 50rem; }
.article-head h1 { font-size: clamp(2.125rem, 4vw, 3.25rem); }
.dek { font-size: 1.375rem; line-height: 1.45; color: var(--ink-soft); max-width: 44ch; }
.reviewed { font-family: var(--sans); font-size: .9375rem; color: var(--ink-soft); margin: 0; }

.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 4rem; align-items: start; padding-bottom: 4rem; }
.prose { max-width: var(--measure); }
.prose h2 { font-size: 1.875rem; margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .55rem; }
.prose li::marker { color: var(--bloom); }

.glance { position: sticky; top: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.25rem; font-family: var(--sans); }
.glance .mini-map { border-radius: 6px; overflow: hidden; margin-bottom: 1.1rem; }
.glance h2 { font-family: var(--sans); font-size: 1.1875rem; margin: 0 0 .8rem; }
.glance dl { margin: 0; }
.glance dt { font-size: .875rem; font-weight: 500; color: var(--ink-soft); }
.glance dd { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.4; }
.glance dd:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border: 2px solid var(--sierra); border-radius: 3px; background: var(--white); }

.figure-note { background: var(--mist); border-left: 4px solid var(--sierra); padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0; }
.figure-note p:last-child { margin-bottom: 0; }

.faq details { border-top: 1px solid var(--line); padding: .95rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.1875rem; list-style-position: outside; }
.faq summary::marker { color: var(--bloom); }
.faq details[open] summary { margin-bottom: .45rem; }
.faq details p { margin: 0; }

.cta-band { background: var(--mist); border-radius: 12px; padding: 2rem; margin: 3rem 0; }
.cta-band h2 { margin-top: 0 !important; font-size: 1.625rem; }
.cta-band .signup { margin-top: 1rem; }

.sources { font-family: var(--sans); font-size: .9375rem; color: var(--ink-soft); padding-left: 1.25rem; }
.sources li { margin-bottom: .4rem; }

/* ---------- Simple pages ---------- */
.simple { padding: 4rem 0 5rem; }
.simple .prose { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D5E2E8; padding: 3rem 0 2.5rem; font-family: var(--sans); font-size: 1rem; }
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .45); }
.site-footer a:hover { color: var(--white); text-decoration-color: var(--white); }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-grid p { max-width: 34rem; margin: .5rem 0 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--white); }
.copyright { margin-top: 2rem; font-size: .875rem; color: #A9C0CB; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .glance { position: static; max-width: 32rem; order: -1; }
}
@media (max-width: 860px) {
  .hero { padding-top: 2.25rem; }
  .hero-grid, .letter-grid, .connect-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-map .map-frame { margin: 0 -1.5rem; border-radius: 0; }
  .section { padding: 3.5rem 0; }
}
