/* Bike Scottsdale — site styles
   Matches the look of the original WordPress site (Twenty Twenty-Four theme):
   off-white page, Jost headings, Instrument Sans body, one black band on the home page. */

:root {
  --base: #F9F8F5;        /* page background */
  --ink: #000000;         /* text, black band */
  --accent: #D73301;      /* dates and meta (theme "contrast-2") */
  --pill: #F6DECD;        /* tag pills */
  --rule-soft: #A4A4A4;   /* row dividers on the blog list (theme "contrast-3") */
  --paper: #FFFFFF;

  --font-display: "Jost", "Futura", "Avenir Next", sans-serif;
  --font-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;

  /* Widths from the theme: content 620px, wide 1340px, side padding 8vw (max 6.5rem) */
  --gutter: min(6.5rem, 8vw);
  --content: 620px;
  --wide: 1340px;

  --space-20: min(1.5rem, 2vw);
  --space-30: min(2.5rem, 3vw);
  --space-40: min(4rem, 5vw);
  --space-50: min(6.5rem, 8vw);
  --block-gap: 1.2rem;

  --fs-small: 0.9rem;
  --fs-medium: clamp(1rem, 1rem + ((1vw - 0.2rem) * 0.2), 1.05rem);
  --fs-large: clamp(1.39rem, 1.39rem + ((1vw - 0.2rem) * 0.767), 1.85rem);
  --fs-xl: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
  --fs-xxl: clamp(2.5rem, 2.5rem + ((1vw - 0.2rem) * 1.283), 3.27rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-medium);
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.1em; }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
}
h1 { font-size: var(--fs-xxl); line-height: 1.15; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-large); }
p { margin: 0; }

