/* ============================================================
   RILEY MOYANO · FORT WORTH REAL ESTATE
   Editorial, photo-led, warm. Brand tokens locked in
   Admin/brand-direction.md. No build step, no framework.
   ============================================================ */

:root {
  /* Locked palette. Amend brand-direction.md before changing. */
  --blue:      #58778C;
  --bluegray:  #B4BDC2;
  --white:     #FFFFFF;
  --ink:       #293338;
  --copper:    #C3653C;
  --copper-text: #B15936;  /* AA-compliant copper for small text. Brand copper
                              stays #C3653C for rules, bands and large shapes. */

  --surface-alt:   #F7F9FA;
  --hairline:      #E3E8EB;
  --muted:         #687379;   /* measured 4.86:1 on white. The old #6E797F was
                               commented as 4.5:1 but actually measured 4.46. */
  --muted-on-dark: #B4BDC2;

  --serif: "Cormorant Garamond", Cormorant, Georgia, serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 34rem;
  --rule: 1px solid var(--hairline);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.0625rem);
  line-height: 1.72;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--blue); }
h1 { font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); }

p + p { margin-top: 1.05em; }

.label {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.19em;
  text-transform: uppercase; color: var(--copper-text);
}
.lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.62; color: var(--ink); }
.muted { color: var(--muted); }

/* copper hairline, the one recurring brand device */
.rule { width: 3.25rem; height: 2px; background: var(--copper); border: 0; margin: 1.4rem 0; }

