/* ==================================================================
   Walnut House (132 Walnut St, Harrisburg PA) — property identity.
   Loaded after styles.css. The shared framework (styles.css, main.js,
   availability.js, map.js) stays identical to 315 N 2nd St; everything
   that makes this site look like *this* building lives here.

   Theme: a downtown brick rowhouse a block from the river, named for its
   street. Walnut-wood brown for ink and dark sections, the painted cream of
   the oriel window for buttons and paper, and the facade's red brick kept to
   small accents (dots, eyebrows, the odd rule). Type: Young Serif (a sturdy,
   single-weight serif: nothing goes hairline) + Figtree. Motif: the dentil
   course from the cornice, used as a hem under dark bands and as the
   ornament. Signature: the oriel, drawn large with labels, and the
   renovation timeline on the home page.
   ================================================================== */
:root {
  --paper: #F5EFE4;
  --paper-2: #ECE3D3;
  --paper-3: #DCCFBA;
  --ink: #33251C;
  --ink-2: #4A3A2F;
  --ink-soft: #6E5E52;
  --river: #4A372A;          /* lighter walnut (hover on dark buttons) */
  --river-deep: #2A1E17;     /* dark walnut: dark sections, footer */
  --sage: #CDBFA6;
  --sage-soft: #E6DAC5;
  --brass: #A9906C;          /* a soft, wood-toned rule line */
  --brass-text: #9A4E34;     /* brick, for small text accents */
  --sage-bar: #EFE6D6;       /* the oriel's painted cream */
  --line: rgba(51, 37, 28, .15);
  --line-light: rgba(245, 239, 228, .2);

  --brick: #A65A3E;          /* brick accent — small doses only */
  --trim: #EFE3CC;           /* oriel cream: buttons and accents on dark */
  --trim-hi: #F7EEDC;

  --serif: "Young Serif", "Iowan Old Style", Georgia, serif;
  --period: "Young Serif", Georgia, serif;
  --sans: "Figtree", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Type ---------- */
/* Young Serif has one weight; keep everything at 400 so the browser never fakes bold. */
h1, h2, h3, .title, .stat .num, .hero-name, .menu-nav a { font-weight: 400; }
.title { letter-spacing: .005em; line-height: 1.04; }
.title--xl { font-size: clamp(42px, 6.4vw, 92px); }
.title--lg { font-size: clamp(32px, 4.6vw, 66px); }
.intro-title { font-size: clamp(26px, 4.6vw, 60px); }
.collage--text .c-copy .title--xl { font-size: clamp(44px, 5.8vw, 88px); }
.page-banner .title { font-size: clamp(32px, 8.4vw, 120px); }
h1 em, h2 em, h3 em { font-style: normal; color: var(--brass-text); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: var(--trim); }
.copy-lg { font-size: clamp(18px, 1.55vw, 21px); }
/* No italic in Young Serif: the "period" accents use the sans in italic instead. */
.lede, .copy-period, .carousel-caption, .page-banner .sub, .stat .lbl, .contact-list .v { font-family: var(--sans); font-style: normal; }
.dropcap::first-letter { color: var(--brick); }

/* Eyebrows: spaced Figtree capitals with a dentil block either side */
.eyebrow {
  font-family: var(--sans); font-style: normal; font-variant: normal;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-text);
}
.eyebrow::before, .eyebrow::after { width: 14px; height: 6px; background: none; border: 0; opacity: .9;
  background: linear-gradient(90deg, currentColor 0 4px, transparent 4px 5px, currentColor 5px 9px, transparent 9px 10px, currentColor 10px 14px); }
.on-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--trim); }

/* ---------- Header / menu / pills ---------- */
.site-header.is-solid, body.page-light .site-header { background: rgba(239, 230, 214, .97); }
.hbtn--apply:hover .arr { background: var(--brick); }
.menu-nav a { font-family: var(--serif); }
.menu-logo { width: 150px; }
.pill svg { color: var(--brick); }
.pill--dark svg { color: var(--trim); }
.site-footer h3 { color: var(--trim); font-weight: 400; }
.menu-nav a::before, .scroll-cue, .steps li::before { color: var(--trim); }

/* ---------- CTAs: oriel cream with a walnut arrow block ---------- */
.cta .t { background: var(--trim); color: var(--ink); font-weight: 600; font-size: clamp(15px, 1.35vw, 18px); letter-spacing: .06em; }
.cta:hover .t { background: var(--trim-hi); }
.cta .a { background: var(--river-deep); color: var(--trim); }
.on-dark .cta .a, .hero .cta .a, .band .cta .a { background: var(--brick); color: var(--paper); }
.cta--dark .t { background: var(--river-deep); color: var(--paper); }
.cta--dark .a { background: var(--brick); color: var(--paper); }
.cta--dark:hover .t { background: var(--river); }
.av-chips button[aria-pressed="true"], .av-view button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--trim); border-color: var(--trim); color: var(--ink); }
.carousel-btn { background: rgba(42, 30, 23, .45); color: var(--trim); }
.carousel-btn:hover { background: rgba(42, 30, 23, .8); }
.carousel-dots button[aria-current="true"]::after { background: var(--brick); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(166, 90, 62, .22); }
:focus-visible { outline-color: var(--brick); }
::selection { background: var(--sage-soft); }