/* Layout helpers */
.wide    { width: 100%; max-width: calc(var(--wide) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.content { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.flow > * + * { margin-top: var(--block-gap); }
.spacer-50 { height: var(--space-50); }

.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header .wide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 20px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { width: 265px; height: auto; }
.site-nav ul { display: flex; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

main { margin-top: var(--block-gap); }

/* ---------- Page titles (home, about) ---------- */
.page-title { text-align: center; margin-top: var(--block-gap); }

/* ---------- Home: black band ---------- */
.hero-band {
  background: var(--ink);
  color: var(--base);
  margin-top: calc(var(--space-30) + var(--block-gap));
  padding-block: var(--space-50);
}
.media-text {
  display: grid;
  grid-template-columns: auto 23%;
  align-items: center;
  max-width: 1200px;
  margin-inline: auto;
}
.media-text .media-text-content { padding: 0 8%; }
.hero-statement {
  font-size: var(--fs-xxl);
  font-weight: 700;
  font-style: italic;
  line-height: 1.55;
  margin-block: var(--fs-xxl);
}
.media-text figure { margin: 0; }
.media-text img { width: 100%; }

/* ---------- Home: news + signup ---------- */
.home-columns {
  display: flex;
  gap: var(--block-gap);
  margin-top: 2.4rem;
  margin-bottom: var(--block-gap);
}
.home-columns > :first-child { flex-basis: 66.66%; }
.home-columns > :last-child  { flex-basis: 33.33%; }
.home-columns h3 { font-size: var(--fs-large); line-height: 1.2; }

.latest-posts { list-style: none; margin: var(--block-gap) 0 0; padding: 0; }
.latest-posts li + li { margin-top: var(--block-gap); }
.latest-posts time { display: block; font-size: 0.8125rem; line-height: 1.55; }

/* Mailchimp form, styled like Mailchimp's "classic" embed */
.mc-box {
  background: var(--paper);
  margin-top: var(--block-gap);
  padding: 14px 20px 10px;
  font-size: 12px;
}
.mc-box .indicates-required { text-align: right; font-size: 11px; margin-bottom: 4px; }
.mc-box .asterisk { color: #E85C41; font-size: 150%; vertical-align: top; line-height: 1; }
.signup-form .field { margin-bottom: 9px; }
.signup-form label { display: block; margin-bottom: 3px; font-size: 12px; }
.signup-form input[type="text"],
.signup-form input[type="email"] {
  display: block;
  width: 100%;
  height: 33px;
  padding: 8px 6px;
  border: 1px solid #ABB0B2;
  border-radius: 3px;
  background: #fff;
  font: 13px Arial, sans-serif;
  color: var(--ink);
}
.signup-form input[aria-invalid="true"] { border-color: #E85C41; }
.signup-form button {
  margin: 4px 0 10px;
  height: 32px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: #111;
  color: #fff;
  font: 15px Arial, sans-serif;
  cursor: pointer;
}
.signup-form button:hover { background: #777; }
.signup-form .mc-fallback { display: block; margin-top: 0; }
.signup-form button[disabled] { opacity: .7; cursor: progress; }
.hp-field { position: absolute; left: -5000px; }
.form-status { font-size: 13px; font-weight: 600; min-height: 0; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #E85C41; }
.form-status[data-state="success"] { color: #529214; }

/* ---------- About ---------- */
.featured-image { margin: var(--space-30) 0 var(--space-40); }
.featured-image img { width: 100%; border-radius: 24px; object-fit: cover; }
.about-photo { aspect-ratio: 3 / 2; }

.about-rows { max-width: calc(1000px + 2 * var(--gutter)); }
.about-row { display: flex; gap: var(--block-gap); }
.about-row + .about-row { margin-top: calc(25px + var(--block-gap)); }
.about-row > :first-child { flex-basis: 33.33%; }
.about-row > :last-child  { flex-basis: 66.66%; }
.about-row h2 { font-weight: 700; }
.closing-line { text-align: center; margin-top: calc(25px + var(--block-gap)); }

/* ---------- Blog list ---------- */
.blog-page { padding-block: var(--space-50); }
.blog-page > h2 { line-height: 1; margin-bottom: var(--space-40); }
.post-rows { list-style: none; margin: 0; padding: 0; }
.post-rows hr { border: 0; border-top: 1px solid var(--rule-soft); margin: 0; }
.post-row {
  display: flex;
  align-items: center;
  gap: var(--block-gap);
  margin-block: var(--space-20);
}
.post-row > :first-child { flex-basis: 72%; }
.post-row > :last-child  { flex-basis: 28%; }
.post-row h2 { font-size: clamp(0.984rem, 0.984rem + ((1vw - 0.2rem) * 0.86), 1.5rem); line-height: 1.1; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; }

/* Date — by Author in Category (used on blog list and posts) */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .3rem;
  font-size: var(--fs-small);
}
.post-meta .date, .post-meta .dash, .post-meta .by { color: var(--accent); }
.post-meta .dash { font-size: var(--fs-medium); }
.post-meta a { text-decoration: none; }
.post-meta a:hover { text-decoration: underline; }

/* ---------- Single post ---------- */
.post-top { padding-top: var(--space-50); }
.post-top .featured-image { margin: 0 0 var(--space-40); }
.post-title { font-size: var(--fs-xl); line-height: 1.15; }
.post-top .post-meta { margin-top: var(--block-gap); }

.entry-content { margin-top: var(--space-40); }
.entry-content h2 { font-weight: 400; }
.entry-content h2 strong { font-weight: 700; }
.entry-content ul { padding-left: 1.5em; line-height: 1.67; }
.entry-content hr {
  width: 100px;
  border: 0;
  border-bottom: 1px solid currentColor;
  margin-inline: auto;
}
.letter {
  background: var(--paper);
  border-radius: 1rem;
  padding: 1.5rem;
  line-height: 1.75rem;
  margin-inline: -24px;
}
.letter p + p, .letter p + ul, .letter ul + p { margin-top: 1.75rem; }
.letter ul { margin: 0; }

.newsletter-link { margin-top: var(--block-gap); }

.pdf-embed { width: 100%; height: 80vh; min-height: 32rem; border: 0; }

.post-bottom { margin-top: var(--space-40); padding-bottom: var(--space-50); }
.tag-pills { display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--fs-small); }
.tag-pills span { background: var(--pill); border-radius: 24px; padding: 6px 14px; }
.post-bottom hr { border: 0; border-top: 1px solid var(--rule-soft); margin: var(--block-gap) 0 0; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--block-gap);
  padding-block: var(--space-40);
  margin-top: var(--block-gap);
}
.post-nav > div { display: flex; gap: .4rem; max-width: 62%; }
.post-nav .next { margin-left: auto; text-align: right; }

/* ---------- Footer ---------- */
.site-footer .wide { padding-block: var(--space-50); }
.footer-mark { width: 50px; opacity: .55; }
.site-footer hr { border: 0; border-bottom: 1px solid currentColor; margin: var(--block-gap) 0 0; }
.footer-columns {
  display: flex;
  gap: var(--block-gap);
  padding-top: 1rem;
  margin-top: var(--block-gap);
}
.footer-columns > :first-child { flex-basis: 50%; }
.footer-columns > :not(:first-child) { flex-basis: 25%; }
.footer-columns h2 { font-size: var(--fs-xl); }
.footer-columns h3 { font-family: var(--font-body); font-size: var(--fs-medium); margin-bottom: .6rem; }
.footer-legal { margin-top: calc(var(--space-50) + var(--block-gap)); font-size: var(--fs-small); }
.footer-legal a { text-decoration: none; }

/* ---------- 404 ---------- */
.not-found { padding-block: var(--space-50); text-align: center; }
.not-found img { width: 6rem; margin: 0 auto 1.5rem; opacity: .55; }
.not-found p { margin-top: var(--block-gap); }

/* ---------- Mobile (WordPress stacks columns below 782px) ---------- */
@media (max-width: 781px) {
  .home-columns, .about-row, .footer-columns, .post-row { flex-direction: column; align-items: stretch; }
  .home-columns > *, .about-row > *, .footer-columns > *, .post-row > * { flex-basis: auto !important; }
  .about-row + .about-row { margin-top: 2.5rem; }
  .post-row { gap: .4rem; }
}
@media (max-width: 600px) {
  .media-text { grid-template-columns: 100%; }
  .media-text figure { grid-row: 1; width: 60%; margin: 0 auto 1rem; }
  .site-logo img { width: 200px; }
  .letter { margin-inline: 0; }
}