/* ---------- layout ---------- */
.wrap { max-width: 78rem; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--measure); }
section { padding-block: clamp(4rem, 9vw, 8.5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05rem 2.1rem; text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
/* Every button resolves to copper on hover and press. Copper is the one
   interactive colour on the site. Note this is a transient state on bold,
   tracked, uppercase text: copper on white and white on copper both sit at
   4.0:1, which the brand doc reserves for display use. Acceptable here
   because it is a hover state on a large weighted label, not body copy. */
.btn-solid { background: var(--blue); color: #fff; border: 1px solid var(--blue); }
.btn-solid:hover, .btn-solid:active { background: var(--copper); border-color: var(--copper); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--bluegray); }
.btn-ghost:hover, .btn-ghost:active { border-color: var(--copper); color: #fff; background: var(--copper); }
.btn-light { background: #fff; color: var(--ink); border: 1px solid #fff; }
.btn-light:hover, .btn-light:active { background: var(--copper); color: #fff; border-color: var(--copper); }
.post-row:active h2, .post-row:active h3 { color: var(--copper); }
.nav-links a:active { border-bottom-color: var(--copper); color: var(--copper); }

/* ---------- nav ---------- */
/* Transparent over the hero, then solid white once you scroll past it.
   script at the bottom of the page toggles .is-solid */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.05rem var(--gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
}
/* solid state is charcoal, so the white logo and white links carry straight
   through from the transparent state with no swap and no colour change */
/* Light bar once you scroll off the hero. The charcoal version forced the
   white logo, and copper on charcoal is too low-contrast to read at that
   size. On the light bar the full-colour logo works and the copper is legible. */
.nav.is-solid {
  background: rgba(247,249,250,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}
/* A soft scrim behind the transparent bar. Hero photos vary, and over a pale
   sky or a busy tree canopy the copper line of the wordmark measured under
   2:1. The gradient fades to nothing, so it reads as the photo's own light
   falling off rather than a band, and it is gone once the bar turns solid.
   Negative z-index keeps it behind the logo and links but still inside the
   bar's own stacking context, so it never covers the page. */
.nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 190%;
  background: linear-gradient(to bottom, rgba(26,33,37,.62), rgba(26,33,37,0));
  pointer-events: none; z-index: -1;
  transition: opacity .35s ease;
}
.nav.is-solid::before,
.nav.is-ontop-light::before,
.nav.nav-static::before { opacity: 0; }
/* Two logo files, cross-faded. The white one reads over the hero photo, the
   full-colour one over the light bar. Both are in the markup so the swap has
   no flash of a missing image. */
.nav-logo img { grid-area: 1 / 1; transition: opacity .35s ease; }
.nav .logo-dark { opacity: 0; }
.nav.is-solid .logo-light { opacity: 0; }
.nav.is-solid .logo-dark { opacity: 1; }
/* Pages with no hero start solid, so never show the white one there. */
.nav.nav-static .logo-light { opacity: 0; }
.nav.nav-static .logo-dark { opacity: 1; }
.nav .nav-links a { color: #fff; text-shadow: 0 1px 12px rgba(41,51,56,.5); }
.nav.is-solid .nav-links a { text-shadow: none; color: var(--ink); }
/* Transparent start on a light page: no bar, but dark type and the colour
   logo, because white would vanish against white. */
.nav.is-ontop-light .nav-links a { color: var(--ink); text-shadow: none; }
.nav.is-ontop-light .nav-links .is-cta { color: var(--blue); font-weight: 600; }
.nav.is-ontop-light .burger { color: var(--ink); }
.nav.is-ontop-light .logo-light { opacity: 0; }
.nav.is-ontop-light .logo-dark { opacity: 1; }
.nav .nav-links a:hover { border-bottom-color: var(--copper); color: var(--copper); }
.nav .nav-links .is-cta { color: #fff; }
.nav.is-solid .nav-links .is-cta { color: var(--blue); opacity: 1; font-weight: 600; }
.nav.is-solid .nav-links .is-cta:hover { color: var(--copper); }
/* The negative margin pulls the logo left of the nav gutter without moving the
   links with it. The SVG carries a little whitespace of its own, so this reads
   as sitting closer to the edge rather than hanging off it. */
/* One rule, not three. Grid stacks the two logo files in the same cell so
   they cross-fade in place; block made them pile up and doubled the nav. */
.nav-logo { display: grid; position: relative; line-height: 0;
  margin-left: -0.75rem; }
.nav-logo img { width: clamp(12rem, 19vw, 16rem); height: auto; display: block; }

/* The footer has room the nav does not, so the logo runs noticeably larger
   there. This is the one place the wordmark is meant to be read rather than
   glanced at. */
.foot-logo { display: block; line-height: 0; }
.foot-logo img { width: 100%; max-width: 23rem; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.9rem; list-style: none; }
.nav-links a {
  font-size: .72rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  /* inline-block plus padding so the tap target clears 24px. As inline text
     the hit area was only 18px tall, under the WCAG 2.5.8 minimum. */
  display: inline-block; padding: 7px 0 6px; border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--copper); }
.nav-links .is-cta { color: var(--blue); font-weight: 600; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(84vh, 780px); display: flex; align-items: flex-end;
  padding-block: clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Two scrims. The horizontal one keeps the text column readable no matter
   how bright the photo is behind it, so hero photos can be swapped freely
   without checking contrast every time. The vertical one seats the image. */
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(41,51,56,.74) 0%, rgba(41,51,56,.55) 34%, rgba(41,51,56,.10) 62%, rgba(41,51,56,0) 100%),
    linear-gradient(180deg, rgba(41,51,56,.34) 0%, rgba(41,51,56,.10) 40%, rgba(41,51,56,.55) 100%);
}
/* narrow screens put the headline over the busiest part of the photo,
   so the scrim gets heavier there */
@media (max-width: 47.99rem) {
  .hero::after {
    background: linear-gradient(180deg, rgba(41,51,56,.46) 0%, rgba(41,51,56,.44) 42%, rgba(41,51,56,.80) 100%);
  }
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero h1 { color: #fff; max-width: 15ch; }
/* story-led headline: two lines, so it runs a little smaller and wider */
.hero .hero-h1 { max-width: 22ch; font-size: clamp(2.15rem, 4.4vw, 3.9rem); line-height: 1.12; }
@media (max-width: 47.99rem) { .hero .hero-h1 br { display: none; } }
.hero .label { color: #fff; opacity: .92; max-width: none; margin: 0 0 1rem; font-size: .7rem; }
.hero p:not(.label) { color: #fff; max-width: 40ch; margin-top: 1.4rem; font-size: clamp(1.02rem,1.2vw,1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.1rem; }

/* ---------- editorial split ---------- */
.split { display: grid; gap: clamp(2.2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.is-narrow-text { grid-template-columns: 1.05fr .95fr; }
  .split.is-reverse > :first-child { order: 2; }
}
/* is-equal: the photo matches the height of the text column beside it
   instead of running to its own natural aspect ratio */
.split.is-equal { align-items: stretch; }
.split.is-equal figure { display: flex; flex-direction: column; }
.split.is-equal figure img { flex: 1 1 auto; width: 100%; height: 100%; object-fit: cover; min-height: 18rem; }

.split figure { position: relative; }
.split figcaption {
  font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-top: .7rem;
}

/* ---------- full-bleed band ---------- */
.band { position: relative; }
.band img { width: 100%; height: clamp(20rem, 46vw, 34rem); object-fit: cover; }

/* ---------- neighborhoods ---------- */
.hoods { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .hoods { grid-template-columns: repeat(3, 1fr); } }
.hood img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hood h3 { margin-top: 1rem; font-size: 1.45rem; }
.hood p { margin-top: .4rem; font-size: .93rem; color: var(--muted); line-height: 1.62; }

/* ---------- interior page heads ---------- */
.nav-static { position: sticky; }
.page-head { padding-top: clamp(7rem, 12vw, 10rem); padding-bottom: clamp(2rem, 4vw, 3.4rem); }
.page-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); max-width: 18ch; }
.page-head .lede { margin-top: 1.2rem; }
.post-meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .9rem; }

/* featured image at the top of a post */
/* Images and tables inside a post break out past the text column, so the page
   uses its width without making the reading measure uncomfortably long. */
.post figure, .post .table-wrap { width: min(68rem, 92vw);
  margin-inline: calc(50% - min(34rem, 46vw)); }
.post-hero { margin: 0 0 .6rem; }
.post-hero img { width: 100%; height: auto; }
/* A portrait hero at full column width comes out over a thousand pixels tall
   and pushes the article off the screen. Cap the height and centre it, so a
   vertical phone photo sits in the column instead of swallowing it. */
.post-hero.is-portrait img { width: auto; max-width: 100%; max-height: 38rem;
  margin-inline: auto; display: block; }
.post-hero figcaption { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted); margin-top: .7rem; }
.post figure { margin: 1.8rem 0; }
.post figure img { width: 100%; height: auto; }
.post figcaption { font-size: .8rem; color: var(--muted); margin-top: .6rem; font-style: italic; }

/* ---------- long-form article body ---------- */
.post h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 2.4rem 0 .8rem; }
.post h3 { font-size: 1.3rem; margin: 1.8rem 0 .6rem; }
.post p { margin-bottom: 1.05em; }
.post ul, .post ol { margin: 0 0 1.2em 1.2em; display: grid; gap: .4rem; }
.post a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.post a:hover { color: var(--copper); }
.post strong { color: var(--ink); }
.post blockquote { border-left: 2px solid var(--copper); padding-left: 1.2rem; margin: 1.6rem 0;
  font-family: var(--serif); font-size: 1.25rem; color: var(--blue); }

/* the twenty without photos yet: a clean even text grid, no holes */
.hoods-list { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 40rem) { .hoods-list { grid-template-columns: repeat(2, 1fr); column-gap: 2.6rem; } }
@media (min-width: 62rem) { .hoods-list { grid-template-columns: repeat(3, 1fr); column-gap: 2.6rem; } }
.hood-noimg { border-top: 1px solid var(--hairline); padding: 1.25rem 0 1.35rem; }
.hood-noimg h3 { margin: 0 0 .35rem; font-size: 1.32rem; }
.hood-noimg p { font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0; }

/* ---------- reviews ---------- */
.reviews { background: var(--surface-alt); }
.review-grid { display: grid; gap: 1.6rem; margin-top: 2.6rem; }
@media (min-width: 52rem) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
/* single review: a featured pull-quote, not a lonely card */
.review-lead { border-left: 3px solid var(--copper); padding: .4rem 0 .4rem 1.7rem; margin-top: 1.6rem; }
.review-lead p { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.3; color: var(--blue); }
.review-lead cite { display: block; margin-top: 1.2rem; font-style: normal;
  font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

.review { background: #fff; border-top: 2px solid var(--copper); padding: 1.9rem 1.6rem 1.5rem; }
.review p { font-family: var(--serif); font-size: 1.24rem; line-height: 1.45; color: var(--ink); }
.review cite { display: block; margin-top: 1.1rem; font-style: normal;
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- writing list ---------- */
.posts { border-top: var(--rule); }
.post-row {
  display: grid; gap: .35rem 2rem; padding-block: 1.6rem;
  border-bottom: var(--rule); text-decoration: none;
}
@media (min-width: 48rem) { .post-row { grid-template-columns: 8rem 1fr; align-items: baseline; } }
.post-row:hover h2, .post-row:hover h3 { color: var(--copper); }
.post-row time { font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.post-row h2, .post-row h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); transition: color .2s ease; }
.post-row p { font-size: .95rem; color: var(--muted); margin-top: .3rem; }

/* ---------- contact panel ---------- */
.contact { background: var(--ink); color: #fff; }
/* h1 on the standalone contact page, h2 everywhere else it is repeated.
   Targeting only h2 left the contact page heading blue on a blue panel,
   which made it invisible. */
.contact h1, .contact h2 { color: #fff; }
.contact .label { color: var(--copper-text); }
.contact p { color: var(--muted-on-dark); }

/* Modern Texas Blue variant. Copper measures 1.18:1 on this blue and blue gray
   measures 2.48:1, so both are unusable here. Everything is white and the
   hierarchy comes from size and weight instead. This is the brand doc's own
   rule playing out, not a workaround. */
.contact.is-blue { background: var(--blue); position: relative; }
/* on the contact page the panel is the whole page, so it needs to clear the
   fixed nav and carry a little more air */
.contact.is-page { padding-top: clamp(8rem, 14vw, 12rem); min-height: 82vh; }

/* Copper on this blue is 1.18:1, so it can never be type or a hairline here.
   As large solid shapes it reads fine, because the hue difference carries it
   even though the luminance difference does not. Blocks and hovers only. */
.contact-edge { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--copper); }
.contact.is-blue .label { color: #fff; opacity: .85; }
.contact.is-blue .rule { background: var(--copper); height: 4px; width: 4.2rem; opacity: 1; }
.contact.is-blue .contact-aside { border-left: 3px solid var(--copper); }
.contact.is-blue .form input:focus,
.contact.is-blue .form select:focus,
.contact.is-blue .form textarea:focus { border-color: var(--copper); }
/* the send button goes copper on hover, same as every other button on the site */
.contact.is-blue .btn-light:hover,
.contact.is-blue .btn-light:active { background: var(--copper); color: #fff; border-color: var(--copper); }
.contact.is-blue p { color: #fff; opacity: .92; }
.contact.is-blue .form label { color: #fff; opacity: .8; }
.contact.is-blue .form input,
.contact.is-blue .form select,
.contact.is-blue .form textarea {
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.34);
}
.contact.is-blue .form input:focus,
.contact.is-blue .form select:focus,
.contact.is-blue .form textarea:focus { border-color: #fff; }
.contact.is-blue .btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.form { display: grid; gap: 1rem; margin-top: 2rem; }
/* The contact form used to stop well short of the copy beside it, which left a
   hole in the panel. Stretching the columns and letting the message field grow
   makes the two sides finish together at any copy length. */
.split.is-stretch { align-items: stretch; }
.split.is-stretch > * { display: flex; flex-direction: column; }
.split.is-stretch .form { flex: 1 1 auto; margin-top: 0; }
.split.is-stretch .form > div:nth-last-child(2) { flex: 1 1 auto; display: flex;
  flex-direction: column; }
.split.is-stretch .form textarea { flex: 1 1 auto; min-height: 8rem; }
@media (min-width: 40rem) { .form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form label { display: block; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted-on-dark); margin-bottom: .45rem; }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--sans); font-size: .97rem; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22);
  padding: .85rem .95rem; border-radius: 0;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--copper); }
.form option { color: var(--ink); }
.contact-aside { border-left: 2px solid var(--copper); padding-left: 1.4rem; }
.contact-aside a { color: #fff; }

/* ---------- footer ---------- */
.foot { background: var(--surface-alt); border-top: var(--rule); padding-block: 3.2rem 2.2rem; font-size: .87rem; }
.foot-grid { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h4 { font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--copper-text); margin-bottom: .8rem; font-weight: 600; }
.foot ul { list-style: none; display: grid; gap: .2rem; }
/* 16px tall hit areas were under the 24px minimum. */
.foot ul li a { display: inline-block; padding: .3rem 0; }
.foot a { color: var(--ink); text-decoration: none; }
.foot a:hover { color: var(--copper); }
.foot-legal { margin-top: 2.6rem; padding-top: 1.4rem; border-top: var(--rule);
  font-size: .75rem; color: var(--muted); line-height: 1.7; }

/* ---------- guide panels ---------- */
/* Two equal panels, photo above copy, the whole card a single link so the
   target is big and obvious rather than a small text link people hunt for. */
.guides { display: grid; gap: 1.6rem; }
@media (min-width: 46rem) { .guides { grid-template-columns: 1fr 1fr; } }

/* Full-bleed pair: the two photos run the whole width of the screen with no
   gap and no border, so they read as one band rather than two cards. */
.guides.is-fullbleed { gap: 0; margin-top: 2.4rem; }
.guides.is-fullbleed .guide { border: none; background: transparent; }
.guides.is-fullbleed .guide:hover { transform: none; box-shadow: none; }
.guides.is-fullbleed .guide-img { aspect-ratio: 3 / 2; }
.guides.is-fullbleed .guide-body { padding: 1.6rem var(--gutter) 0; }
@media (min-width: 46rem) {
  .guides.is-fullbleed .guide:first-child .guide-body { padding-left: var(--gutter); padding-right: 2rem; }
  .guides.is-fullbleed .guide:last-child  .guide-body { padding-left: 2rem; padding-right: var(--gutter); }
}

.guide { display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--hairline); text-decoration: none; color: var(--ink);
  overflow: hidden; height: 100%;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.guide:hover, .guide:focus-visible { transform: translateY(-5px);
  border-color: var(--copper); box-shadow: 0 14px 34px rgba(41,51,56,.13); }
.guide:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.guide-img { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.guide-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.guide:hover .guide-img img { transform: scale(1.045); }
.guide-body { display: flex; flex-direction: column; flex: 1 1 auto;
  padding: 1.5rem 1.6rem 1.7rem; }
.guide-body .label { display: block; margin-bottom: .5rem; }
.guide-title { font-family: var(--serif); font-size: 1.65rem; line-height: 1.15;
  display: block; margin-bottom: .7rem; color: var(--blue); }
.guide-text { display: block; font-size: .93rem; line-height: 1.75;
  color: var(--muted); flex: 1 1 auto; }
.guide-cta { display: inline-block; margin-top: 1.2rem; font-family: var(--sans);
  font-size: .72rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--copper-text);
  border-bottom: 1px solid currentColor; padding-bottom: 3px; align-self: flex-start; }

/* ---------- blog title banner ---------- */
/* Photo behind the article title. The scrim is deliberately heavy: the title,
   the date and the back link all sit on it, and these photos were picked for
   subject rather than for having a dark corner to put type on. */
.post-banner { position: relative; width: 100%; overflow: hidden;
  background: var(--blue); isolation: isolate;
  min-height: clamp(20rem, 42vh, 28rem);
  display: flex; align-items: flex-end;
  padding-block: 8rem 2.6rem; }
.post-banner > img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 0; }
.post-banner-scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top,
    rgba(41,51,56,.9) 0%, rgba(41,51,56,.74) 42%,
    rgba(41,51,56,.56) 72%, rgba(41,51,56,.5) 100%); }
.post-banner-copy { position: relative; z-index: 2; width: 100%; }
.post-banner-copy h1 { color: #fff; }
.post-banner-copy .label { color: rgba(255,255,255,.85); }
.post-banner-copy .label:hover { color: var(--copper); }
.post-banner-copy .post-meta { color: rgba(255,255,255,.8); }
.post-banner-copy .rule { background: var(--copper); }
.post-banner-copy .lede { color: rgba(255,255,255,.95); }

/* ---------- hero video ---------- */
/* Sits on top of the photo and fades in only once it is actually playing.
   Until then, and forever if it never plays, the photo is the hero. */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .9s ease; z-index: 0; }
.hero-video.is-ready { opacity: 1; }
.hero .hero-inner { position: relative; z-index: 2; }

.hero-motion { position: absolute; right: var(--gutter); bottom: 1.6rem; z-index: 3;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,.45); background: rgba(41,51,56,.4);
  backdrop-filter: blur(6px); display: grid; place-items: center; padding: 0; }
.hero-motion:hover { border-color: #fff; }
.hero-motion:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
/* Two bars for pause; the paused state collapses them into a play triangle. */
.hero-motion-icon { position: relative; width: 10px; height: 11px; display: block; }
.hero-motion-icon::before, .hero-motion-icon::after { content: ""; position: absolute;
  top: 0; width: 3px; height: 11px; background: #fff; transition: all .25s ease; }
.hero-motion-icon::before { left: 0; }
.hero-motion-icon::after { right: 0; }
.hero-motion.is-paused .hero-motion-icon::before {
  left: 1px; width: 0; height: 0; background: transparent;
  border-left: 9px solid #fff; border-top: 6px solid transparent;
  border-bottom: 6px solid transparent; }
.hero-motion.is-paused .hero-motion-icon::after { opacity: 0; }

/* ---------- centered section head ---------- */
.wrap.is-centered { text-align: center; }
.wrap.is-centered .rule { margin-left: auto; margin-right: auto; }
.h2-split { line-height: 1.12; }
/* The manual line break is there to balance the two lines on desktop. On a
   phone the heading already wraps on its own, so the break would create a
   stray short line. */
@media (max-width: 34rem) { .h2-split br { display: none; } }

/* ---------- hamburger ---------- */
/* Sits outside the link list, hard against the right gutter, so it reads as
   a corner control rather than another nav item. */
.burger { margin-left: 1.5rem; flex: none; width: 2.6rem; height: 2.6rem; display: grid;
  place-items: center; background: none; border: none; cursor: pointer;
  padding: 0; color: #fff; }
.nav.is-solid .burger { color: var(--ink); }
.burger-bars { position: relative; width: 22px; height: 14px; display: block; }
.burger-bars i { position: absolute; left: 0; width: 100%; height: 1.5px;
  background: currentColor; border-radius: 2px;
  transition: transform .4s cubic-bezier(.65,.05,.36,1), opacity .25s ease,
              width .4s cubic-bezier(.65,.05,.36,1); }
.burger-bars i:nth-child(1) { top: 0; }
.burger-bars i:nth-child(2) { top: 6px; width: 70%; }
.burger-bars i:nth-child(3) { top: 12px; }
.burger:hover .burger-bars i:nth-child(2) { width: 100%; }
/* Open state: top and bottom rotate into an X, the short middle bar vanishes. */
.burger[aria-expanded="true"] .burger-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger-bars i:nth-child(2) { opacity: 0; width: 0; }
.burger[aria-expanded="true"] .burger-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- side menu ---------- */
.menu-veil { position: fixed; inset: 0; z-index: 90; background: rgba(41,51,56,.45);
  backdrop-filter: blur(2px); opacity: 0; transition: opacity .45s ease; }
.menu-veil.is-open { opacity: 1; }

.sidemenu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(25rem, 86vw); background: var(--white);
  border-left: 1px solid var(--hairline);
  box-shadow: -18px 0 54px rgba(41,51,56,.16);
  transform: translateX(100%); transition: transform .5s cubic-bezier(.22,.61,.36,1);
  overflow-y: auto; overscroll-behavior: contain; }
.sidemenu.is-open { transform: translateX(0); }
.sidemenu-inner { padding: 5.2rem var(--gutter) 3rem; }
.sidemenu-close { position: absolute; top: 1.5rem; right: 1.4rem; width: 2.4rem;
  height: 2.4rem; border: none; background: none; cursor: pointer; padding: 0;
  color: var(--muted); display: grid; place-items: center; }
.sidemenu-close:hover { color: var(--copper); }
.sidemenu-close span { position: relative; width: 17px; height: 17px; display: block; }
.sidemenu-close span::before, .sidemenu-close span::after { content: ""; position: absolute;
  top: 8px; left: 0; width: 100%; height: 1.5px; background: currentColor; }
.sidemenu-close span::before { transform: rotate(45deg); }
.sidemenu-close span::after  { transform: rotate(-45deg); }

.sidemenu ul { list-style: none; padding: 0; margin: 0; }
.sidemenu a { text-decoration: none; color: var(--ink); display: block;
  transition: color .2s ease, transform .3s ease; }
.sidemenu a:hover { color: var(--copper); transform: translateX(4px); }
.sidemenu-main li { border-bottom: 1px solid var(--hairline); }
.sidemenu-main a { font-family: var(--serif); font-size: 1.45rem; padding: .78rem 0; }
.sidemenu-areas { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem 1rem; }
.sidemenu-areas a { font-size: .83rem; color: var(--muted); padding: .18rem 0; }
.sidemenu-contact a { font-size: .9rem; padding: .22rem 0; }
.sidemenu-guides li { border-bottom: 1px solid var(--hairline); }
.sidemenu-guides a { font-family: var(--serif); font-size: 1.1rem; padding: .5rem 0;
  color: var(--blue); }
.sidemenu-guides a:hover { color: var(--copper); }
.sidemenu-social { margin-top: 1.6rem; }
/* .sidemenu ul is a plain block list, which stacked the icons vertically.
   The social row needs to be a row. */
.sidemenu ul.social { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.sidemenu .social a { color: var(--muted); }
.sidemenu .social a:hover { color: var(--copper); transform: none; }
.sidemenu .social svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }

/* Items fly in one after another once the panel has started moving. */
.js .sidemenu li, .js .sidemenu .label, .js .sidemenu .social {
  opacity: 0; transform: translateX(14px);
  transition: opacity .4s ease, transform .45s cubic-bezier(.22,.61,.36,1); }
.js .sidemenu.is-open li, .js .sidemenu.is-open .label,
.js .sidemenu.is-open .social { opacity: 1; transform: none; }
.js .sidemenu.is-open .sidemenu-main li:nth-child(1) { transition-delay: .14s; }
.js .sidemenu.is-open .sidemenu-main li:nth-child(2) { transition-delay: .19s; }
.js .sidemenu.is-open .sidemenu-main li:nth-child(3) { transition-delay: .24s; }
.js .sidemenu.is-open .sidemenu-main li:nth-child(4) { transition-delay: .29s; }
.js .sidemenu.is-open .sidemenu-main li:nth-child(5) { transition-delay: .34s; }
.js .sidemenu.is-open .sidemenu-main li:nth-child(6) { transition-delay: .39s; }
.js .sidemenu.is-open .sidemenu-areas li { transition-delay: .42s; }
.js .sidemenu.is-open .sidemenu-contact li { transition-delay: .46s; }
.js .sidemenu.is-open .social { transition-delay: .5s; }

body.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .sidemenu { transition: none; }
  .js .sidemenu li, .js .sidemenu .label, .js .sidemenu .social {
    opacity: 1; transform: none; transition: none; }
  .sidemenu a:hover { transform: none; }
}

/* ---------- featured neighborhood cards ---------- */
/* Title only at rest. On hover the image scales behind a scrim and the
   description rises into place. The copy block is translated down by exactly
   its own description height, so nothing reflows and the grid cannot shift.
   Height is fixed so every card in a row lines up regardless of copy length. */
.nhoods { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .nhoods { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .nhoods { grid-template-columns: repeat(3, 1fr); } }

.nhood { position: relative; display: block; height: 26rem; overflow: hidden;
  text-decoration: none; color: #fff; isolation: isolate; background: var(--blue); }
/* No photo yet: brand colour and a lighter scrim, so the tile still reads
   as deliberate rather than as a failed image. */
.nhood.is-noimg .nhood-scrim { background: linear-gradient(to top,
    rgba(41,51,56,.55) 0%, rgba(41,51,56,.12) 70%, rgba(41,51,56,0) 100%); }
.nhood.is-noimg:hover .nhood-scrim { background: rgba(41,51,56,.6); }
.nhood-img { position: absolute; inset: 0; display: block; }
.nhood-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.nhood:hover .nhood-img img,
.nhood:focus-visible .nhood-img img { transform: scale(1.06); }

/* Dark at the bottom, clear at the top, so the title is always readable
   whatever the photo is doing up there. */
.nhood-scrim { position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(41,51,56,.92) 0%, rgba(41,51,56,.72) 24%,
    rgba(41,51,56,.28) 52%, rgba(41,51,56,0) 78%);
  transition: background .45s ease; }
/* Was opacity:1, which is what it already was, so the photo never actually
   dimmed and the summary sat over an undimmed image. Match the neighborhoods
   grid: gradient at rest, flat wash on hover so body copy is readable. */
.nhood:hover .nhood-scrim, .nhood:focus-visible .nhood-scrim {
  background: rgba(41,51,56,.82); }

.nhood-copy { position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.5rem; display: block;
  transform: translateY(var(--desc-h, 0px));
  transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.nhood:hover .nhood-copy,
.nhood:focus-visible .nhood-copy { transform: translateY(0); }

.nhood-title { display: block; font-family: var(--serif); font-size: 1.85rem;
  line-height: 1.15; color: #fff; }
.nhood-desc { display: block; margin-top: .7rem; font-size: .88rem;
  line-height: 1.7; color: rgba(255,255,255,.88); opacity: 0;
  transition: opacity .45s ease .08s; }
.nhood:hover .nhood-desc,
.nhood:focus-visible .nhood-desc { opacity: 1; }

.nhood:focus-visible { outline: 2px solid var(--copper); outline-offset: -4px; }

/* Touch screens have no hover, so show everything rather than hiding copy
   behind a gesture that does not exist. */
@media (hover: none) {
  .nhood-copy { transform: none; }
  .nhood-desc { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .nhood-copy { transform: none; transition: none; }
  .nhood-desc { opacity: 1; transition: none; }
  .nhood:hover .nhood-img img { transform: none; }
}

/* ---------- neighborhood grid ---------- */
/* Three up on desktop, two on tablet, one on phone. The first cell is copy
   rather than a photo, so the page introduces itself without a separate
   header band above the grid. */
.ncards { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .ncards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .ncards { grid-template-columns: repeat(3, 1fr); } }

.ncard-intro { display: flex; flex-direction: column; justify-content: center;
  padding: .5rem 1.5rem 1.5rem 0; }
.ncard-intro h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.ncard-intro p { color: var(--muted); }

.ncard { position: relative; display: block; width: 100%; height: 27rem;
  overflow: hidden; text-decoration: none; background: var(--blue); color: #fff;
  isolation: isolate; }
.ncard-img { position: absolute; inset: 0; display: block; }
.ncard-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .9s cubic-bezier(.22,.61,.36,1), filter .45s ease; }
.ncard:hover .ncard-img img { transform: scale(1.05); }

/* Resting scrim keeps the title legible. Hover deepens it so the summary can
   be read over the photograph. */
.ncard-scrim { position: absolute; inset: 0; transition: background .45s ease;
  background: linear-gradient(to top,
    rgba(41,51,56,.9) 0%, rgba(41,51,56,.62) 26%,
    rgba(41,51,56,.2) 55%, rgba(41,51,56,0) 80%); }
.ncard:hover .ncard-scrim, .ncard:focus-visible .ncard-scrim {
  background: rgba(41,51,56,.82); }

.ncard-copy { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.3rem;
  z-index: 2; display: block;
  transform: translateY(var(--hide-h, 0px));
  transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.ncard:hover .ncard-copy, .ncard:focus-visible .ncard-copy { transform: translateY(0); }

.ncard-title { display: block; font-family: var(--serif); font-size: 1.75rem;
  line-height: 1.15; color: #fff; }
.ncard-desc { display: block; margin-top: .7rem; font-size: .84rem; line-height: 1.65;
  color: rgba(255,255,255,.88); opacity: 0; transition: opacity .4s ease .08s; }
.ncard-more { display: inline-block; margin-top: .9rem; font-family: var(--sans);
  font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 3px;
  opacity: 0; transition: opacity .4s ease .14s; }
.ncard:hover .ncard-desc, .ncard:focus-visible .ncard-desc,
.ncard:hover .ncard-more, .ncard:focus-visible .ncard-more { opacity: 1; }

.ncard:focus-visible { outline: 2px solid var(--copper); outline-offset: -4px; }
.ncard.is-noimg .ncard-scrim { background: linear-gradient(to top,
    rgba(41,51,56,.55) 0%, rgba(41,51,56,.12) 70%, rgba(41,51,56,0) 100%); }
.ncard.is-noimg:hover .ncard-scrim { background: rgba(41,51,56,.6); }

/* No hover on a touch screen, so show everything rather than hiding copy
   behind a gesture that does not exist there. */
@media (hover: none) {
  .ncard-copy { transform: none; }
  .ncard-desc, .ncard-more { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ncard-copy, .ncard-desc, .ncard-more, .ncard-img img, .ncard-scrim { transition: none; }
  .ncard:hover .ncard-img img { transform: none; }
}

/* ---------- area page ---------- */
/* Full-bleed horizontal hero with a frosted panel over the left of the frame,
   carrying the name and the whole overview. The photo stays visible on the
   right, which is what keeps it feeling like a photograph rather than a
   coloured box with text on it. */
.area-hero { position: relative; width: 100%; overflow: hidden;
  background: var(--blue); isolation: isolate;
  display: flex; align-items: center;
  min-height: clamp(30rem, 78vh, 44rem); padding-block: 7rem 3rem; }
.area-hero > img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: -1; }
/* A short wash across the top. The white logo and nav links sit over whatever
   the photo happens to be doing up there, and a bright sky washes them out
   completely. This costs nothing visually and makes the bar legible on every
   photo rather than most of them. */
.area-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0;
  height: 9rem; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(41,51,56,.82) 0%, rgba(41,51,56,.46) 50%, rgba(41,51,56,0) 100%); }
.area-hero-wrap { width: 100%; position: relative; z-index: 1; }

.area-hero-panel { position: relative; z-index: 1; max-width: 34rem;
  padding: 2.6rem 2.4rem 2.4rem;
  background: rgba(41,51,56,.62);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); }
/* Feather the right and bottom edges so the panel dissolves into the photo
   instead of ending on a hard rectangle. */
@supports (mask-image: linear-gradient(#000, #000)) {
  .area-hero-panel {
    mask-image: linear-gradient(to right, #000 72%, rgba(0,0,0,.86) 100%),
                linear-gradient(to bottom, #000 80%, rgba(0,0,0,.88) 100%);
    -webkit-mask-image: linear-gradient(to right, #000 72%, rgba(0,0,0,.86) 100%),
                linear-gradient(to bottom, #000 80%, rgba(0,0,0,.88) 100%);
    mask-composite: intersect; -webkit-mask-composite: source-in; }
}
/* Browsers without backdrop-filter get a solid-enough panel rather than
   unreadable white text on a bright photo. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .area-hero-panel { background: rgba(41,51,56,.84); }
}

.area-hero-panel .label { color: rgba(255,255,255,.82); text-decoration: none; }
.area-hero-panel .label:hover { color: var(--copper); }
.area-hero-panel h1 { color: #fff; font-size: clamp(2.4rem, 5.4vw, 4rem);
  line-height: 1.04; margin: .5rem 0 1.3rem; }
.area-hero-text { color: rgba(255,255,255,.92); font-size: .95rem;
  line-height: 1.85; margin-bottom: 1.8rem; }
.area-hero .btn-light { border-color: rgba(255,255,255,.6); }

@media (max-width: 45rem) {
  .area-hero { min-height: 0; padding-block: 6.5rem 2.5rem; }
  .area-hero-panel { max-width: none; padding: 2rem 1.6rem; }
}

/* ---------- sub-neighborhood cards ---------- */
/* Numbered photo cards, the pattern from the reference build. The photo is the
   card, the copy sits on it over a scrim, and the number gives the grid a
   rhythm when several areas are browsed in a row. */
.subcards { display: grid; gap: 1.1rem; margin-top: 2.2rem;
  grid-template-columns: 1fr; }
@media (min-width: 42rem) { .subcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .subcards { grid-template-columns: repeat(3, 1fr); } }

.subcard { position: relative; display: block; height: 22rem; overflow: hidden;
  background: var(--blue); isolation: isolate; }
.subcard-img { position: absolute; inset: 0; display: block; }
.subcard-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .8s cubic-bezier(.22,.61,.36,1); }
.subcard:hover .subcard-img img { transform: scale(1.04); }
/* Heavier than the area tiles because a full description sits here, not just
   a name. Measured against the brightest photo in the set. */
.subcard-scrim { position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(41,51,56,.93) 0%, rgba(41,51,56,.82) 38%,
    rgba(41,51,56,.55) 68%, rgba(41,51,56,.3) 100%); }
.subcard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 1.4rem 1.3rem; display: block; }
.subcard-num { display: block; font-family: var(--sans); font-size: .64rem;
  font-weight: 600; letter-spacing: .18em; color: rgba(255,255,255,.65);
  margin-bottom: .4rem; }
.subcard h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.15;
  color: #fff; margin-bottom: .5rem; }
.subcard p { font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.88);
  margin: 0; }

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

/* ---------- area accordion ---------- */
.areas { border-top: 1px solid var(--hairline); }
.area { border-bottom: 1px solid var(--hairline); }
.area > summary { display: flex; align-items: center; gap: 1.1rem;
  padding: 1.15rem .2rem; cursor: pointer; list-style: none;
  transition: color .25s ease; }
.area > summary::-webkit-details-marker { display: none; }
.area > summary:hover { color: var(--copper); }
.area > summary:focus-visible { outline: 2px solid var(--copper);
  outline-offset: 2px; }
.area-num { font-family: var(--sans); font-size: .7rem; font-weight: 600;
  letter-spacing: .13em; color: var(--copper-text); min-width: 2rem; }
.area-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2;
  flex: 1 1 auto; }
/* Plus sign drawn from two rules, so it can rotate into a minus when open. */
.area-mark { position: relative; width: 15px; height: 15px; flex: none; }
.area-mark::before, .area-mark::after { content: ""; position: absolute;
  background: currentColor; transition: transform .3s ease, opacity .3s ease; }
.area-mark::before { top: 7px; left: 0; width: 15px; height: 1.5px; }
.area-mark::after { left: 7px; top: 0; width: 1.5px; height: 15px; }
.area[open] .area-mark::after { transform: rotate(90deg); opacity: 0; }
.area-body { padding: 0 .2rem 1.8rem; max-width: 42rem; }
.area-photo { margin: 0 0 1.2rem; }
.area-photo img { width: 100%; height: auto; display: block; }
.area-body p { color: var(--muted); }
.area-hoods { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem;
  margin: 1.1rem 0 0; padding: 0; }
.area-hoods li { font-family: var(--sans); font-size: .73rem; letter-spacing: .04em;
  padding: .36rem .75rem; border: 1px solid var(--hairline);
  border-radius: 100px; color: var(--ink); background: var(--surface-alt); }
.js .area[open] .area-body { animation: area-open .4s cubic-bezier(.22,.61,.36,1); }
@keyframes area-open { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .js .area[open] .area-body { animation: none; }
  .guide:hover { transform: none; }
  .guide:hover .guide-img img { transform: none; }
}

/* ---------- deep links ---------- */
/* The Encore buttons link straight to #pumpkin-patches and #halloween. The
   nav is sticky and about 72px tall, so without this the heading you were
   sent to lands underneath it and the page looks like it jumped to the wrong
   place. Applies to any anchored element, so future deep links get it free. */
:target { scroll-margin-top: 6.5rem; }

/* ---------- tables ---------- */
/* First used by the monthly market posts. The wrapper scrolls sideways on a
   phone instead of squeezing five columns into 375px, which is the one thing
   that reliably makes a data table unreadable. */
.table-wrap { overflow-x: auto; margin: 1.8rem 0 .8rem;
  -webkit-overflow-scrolling: touch; }
.post table, .table-wrap table { width: 100%; border-collapse: collapse;
  font-size: .92rem; min-width: 30rem; }
.table-wrap th, .table-wrap td { text-align: right; padding: .6rem .7rem;
  border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.table-wrap thead th { font-family: var(--sans); font-size: .66rem;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  font-weight: 600; border-bottom: 2px solid var(--hairline); }
/* Row labels read as labels, not data. */
.table-wrap tbody th[scope="row"] { text-align: left; font-weight: 500;
  color: var(--ink); white-space: normal; }
.table-wrap tbody tr:last-child th,
.table-wrap tbody tr:last-child td { border-bottom: none; }

/* ---------- social icons ---------- */
/* .foot ul is a grid, so this has to reset to flex or the icons stack. */
.foot ul.social { display: flex; flex-wrap: wrap; gap: 1.05rem; margin-top: 1.25rem; }
.social a { display: block; line-height: 0; color: var(--muted); }
.social svg { width: 1.35rem; height: 1.35rem; fill: currentColor; display: block; }
.social a:hover, .social a:focus-visible { color: var(--copper); }
.social a:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 2px; }

/* ---------- social buttons by the bio ---------- */
/* Larger circular version of the footer icons, sitting under the About photo.
   They pop in one after another when the photo scrolls into view, and lift on
   hover. The overshoot in the transform easing is what gives it the bounce. */
.social-bio { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none;
  padding: 0; margin: 1.1rem 0 0; }
.social-bio a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border: 1px solid var(--hairline); border-radius: 50%; background: #fff;
  color: var(--muted);
  transition: transform .25s ease, color .25s ease, border-color .25s ease,
              box-shadow .25s ease; }
.social-bio svg { width: 1.15rem; height: 1.15rem; fill: currentColor; display: block; }
.social-bio a:hover, .social-bio a:focus-visible {
  transform: translateY(-5px); color: var(--copper); border-color: var(--copper);
  box-shadow: 0 7px 18px rgba(195,101,60,.24); }
.social-bio a:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

.js .social-bio > li { opacity: 0; transform: translateY(14px) scale(.8);
  transition: opacity .45s ease, transform .55s cubic-bezier(.34,1.56,.64,1); }
.js .social-bio.is-in > li { opacity: 1; transform: none; }
.js .social-bio.is-in > li:nth-child(2) { transition-delay: .09s; }
.js .social-bio.is-in > li:nth-child(3) { transition-delay: .18s; }
.js .social-bio.is-in > li:nth-child(4) { transition-delay: .27s; }
.js .social-bio.is-in > li:nth-child(5) { transition-delay: .36s; }

/* ---------- scroll reveals ---------- */
/* Gated behind .js so that if the script never runs, every section is simply
   visible. Content that depends on JavaScript to appear is content that can
   disappear, and this page is somebody's first impression of Riley. */
.js .reveal { opacity: 0; transform: translateY(18px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Staggered children, for grids of cards. Capped at 6 so a long list never
   leaves the last card waiting a noticeable beat behind the first. */
.js .reveal-group > * { opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.js .reveal-group.is-in > * { opacity: 1; transform: none; }
.js .reveal-group.is-in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-group.is-in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-group.is-in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-group.is-in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-group.is-in > *:nth-child(n+6) { transition-delay: .35s; }

@media (max-width: 47.99rem) { .nav-links .hide-sm { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Someone who has asked their machine for less motion gets none of this. */
  .js .reveal, .js .reveal-group > *, .js .social-bio > * {
    opacity: 1; transform: none; transition: none; }
  .social-bio a:hover { transform: none; }
}