/* ---------- Motifs ---------- */
/* Ornament: rule · dentil course · rule */
.ornament svg { visibility: hidden; }
.ornament { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12' fill='%23A65A3E'%3E%3Cpath d='M0 5.5h14v1H0zM46 5.5h14v1H46z' fill='%23A9906C'/%3E%3Crect x='18' y='3' width='4' height='6'/%3E%3Crect x='24' y='3' width='4' height='6'/%3E%3Crect x='30' y='3' width='4' height='6'/%3E%3Crect x='36' y='3' width='4' height='6'/%3E%3C/svg%3E") center / 60px 12px no-repeat; }
.on-dark .ornament, .page-banner .ornament { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12' fill='%23EFE3CC'%3E%3Cpath d='M0 5.5h14v1H0zM46 5.5h14v1H46z' fill-opacity='.6'/%3E%3Crect x='18' y='3' width='4' height='6'/%3E%3Crect x='24' y='3' width='4' height='6'/%3E%3Crect x='30' y='3' width='4' height='6'/%3E%3Crect x='36' y='3' width='4' height='6'/%3E%3C/svg%3E"); }

/* Dentil hem under the dark hero and page banners: a walnut band with a row of dentils */
.page-banner::after, .hero--drawn::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 20px; z-index: 2; pointer-events: none; opacity: 1;
  background:
    linear-gradient(var(--river-deep), var(--river-deep)) 0 0 / 100% 7px no-repeat,
    linear-gradient(90deg, var(--river-deep) 0 10px, transparent 10px) 0 7px / 16px 13px repeat-x;
}
.page-banner { background: var(--river-deep); padding-bottom: clamp(56px, 7vw, 104px); }
.page-banner + section, .hero--drawn + section { padding-top: calc(clamp(56px, 7vw, 96px) + 14px); }

/* Alt sections: plain warm paper, no pattern */
.section--alt { background-image: none; }

/* Picture frame: cream mat with a fine wood-toned line */
.dbl-frame::after { border-color: rgba(245, 239, 228, .75); outline-color: rgba(245, 239, 228, .4); }
.trim-frame { position: relative; padding: 12px; background: var(--sage-bar); box-shadow: 0 18px 44px rgba(42, 30, 23, .12); }
.trim-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--brass); pointer-events: none; z-index: 1; }
.trim-frame .figure { background: var(--paper-3); }
.trim-frame figcaption { margin-top: 10px; font: 14px/1.4 var(--sans); color: var(--ink-soft); text-align: center; }

/* Panels (interest list) — oriel cream with brick corners */
.panel { background: var(--sage-bar); outline-color: var(--brass); }
.panel::before, .panel::after { border-color: var(--brick); }
.wave-section::before { opacity: 0; }

/* Stats */
.stat .num { font-family: var(--serif); }
.stat .lbl { font-size: 15px; letter-spacing: .02em; }

/* Timeline (history page) */
.tl-item::before { border-color: var(--brick); }
.tl-item.is-key::before { background: var(--brick); }
.tl-year { color: var(--brass-text); font-weight: 400; }

/* Notices / features / places */
.notice { border-left-color: var(--brick); }
.notice svg, .feature svg { color: var(--brick); }
.on-dark .feature svg { color: var(--trim); }
.place .walk { color: var(--brass-text); }
.pin { border-color: var(--trim); }
.leaflet-marker-icon:hover .pin, .leaflet-marker-icon:focus .pin { background: var(--trim); }
.pin-logo { border-color: var(--brass); }
.pin-logo::after { border-color: var(--brass); }
.nbhd-map, .nbhd-map .leaflet-popup-content-wrapper, .nbhd-map .leaflet-popup-tip { outline-color: var(--brass); border-color: var(--brass); }

/* Availability */
.av-panel { background: var(--sage-bar); }
.av-card-plan .plan-ph { color: var(--brick); opacity: .7; }

