/* ===================================================================
   Praxilogue homepage: one short page. WhiskedAway up front, a few
   other experiments below, a way to say hello. The studio's dark
   scene deck lives on at /studio (styles.css).
   Type: Fraunces for headings (the studio's voice carried over),
   IBM Plex Sans for reading, IBM Plex Mono for the numbered chrome.
   The ∴ mark stays as logo, bullet and section marker.
=================================================================== */

:root {
  --bg: #fbf9f5;
  --bg-alt: #f3efe7;
  --surface: #ffffff;
  --text: #1b1a17;
  --text-dim: #48453d;
  --text-faint: #6b665a;
  --accent: #1d5670;
  --accent-hover: #15425a;
  --accent-soft: #e3edf1;
  --rule: #e2dccf;
  --contact-bg: #133b4e;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 68rem;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --radius: 10px;
  --header-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Buttons
--------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.btn--small { min-height: 40px; padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand svg circle { fill: var(--accent); }
.brand--small { font-size: 0.95rem; }
.site-header .brand { min-height: 44px; }

.header-link {
  margin-left: auto;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.6rem 0;
}
.header-link:hover { color: var(--accent); }

/* ---------------------------------------------------------------
   Section chrome: numbered eyebrow, title
--------------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow-num { font-variant-numeric: tabular-nums; }
.eyebrow-mark { font-size: 1.15rem; letter-spacing: 0; }
.eyebrow-num::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-left: 0.6rem;
  vertical-align: middle;
  background: currentColor;
  opacity: 0.5;
}

.section {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
}
.section--alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
}

.section-intro {
  color: var(--text-dim);
  font-size: 1.125rem;
  margin: -0.75rem 0 2rem;
  max-width: 40rem;
}

/* ---------------------------------------------------------------
   Hero and the WhiskedAway feature
--------------------------------------------------------------- */

.hero { padding: clamp(3rem, 9vw, 6rem) 0 clamp(1.75rem, 4vw, 2.5rem); }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  max-width: 20ch;
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--text-dim);
  max-width: 34rem;
}

.feature { padding-bottom: clamp(3rem, 8vw, 5rem); }
.feature-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(27, 26, 23, 0.04), 0 12px 32px rgba(27, 26, 23, 0.07);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  color: inherit;
  box-shadow: 0 1px 2px rgba(27, 26, 23, 0.04), 0 16px 40px rgba(29, 86, 112, 0.14);
  transform: translateY(-2px);
}
.feature-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #faf3e3;
}
.feature-body {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-body h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
}
.feature-body p { color: var(--text-dim); }
.feature-body .eyebrow { color: var(--accent); }
.feature-meta { font-size: 0.95rem; color: var(--text-faint) !important; }
.feature-body .btn { margin-top: 1.25rem; align-self: flex-start; gap: 0.4rem; }

@media (max-width: 820px) {
  .feature-card { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Cards
--------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cards--two { grid-template-columns: repeat(2, 1fr); }
.cards--three { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 860px) {
  .cards--two, .cards--three { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.card p { color: var(--text-dim); }
.card p a { font-weight: 500; }

/* Linked cards: the whole card is the hit area. */
.card--link { padding: 0; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
.card--link > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.4rem, 3vw, 2rem);
  color: inherit;
  text-decoration: none;
}
.card--link p { flex: 1; }
.card--link:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(29, 86, 112, 0.1);
  transform: translateY(-2px);
}
.card--link:hover h3 { color: var(--accent); }

.card-url {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
}

/* ---------------------------------------------------------------
   Contact
--------------------------------------------------------------- */

.section--contact {
  background: var(--contact-bg);
  color: #f3f1ec;
}
.section--contact .eyebrow { color: #9cc4d6; }
.section--contact .section-title { color: #fff; margin-bottom: 1rem; }
.contact-copy p { color: #d6dfe3; font-size: 1.125rem; max-width: 26rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-form {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3.5vw, 2.25rem);
}

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfc8b8;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
.field [aria-invalid="true"] { border-color: #a3332b; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin: 1rem 0 0; font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-error { color: #a3332b; }
.form-status.is-ok { color: var(--accent); font-weight: 500; }

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Footer
--------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: var(--text-dim); text-decoration: none; padding: 0.5rem 0; }
.footer-nav a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card--link, .btn, .feature-card { transition: none; }
  .card--link:hover, .feature-card:hover { transform: none; }
}

/* ---------------------------------------------------------------
   Write-up page (/travel-sites): story, film, screenshots
--------------------------------------------------------------- */

.story { padding-bottom: clamp(3rem, 8vw, 5rem); }
.story-text { max-width: 40rem; margin-bottom: clamp(1.75rem, 4vw, 2.5rem); }
.story-text p { font-size: 1.125rem; color: var(--text-dim); }

.film { margin: 0; }
.film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #1b1a17;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(27, 26, 23, 0.04), 0 12px 32px rgba(27, 26, 23, 0.1);
}

.shots {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.shots--two { grid-template-columns: repeat(2, 1fr); }
.shots--editor { grid-template-columns: repeat(2, 1fr); }
.shots--editor li:first-child { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .shots--two, .shots--editor { grid-template-columns: 1fr; }
}

.shot {
  display: block;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
a.shot { transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
a.shot:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(29, 86, 112, 0.1);
  transform: translateY(-2px);
  color: inherit;
}
.shot img { display: block; width: 100%; height: auto; }
.shot-cap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-dim);
}
.shot-cap strong { font-family: var(--font-serif); font-weight: 500; font-size: 1.1rem; color: var(--text); }
.shot-cap span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); align-self: center; }

@media (prefers-reduced-motion: reduce) {
  a.shot { transition: none; }
  a.shot:hover { transform: none; }
}
