/* Travel4Site — discount destination hub. Tokens live in tokens.css. */
@import url("tokens.css");

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

html {
  scroll-behavior: smooth;
  background: var(--sand);
}

html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% 0%, rgba(196, 92, 42, 0.08), transparent 50%),
    linear-gradient(180deg, #ead6b6 0%, var(--paper) 26%, var(--paper) 100%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--terra-2); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--terra);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-h);
  background: rgba(255, 250, 242, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant: small-caps;
}
.wordmark em { font-style: normal; color: var(--terra); }
.wordmark small {
  display: block;
  font-family: var(--font-body);
  font-variant: normal;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.18rem;
}

.nav-toggle {
  margin-left: auto;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 700;
}
.nav-toggle[aria-expanded="true"] { background: var(--terra); }

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  width: 100%;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 700;
  padding: 0.45rem 0.15rem;
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--terra); }
.nav-email { color: var(--teal) !important; }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    width: auto;
    gap: 0.15rem 0.95rem;
  }
  .site-nav a {
    border: 0;
    padding: 0.25rem 0;
    font-size: 0.92rem;
  }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--space-3) var(--space-3) var(--space-5);
  container-type: inline-size;
  container-name: main;
}

.hero { margin-bottom: 1.8rem; }
.hero-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.hero-stage img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-overlay {
  padding: 1.4rem 0.2rem 0;
}
.kicker {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin: 0 0 0.35rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-3);
  line-height: 0.95;
  margin: 0 0 0.6rem;
  color: var(--ink);
}
.lede { max-width: 40rem; color: var(--ink-2); margin: 0 0 1rem; }

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 6px solid var(--terra);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.15rem 1.2rem 1.2rem;
  margin: 0 0 1.8rem;
  box-shadow: var(--shadow);
}
.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
  margin: 0 0 0.55rem;
}
.quote cite {
  font-style: normal;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.btn, .forecast-form button {
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.62rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: var(--terra); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--sand); color: var(--ink); }

.hub-grid, .link-grid {
  display: grid;
  gap: 0.95rem;
}
@media (min-width: 640px) {
  .hub-grid, .link-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hub-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@container main (min-width: 40rem) {
  .hub-grid, .link-grid { grid-template-columns: 1fr 1fr; }
}
@container main (min-width: 60rem) {
  .hub-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.hub-card, .link-card, .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 10px 24px rgba(42, 28, 18, 0.05);
}
a.hub-card:hover, a.link-card:hover {
  border-color: var(--terra);
  transform: translateY(-2px);
}
.hub-card strong, .link-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ocean);
  margin: 0 0 0.3rem;
}
.hub-card span, .link-card span { color: var(--muted); }

.section { margin: 2.1rem 0; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}
.section-head p { margin: 0 0 1rem; color: var(--muted); }

.prose { max-width: 42rem; }
.prose h1, .prose h2, .prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
}
.prose h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.prose ul { padding-left: 1.15rem; }
.prose li { margin: 0.35rem 0; }

.legacy-mark { margin: 1rem 0; }
.legacy-mark img { width: min(517px, 100%); }

.calc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}
.calc select, .calc input {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
  max-width: 100%;
}
.calc-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .calc-grid { grid-template-columns: 1fr auto 1fr; align-items: start; }
}

.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
}
.books a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.4rem;
  display: block;
}
.books img { width: 100%; height: 160px; object-fit: contain; }

.clock-box {
  background: var(--ocean);
  color: #f4ead8;
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
}
.clock-box #worldclock {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
}
.clock-box select {
  margin-top: 0.8rem;
  background: #16384c;
  color: #f4ead8;
  border: 1px solid #3d6a82;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
}

.site-footer {
  background: #24170f;
  color: #f0e2cc;
  padding: 1.8rem 1.15rem 2.4rem;
  margin-top: 1rem;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer a { color: #e8c07a; }
.site-footer small, .fine { color: #cbb79a; font-size: 0.86rem; }
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.3rem;
}

.crumbs { font-size: 0.88rem; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--ink-2); }

.disclosure {
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 0.8rem;
}

.note {
  background: #fff6e8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form {
  display: grid;
  gap: var(--space-2);
  max-width: 32rem;
  margin-top: var(--space-3);
}
.contact-form label {
  display: grid;
  gap: 0.25rem;
  font-weight: 800;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
}
.contact-form textarea { min-height: 8rem; }
.form-status { margin: var(--space-2) 0; }
.form-status[data-kind="ok"] { color: var(--teal); }
.form-status[data-kind="error"] { color: var(--terra-2); }
picture { display: block; }
picture img { width: 100%; height: auto; }
.brand picture { width: 42px; flex: none; }
.brand picture img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.hub-card:hover { transform: none; }
}
