/* ==========================================================
   ATX Blog — daytime, field-guide look
   Same fonts and frame as the portfolio; ATX's gold from the
   Front Porch homepage, plus little map-style drawings.
   ========================================================== */

:root {
  --bone: #f4f1ea;
  --bone-2: #ebe5d7;
  --ink: #0e0e0e;
  --mute: #6f6b63;
  --line: rgba(14, 14, 14, 0.12);
  --gold: #ffd700;          /* ATX's neon colour on the homepage */
  --sun: #c98a12;           /* deeper gold that reads well on light paper */
  --river: #6f9aa6;
  --cyan: #00e5ff;
  --magenta: #ff2da0;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

:focus-visible { outline: 1px solid var(--sun); outline-offset: 4px; }

.eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
  background: var(--bone);
}

/* a sunny hairline (the portfolio's is cyan → magenta) */
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--sun) 45%, transparent);
  opacity: 0.8;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
}

.wordmark span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mute);
}

.back-link {
  position: relative;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.back-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.back-link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Map drawing styles (hero + guide cards) ---------- */

.river {
  fill: none;
  stroke: var(--river);
  stroke-width: 22;
  stroke-linecap: round;
  opacity: 0.16;
}

.streets path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.06;
}

.route {
  fill: none;
  stroke: var(--sun);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 2 10;
}

.dock {
  fill: var(--bone);
  stroke: var(--ink);
  stroke-width: 2;
}

.dest { fill: var(--sun); }

.dest-ring {
  fill: none;
  stroke: var(--sun);
  stroke-width: 1.5;
  opacity: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 2.8s ease-out infinite;
}

.contours path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
  opacity: 0.14;
}

.peak { fill: var(--ink); opacity: 0.75; }

.map-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  fill: var(--mute);
}

/* ---------- Hero ---------- */

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-map {
  display: block;
  width: 100%;
  aspect-ratio: 1200 / 240;   /* same shape as the drawing */
  min-height: 140px;          /* on phones, crop the sides instead of shrinking */
  border-top: 1px solid var(--line);
  background: var(--bone-2);
}

.hero-map .route { stroke-width: 3.5; }

.hero-text {
  padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.hero-title {
  margin-top: 1rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(6rem, 22vw, 15rem);
  line-height: 0.85;
  letter-spacing: 0.06em;
  padding-left: 0.06em;   /* keeps letter-spaced text truly centred */
  animation: rise 1.2s var(--ease) both;
}

.hero-sub {
  max-width: 30rem;
  margin: 1.4rem auto 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  color: var(--mute);
  animation: rise 1.2s var(--ease) 0.15s both;
}

/* "— Coming soon —", same treatment as the portfolio's empty collections */
.soon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  animation: rise 1.2s var(--ease) 0.3s both;
}

.soon .line {
  flex: none;
  width: 3.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--sun));
}

/* ---------- Guides ---------- */

.guides {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--gutter);
}

.section-head {
  padding-bottom: 1.5rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
}

.section-head h2 em { font-style: italic; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
}

.guide {
  display: flex;
  flex-direction: column;
}

.guide-art {
  aspect-ratio: 400 / 260;
  background: var(--bone-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.guide-art svg { display: block; width: 100%; height: 100%; }

.guide:hover .guide-art {
  border-color: color-mix(in srgb, var(--sun) 50%, transparent);
  box-shadow: 0 18px 40px -24px rgba(201, 138, 18, 0.55);
}

.guide-body {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  column-gap: 0.5rem;
  row-gap: 0.4rem;
  padding-top: 1.25rem;
}

.guide-num {
  grid-row: span 3;
  padding-top: 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--mute);
}

.guide-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
}

.guide-desc {
  max-width: 32rem;
  font-size: 0.92rem;
  color: var(--mute);
}

.tag {
  justify-self: start;
  margin-top: 0.4rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sun);
  border: 1px solid color-mix(in srgb, var(--sun) 45%, transparent);
  border-radius: 999px;
}

/* ---------- Back home ---------- */

.back-home {
  display: block;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
}

.back-title {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.back-home .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}

.back-home:hover .arrow { transform: translateX(0.3em); }

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}

.site-footer a:hover { color: var(--ink); }

/* ---------- Motion ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wordmark { font-size: 1.3rem; }
  .wordmark span { display: none; }
  .back-link { font-size: 0.62rem; letter-spacing: 0.16em; }
  .soon .line { width: 2rem; }
}