/* ---------- Home hero: walnut ground + self-drawing facade ---------- */
.hero--drawn { display: block; min-height: 100svh; background: var(--river-deep); color: var(--paper); overflow: visible; }
.hero-split { position: relative; display: grid; gap: var(--s5); align-items: center; min-height: 100svh; padding-top: 112px; padding-bottom: calc(var(--s6) + 14px); }
@media (min-width: 960px) { .hero-split { grid-template-columns: 7fr 5fr; gap: clamp(40px, 6vw, 110px); } }
.hero-copy { max-width: 600px; }
.hero-name { margin: 0; font-family: var(--serif); line-height: .92; letter-spacing: -.01em; max-width: none; font-size: clamp(66px, 9.4vw, 142px); }
.hero-name span { display: block; }
.hero-name span + span { color: var(--trim); padding-left: .5em; }
.hero-accent { margin: var(--s4) 0 0; font: 400 clamp(19px, 1.8vw, 25px)/1.45 var(--sans); color: rgba(245, 239, 228, .9); max-width: 30ch; }
.hero-note { display: flex; align-items: center; gap: 12px; margin: var(--s5) 0 0; font: 600 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(245, 239, 228, .72); }
.hero-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--brick); box-shadow: 0 0 0 0 rgba(166, 90, 62, .6); animation: pulse 2.4s infinite; }
.hero-ctas { margin-top: var(--s5); }
.hero-art { position: relative; color: var(--trim); width: 100%; max-width: 430px; justify-self: center; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-art.is-drawing .bldg-lines { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 3.2s cubic-bezier(.45, .05, .3, 1) .2s forwards; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
.hero-art .street-sign {
  position: absolute; left: 100%; top: 34%; margin-left: 18px; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 8px 12px; border: 1px solid rgba(239, 227, 204, .5); color: var(--trim); white-space: nowrap;
  font: 600 10.5px/1.2 var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.hero-art .street-sign b { font: 400 18px/1.1 var(--serif); letter-spacing: .01em; text-transform: none; }
@media (max-width: 1280px) { .hero-art .street-sign { display: none; } }
@media (max-width: 959px) {
  .hero-split { padding-top: 104px; gap: var(--s5); align-content: center; }
  .hero-art { max-width: 300px; order: 2; }
}
@media (max-width: 520px) { .hero-name { font-size: clamp(58px, 17vw, 84px); } .hero-art { max-width: 240px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-art.is-drawing .bldg-lines { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Signature: the oriel, drawn large with labels ---------- */
.elevation { position: relative; display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; max-width: 1100px; margin: 0 auto; padding: clamp(28px, 4vw, 56px); background: var(--white); border: 1px solid var(--line); }
.elevation::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(169, 144, 108, .45); pointer-events: none; }
@media (min-width: 860px) { .elevation { grid-template-columns: minmax(240px, 380px) 1fr; } }
.facade-art { color: var(--ink); max-width: 380px; width: 100%; margin: 0 auto; }
.facade-art svg { width: 100%; height: auto; display: block; }
.facade-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }
.facade-notes li { position: relative; padding-left: 34px; }
.facade-notes li::before { content: attr(data-n); position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--river-deep); color: var(--trim); font: 600 12px/22px var(--sans); text-align: center; }
.facade-notes b { display: block; font: 400 clamp(20px, 1.8vw, 24px)/1.2 var(--serif); color: var(--ink); margin-bottom: 4px; }
.facade-notes span { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.elevation-note { margin: var(--s4) 0 0; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* ---------- Signature: renovation timeline ---------- */
.reno { position: relative; max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 0; }
@media (min-width: 860px) { .reno { grid-template-columns: repeat(4, 1fr); } }
.reno-step { position: relative; padding: var(--s4) var(--s4) var(--s4) 0; border-top: 2px solid var(--line-light); }
@media (max-width: 859px) { .reno-step { padding: var(--s4) 0 var(--s4) 30px; border-top: 0; border-left: 2px solid var(--line-light); } }
.reno-step::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--river-deep); border: 2px solid var(--trim); }
@media (max-width: 859px) { .reno-step::before { top: calc(var(--s4) + 6px); left: -7px; } }
.reno-step.is-done::before { background: var(--trim); }
.reno-step.is-now::before { background: var(--brick); border-color: var(--brick); box-shadow: 0 0 0 0 rgba(166, 90, 62, .6); animation: pulse 2.4s infinite; }
.reno-when { display: block; font: 600 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--trim); opacity: .8; }
.reno-step h3 { margin: 8px 0 6px; font: 400 clamp(22px, 2vw, 28px)/1.15 var(--serif); color: var(--paper); }
.reno-step p { margin: 0; font-size: 16px; line-height: 1.55; color: rgba(245, 239, 228, .8); }
.reno-note { max-width: 1100px; margin: var(--s5) auto 0; font-size: 14px; color: rgba(245, 239, 228, .62); }

/* Small photo credits at the foot of a page */
.photo-credits { padding: var(--s4) 0 0; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.photo-credits a { color: inherit; }
.photo-credits .wrap { border-top: 1px solid var(--line); padding-top: var(--s3); padding-bottom: var(--s4); }

/* History map print */
.map-print { position: relative; }
.map-print .figure { aspect-ratio: 1 / 1; }
.map-print .figure img { object-position: 50% 50%; }

/* Warm walnut shading over photos */
.hero-media::after { background: linear-gradient(180deg, rgba(42,30,23,.55) 0%, rgba(42,30,23,.12) 32%, rgba(42,30,23,.32) 58%, rgba(42,30,23,.88) 100%); }
.band .hero-media::after { background: rgba(42,30,23,.46); }
.figure figcaption { background: linear-gradient(transparent, rgba(42,30,23,.7)); }

/* Availability table: "Coming soon" is a long word here, so a size down */
.av-table td { font-size: clamp(17px, 1.65vw, 24px); }
@media (min-width: 761px) { .av-panel { overflow-x: auto; } }

/* Phones */
@media (max-width: 560px) {
  .cta .t { padding: 0 18px; font-size: 14px; letter-spacing: .04em; }
  .cta .a { width: 50px; }
}
