/* Americana Journeys prototype
   Warm parchment palette; responsive layout; no framework required. */
:root {
  --paper: #f4eddd;
  --paper-light: #fbf8f0;
  --paper-deep: #e8dcc4;
  --ink: #292820;
  --muted: #706b5d;
  --navy: #243b4a;
  --navy-dark: #192d39;
  --brick: #9a4937;
  --brick-dark: #783626;
  --gold: #b28a4b;
  --line: #d8cbb4;
  --shadow: 0 12px 32px rgba(53, 43, 27, .10);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus-visible { color: var(--brick-dark); }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: white; padding: 10px; z-index: 1000; }
.skip-link:focus { left: 10px; }
.site-header { background: var(--paper-light); border-bottom: 1px solid var(--line); }
.masthead { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 15px; color: var(--navy); text-decoration: none; }
.brand-mark { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); font: bold 22px var(--serif); letter-spacing: -2px; border-radius: 50%; }
.brand strong { display: block; font: 600 27px/1.15 var(--serif); letter-spacing: .1px; }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.menu-toggle { display: none; border: 1px solid var(--line); background: transparent; color: var(--navy); padding: 9px 13px; border-radius: 4px; font: inherit; }
.primary-nav { background: var(--navy); color: white; position: relative; z-index: 50; }
.nav-inner { display: flex; align-items: stretch; gap: 4px; min-height: 50px; }
.nav-link { display: flex; align-items: center; padding: 13px 17px; color: #f9f5eb; text-decoration: none; font-size: 13px; letter-spacing: .035em; }
.nav-link:hover, .nav-link:focus-visible, .nav-link.active { background: var(--navy-dark); color: white; }
.nav-group { position: relative; display: flex; }
.chevron { margin-left: 7px; color: #d7c49c; font-size: 11px; }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 230px; padding: 8px; background: var(--paper-light); border: 1px solid var(--line); box-shadow: var(--shadow); }
.nav-menu a { display: block; padding: 9px 12px; color: var(--navy); text-decoration: none; font-size: 13px; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--paper-deep); color: var(--brick-dark); }
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu { display: block; }
.hero { display: grid; grid-template-columns: 1.02fr .98fr; gap: 54px; align-items: center; padding-block: 64px 70px; }
.eyebrow { margin: 0 0 11px; color: var(--brick); font-size: 11px; font-weight: 700; letter-spacing: .16em; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3 { color: var(--navy); font-family: var(--serif); font-weight: 500; line-height: 1.18; }
h1 { margin: 0 0 20px; font-size: clamp(38px, 5vw, 58px); letter-spacing: -.025em; }
h2 { margin: 0 0 15px; font-size: clamp(27px, 3vw, 35px); }
h3 { margin: 0 0 9px; font-size: 21px; }
.hero-copy > p:not(.eyebrow) { max-width: 580px; color: #555044; font: 18px/1.7 var(--serif); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 27px; }
.button { display: inline-block; padding: 12px 18px; border: 1px solid var(--brick); border-radius: 3px; font-size: 13px; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--brick); color: white; }
.button-primary:hover { background: var(--brick-dark); color: white; }
.button-secondary { background: transparent; color: var(--brick); }
.text-link { font-size: 13px; font-weight: 700; text-decoration: none; }
.hero-art { position: relative; min-height: 345px; display: grid; place-items: center; padding: 17px; background: #e4d5b9; border: 1px solid #cbb994; box-shadow: var(--shadow); transform: rotate(.5deg); }
.hero-art img { width: 100%; max-height: 345px; object-fit: cover; filter: sepia(.12); }
.hero-art.map-fallback { background: linear-gradient(135deg, #d7c39b, #efe4ca 45%, #b8aa88); }
.hero-art.map-fallback:before { content: "HISTORICAL MAP IMAGE"; color: #76664a; font: 12px var(--serif); letter-spacing: .2em; }
.image-note { position: absolute; bottom: 0; right: 0; background: var(--paper-light); color: var(--muted); padding: 8px 13px; font: italic 12px var(--serif); }
.intro-band { background: var(--navy); color: #f8f2e5; padding: 27px 0; }
.intro-grid { display: grid; grid-template-columns: .45fr 1.55fr; gap: 30px; align-items: center; }
.intro-grid .eyebrow { color: #d6b879; margin: 0; }
.intro-grid p:last-child { margin: 0; max-width: 850px; font: 19px/1.5 var(--serif); }
.section { padding-block: 66px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin-bottom: 0; }
.section-note { max-width: 340px; margin: 0; color: var(--muted); font-size: 13px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.feature-card { min-height: 255px; display: flex; flex-direction: column; align-items: flex-start; padding: 25px; color: white; text-decoration: none; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { color: white; transform: translateY(-4px); box-shadow: 0 16px 34px rgba(53,43,27,.16); }
.feature-people { background: linear-gradient(145deg, rgba(31,54,67,.96), rgba(42,69,77,.91)), url("../images/people-card.jpg") center/cover; }
.feature-places { background: linear-gradient(145deg, rgba(117,57,40,.96), rgba(151,86,54,.88)), url("../images/places-card.jpg") center/cover; }
.feature-genealogy { background: linear-gradient(145deg, rgba(105,86,52,.97), rgba(143,117,69,.91)), url("../images/genealogy-card.jpg") center/cover; }
.feature-kicker { color: #e8d5ae; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.feature-title { margin-top: 28px; font: 31px var(--serif); }
.feature-desc { max-width: 300px; margin-top: 8px; color: #f4ecdc; font: 15px/1.5 var(--serif); }
.feature-arrow { margin-top: auto; padding-top: 18px; font-size: 12px; font-weight: 700; }
.featured-video-section { background: #e9dfcc; border-block: 1px solid var(--line); padding-block: 55px; }
.video-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 45px; align-items: center; }
.video-placeholder { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: linear-gradient(135deg, #283f4c, #6e5940); color: #eee2c8; border: 9px solid var(--paper-light); box-shadow: var(--shadow); font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }
.play-symbol { display: grid; place-items: center; width: 62px; height: 62px; border: 1px solid #d9c18d; border-radius: 50%; color: #f1dba9; font-size: 20px; padding-left: 4px; }
.video-copy p:not(.eyebrow) { color: #5d574a; }
.small-note { color: var(--muted); font-size: 11px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.story-card { overflow: hidden; background: var(--paper-light); border: 1px solid var(--line); }
.story-image { min-height: 165px; display: flex; align-items: end; padding: 13px; color: white; background-color: #6d6653; }
.story-image span { padding: 5px 8px; background: rgba(30,43,48,.82); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.story-image-salem { background: linear-gradient(145deg, #7b6950, #3e5050); }
.story-image-fort { background: linear-gradient(145deg, #526a6b, #253b46); }
.story-image-west { background: linear-gradient(145deg, #a0784e, #604c38); }
.story-card-body { padding: 19px; }
.story-card-body h3 a { color: var(--navy); text-decoration: none; }
.story-card-body h3 a:hover { color: var(--brick); }
.story-card-body p { margin: 0; color: var(--muted); font-size: 13px; }
.era-strip { padding-block: 55px 65px; background: var(--paper-light); border-top: 1px solid var(--line); }
.era-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.era-list a { min-height: 105px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--navy); font: 17px/1.25 var(--serif); text-decoration: none; }
.era-list a:hover { border-color: var(--gold); background: #f1e7d4; }
.era-list span { color: var(--muted); font: 10px var(--sans); letter-spacing: .07em; }
.page-main { padding-block: 52px 75px; min-height: 55vh; }
.page-heading { max-width: 820px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.page-heading h1 { font-size: clamp(38px, 5vw, 52px); margin-bottom: 12px; }
.page-heading > p:last-child { max-width: 760px; margin: 0; color: #5d574a; font: 19px/1.6 var(--serif); }
.directory-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.directory-section { padding: 25px; background: var(--paper-light); border: 1px solid var(--line); }
.directory-section h2 { font-size: 25px; }
.directory-section > p { color: var(--muted); font-size: 14px; }
.story-links { list-style: none; margin: 18px 0 0; padding: 0; }
.story-links li { padding: 12px 0; border-top: 1px solid #e5dbc9; }
.story-links a { display: block; font: 18px var(--serif); color: var(--brick-dark); text-decoration: none; }
.story-links a:hover { text-decoration: underline; }
.story-links span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.era-section { margin-top: 45px; padding: 30px; background: #e9dfcc; border: 1px solid var(--line); }
.era-section > p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.era-section .era-list { grid-template-columns: repeat(5, 1fr); }
.directory-back { margin-top: 35px; font-size: 13px; }
.callout { margin: 0 0 25px; padding: 23px 26px; background: #e9dfcc; border-left: 4px solid var(--gold); }
.callout strong { color: var(--navy); font: 22px var(--serif); }
.callout p { margin-bottom: 0; color: #5d574a; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 270px; gap: 55px; align-items: start; padding-block: 35px 75px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; color: var(--muted); font-size: 11px; }
.breadcrumbs a { text-decoration: none; }
.article-heading h1 { font-size: clamp(38px, 5vw, 52px); }
.article-deck { color: #5d574a; font: 20px/1.55 var(--serif); }
.article-meta { color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.article-hero { margin: 28px 0; padding: 9px; background: var(--paper-light); border: 1px solid var(--line); }
.article-hero img { display: block; width: 100%; max-height: 450px; object-fit: cover; }
.article-hero figcaption { padding: 8px 5px 2px; color: var(--muted); font-size: 11px; }
.article-hero.image-placeholder { min-height: 220px; display: grid; place-items: center; color: var(--muted); background: #e6dac3; }
.article-hero.image-placeholder:before { content: "ADD STORY IMAGE"; font-size: 11px; letter-spacing: .15em; }
.article-body { font: 17px/1.8 var(--serif); }
.article-body h2 { margin-top: 35px; font-size: 28px; }
.article-body p { margin: 0 0 20px; }
.article-body blockquote { margin: 28px 0; padding: 12px 22px; border-left: 3px solid var(--gold); color: #5e5545; font: italic 20px/1.55 var(--serif); }
.story-link { color: var(--brick-dark); text-decoration: underline; text-decoration-color: #bd8b71; text-underline-offset: 3px; }
.story-link:hover { color: #6f2f22; text-decoration-thickness: 2px; }
.story-preview { position: absolute; z-index: 100; width: min(300px, calc(100vw - 28px)); padding: 14px 16px; background: var(--paper-light); border: 1px solid var(--gold); box-shadow: 0 10px 28px rgba(25,35,35,.2); pointer-events: none; opacity: 0; transform: translateY(5px); transition: opacity .14s ease, transform .14s ease; }
.story-preview.visible { opacity: 1; transform: translateY(0); }
.story-preview strong { display: block; margin-bottom: 5px; color: var(--navy); font: 19px/1.2 var(--serif); }
.story-preview span { display: block; color: #5e594e; font: 12px/1.5 var(--sans); }
.related-stories { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-card { display: flex; flex-direction: column; min-height: 155px; padding: 16px; background: var(--paper-light); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.related-card:hover { border-color: var(--gold); color: var(--ink); }
.related-type { margin-bottom: 10px; color: var(--brick); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.related-card strong { color: var(--navy); font: 18px/1.25 var(--serif); }
.related-card > span:last-child { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.article-aside { position: sticky; top: 20px; padding-top: 65px; }
.aside-box { margin-bottom: 15px; padding: 20px; background: var(--paper-light); border: 1px solid var(--line); }
.aside-box h2 { font-size: 22px; }
.aside-box p { color: var(--muted); font-size: 12px; }
.aside-box > a { display: block; padding: 8px 0; border-top: 1px solid #e5dbc9; font-size: 12px; text-decoration: none; }
.aside-note { background: #e9dfcc; }
.aside-note strong { color: var(--navy); font: 18px var(--serif); }
.prose { max-width: 760px; font: 18px/1.8 var(--serif); }
.site-footer { padding-block: 35px; background: var(--navy-dark); color: #eee5d3; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand { color: #f3e6c9; font: 23px var(--serif); text-decoration: none; }
.footer-grid p { max-width: 260px; color: #c7c0b2; font: 13px/1.55 var(--serif); }
.footer-grid strong { display: block; margin-bottom: 10px; color: #d8bc83; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.footer-grid a:not(.footer-brand) { display: block; padding: 3px 0; color: #eee5d3; font-size: 12px; text-decoration: none; }
.footer-grid a:hover { color: #e2c78f; }
.copyright { color: #c7c0b2; font-size: 11px; line-height: 1.8; }

@media (max-width: 850px) {
  .hero { gap: 28px; }
  .nav-link { padding-inline: 11px; font-size: 12px; }
  .era-list, .era-section .era-list { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr) 220px; gap: 25px; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .masthead { min-height: 86px; }
  .brand-mark { width: 46px; height: 46px; font-size: 18px; }
  .brand strong { font-size: 21px; }
  .brand small { max-width: 230px; font-size: 8px; }
  .menu-toggle { display: block; }
  .nav-inner { display: none; flex-direction: column; gap: 0; padding-block: 5px; }
  .primary-nav.is-open .nav-inner { display: flex; }
  .nav-group { display: block; }
  .nav-link { width: 100%; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-menu { position: static; box-shadow: none; border: 0; padding: 2px 10px 8px 18px; background: #203541; }
  .nav-menu a { color: #f4ecdc; }
  .nav-group:hover .nav-menu { display: none; }
  .nav-group:focus-within .nav-menu { display: block; }
  .hero { grid-template-columns: 1fr; padding-block: 42px; }
  .hero-art { min-height: 220px; }
  .intro-grid { grid-template-columns: 1fr; gap: 8px; }
  .feature-grid, .story-grid, .directory-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 215px; }
  .video-layout { grid-template-columns: 1fr; gap: 25px; }
  .video-placeholder { min-height: 210px; }
  .section { padding-block: 45px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .era-list, .era-section .era-list { grid-template-columns: repeat(2, 1fr); }
  .page-main { padding-block: 35px 55px; }
  .directory-section { padding: 20px; }
  .article-layout { grid-template-columns: 1fr; gap: 15px; }
  .article-aside { position: static; padding-top: 5px; }
  .article-heading h1 { font-size: 38px; }
  .article-body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================
   AMERICANA JOURNEYS — NATURAL IMAGE DISPLAY
   Image files retain their own proportions and natural size.
   They may shrink to fit the article column, but are not forced
   to a category width or enlarged to meet a target dimension.
   ========================================================== */

/* Category classes are descriptive only; they do not impose a
   fixed display width. This also overrides the older hero rule
   that stretched images and cropped them at 450px high. */
img.image-horizontal,
img.image-painting,
img.image-vertical,
img.image-small,
img.image-logo,
figure.image-horizontal img,
figure.image-painting img,
figure.image-vertical img,
figure.image-small img,
figure.image-logo img,
figure.article-hero img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

/* Remove the decorative panel from categorized article images.
   Keep images naturally aligned rather than centering a small
   image inside an oversized beige box. */
figure.article-hero.image-painting,
figure.article-hero.image-small,
figure.article-hero.image-horizontal,
figure.article-hero.image-vertical,
figure.article-hero.image-logo {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    text-align: left;
}

figure.article-hero.image-painting figcaption,
figure.article-hero.image-small figcaption,
figure.article-hero.image-horizontal figcaption,
figure.article-hero.image-vertical figcaption,
figure.article-hero.image-logo figcaption {
    padding: 8px 0 2px;
}

/* Text-wrapped images: apply float-left or float-right to IMG or FIGURE.
   Intended primarily for images inside .article-body. */
.article-body img.float-left,
.article-body figure.float-left {
    float: left;
    width: 280px;
    max-width: 42%;
    height: auto;
    margin: 5px 22px 15px 0;
}

.article-body img.float-right,
.article-body figure.float-right {
    float: right;
    width: 280px;
    max-width: 42%;
    height: auto;
    margin: 5px 0 15px 22px;
}

.article-body figure.float-left img,
.article-body figure.float-right img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    margin: 0;
}

.article-body:after {
    content: "";
    display: table;
    clear: both;
}

.article-body .clear-floats {
    clear: both;
}

/* On phones, stop text wrapping beside narrow images. */
@media screen and (max-width: 640px) {
    .article-body img.float-left,
    .article-body img.float-right,
    .article-body figure.float-left,
    .article-body figure.float-right {
        float: none;
        display: block;
        width: 400px;
        max-width: 100%;
        height: auto;
        margin: 20px auto;
    }
}


/* Responsive 16:9 video. This is included here so the page does
   not depend on video-embed.css loading separately. */
.video-embed {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 0;
    padding: 0 0 56.25%;
    margin: 28px 0 8px;
    overflow: hidden;
    background: #1d2529;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

.video-caption {
    margin: 0 0 24px;
    color: #716a5e;
    font: 12px/1.5 Arial, sans-serif;
    text-align: center;
}
