/*
Theme Name: Path of History
Description: An editorial theme for stories of landmark hotels and exhibitions.
Version: 1.0.4
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: path-of-history
*/

:root {
  --paper: #f6f1e7;
  --pale: #ede4d4;
  --ink: #18241f;
  --muted: #555b4f;
  --green: #244238;
  --gold: #d8ac69;
  --rule: #cfc5b3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: #597060; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #957242; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
main { min-height: 65vh; }
h1, h2, h3, p { margin: 0; }
.shell { width: min(1192px, calc(100% - 96px)); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .75rem; background: white; }
.masthead { border-bottom: 1px solid var(--rule); }
.masthead__inner { min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 12px; font: 700 25px/1.1 var(--serif); text-decoration: none; white-space: nowrap; }
.brand svg { flex: 0 0 auto; }
.primary-nav ul { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; margin: 0; gap: 12px 27px; list-style: none; }
.primary-nav a, .footer-link { font-size: 12px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; text-decoration: none; }
.masthead__search { display: flex; justify-self: end; border-bottom: 1px solid var(--rule); max-width: 145px; }
.masthead__search input { min-width: 0; width: 100%; border: 0; padding: 7px 3px; color: var(--ink); background: transparent; font: 14px var(--sans); }
.masthead__search button { display: grid; place-items: center; background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: 4px 3px 4px 8px; }
.intro { text-align: center; padding: clamp(42px, 6vw, 79px) 0 clamp(32px, 5vw, 58px); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .19em; line-height: 1.4; text-transform: uppercase; }
.intro .eyebrow span { display: inline-block; width: 19px; height: 1px; margin: 0 8px 3px 0; background: #9c794d; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
.intro h1 { margin: 13px 0 19px; font-size: clamp(48px, 7.5vw, 105px); line-height: .96; letter-spacing: -.065em; }
.intro em { font-weight: 400; color: var(--green); }
.intro > p:last-child { color: var(--muted); font-size: clamp(14px, 1.8vw, 17px); max-width: 39rem; margin-inline: auto; }
.lead { background: var(--green); color: var(--paper); }
.home-game-rooms { max-width: 62ch; margin: clamp(24px, 4vw, 44px) auto 0; color: var(--muted); }
.home-game-rooms a { color: var(--green); text-underline-offset: .16em; }
.story-card--feature { display: grid; grid-template-columns: 1.63fr 1fr; }
.story-card__image { display: block; overflow: hidden; background: var(--pale); }
.story-card__image img, .image-space { width: 100%; height: 100%; aspect-ratio: 1.6; object-fit: cover; transition: transform .3s; }
.story-card__image:hover img { transform: scale(1.025); }
.story-card--feature .story-card__image img, .story-card--feature .image-space { aspect-ratio: 1.64; }
.image-space { display: grid; place-items: center; color: #7a806a; background: radial-gradient(ellipse at top left, #eee8da, #d7ccb7); }
.image-space svg { width: 68px; height: 68px; opacity: .56; }
.story-card__body { padding: 17px 0 21px; }
.story-card--feature .story-card__body { padding: clamp(27px, 4vw, 56px); align-self: center; }
.story-card--feature .eyebrow { color: var(--gold); }
.story-card :is(h2, h3) { margin: 7px 0 11px; font-size: clamp(22px, 3vw, 32px); line-height: 1.09; letter-spacing: -.025em; }
.story-card :is(h2, h3) a { text-decoration: none; }
.story-card :is(h2, h3) a:hover { text-decoration: underline; }
.story-card--feature h2 { font-size: clamp(29px, 4.1vw, 58px); line-height: 1.02; margin: 12px 0 14px; }
.story-card--feature h2 a:hover { color: #f0d39f; }
.story-card__excerpt { color: #f2e8d8; font-size: 14px; margin: 0 0 17px; }
.story-card time, .article__byline { font-size: 12px; letter-spacing: .045em; color: var(--muted); }
.story-card--feature time { color: #e9d7bb; }
.story-section { margin-block: clamp(44px, 7vw, 83px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--rule); padding: 17px 0 19px; }
.section-head h2 { font-size: clamp(31px, 4.2vw, 48px); line-height: 1.02; letter-spacing: -.05em; }
.text-link { font-size: 13px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link span { margin-inline-start: .3em; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.story-grid .story-card { border-bottom: 1px solid var(--rule); }
.article__title { width: min(100%, 850px); margin: 0 auto; padding: clamp(35px, 6vw, 76px) 0 29px; text-align: center; }
.article__back { display: inline-block; margin-bottom: 20px; }
.article h1, .listing h1, .simple-heading h1 { font-size: clamp(43px, 7.2vw, 88px); letter-spacing: -.055em; line-height: .99; margin: 13px 0 20px; overflow-wrap: anywhere; }
.article__byline span { margin: 0 .35em; }
.article__hero { width: min(100%, 930px); margin: 0 auto 28px; }
.article__hero img { margin: auto; max-height: 68vh; object-fit: contain; }
.article__content { width: min(100%, 700px); margin: 0 auto clamp(50px, 9vw, 110px); font: clamp(17px, 2.2vw, 20px)/1.72 var(--serif); overflow-wrap: anywhere; }
.article__content > * { margin: 0 0 1.15em; }
.article__content h2, .article__content h3 { margin-top: 1.45em; line-height: 1.15; }
.article__content figure { margin-inline: auto; max-width: 100%; }
.article__content iframe, .article__content video { max-width: 100%; }
.article__content table { display: block; overflow-x: auto; }
figcaption, .wp-caption-text, .poh-provenance { color: var(--muted); font: 13px/1.55 var(--sans); margin-top: 7px; }
.article__content .poh-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.poh-gallery figure { margin: 0; }
.poh-gallery img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.poh-related, .poh-provenance { border-top: 1px solid var(--rule); padding-top: 14px; margin-top: 32px; }
.poh-related h2 { margin-top: 0; font-size: 32px; }
.poh-related ul { padding-inline-start: 1em; }
.category-nav, .nav-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 24px; }
.category-nav a, .page-numbers { font-size: 13px; padding: 5px 9px; border: 1px solid var(--rule); text-decoration: none; }
.category-nav [aria-current], .page-numbers.current { color: var(--paper); background: var(--green); border-color: var(--green); }
.pagination { margin-top: 28px; }
.simple-heading { padding-block: 60px; }
.simple-heading p { margin-bottom: 16px; }
.site-footer { color: var(--paper); background: var(--ink); }
.site-footer a:hover { color: var(--gold); }
.site-footer__inner { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 15px; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
  .masthead__inner { gap: 14px; }
  .primary-nav ul { gap: 7px 13px; }
  .primary-nav a { font-size: 11px; }
  .masthead__search { max-width: 95px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 34px); }
  .masthead__inner { grid-template-columns: 1fr auto; padding: 12px 0 8px; gap: 8px 13px; }
  .masthead .brand { font-size: 22px; }
  .masthead .brand svg { width: 34px; height: 34px; }
  .masthead__search { grid-row: 1; grid-column: 2; }
  .primary-nav { grid-column: 1 / -1; padding: 6px 0 4px; }
  .primary-nav ul { justify-content: flex-start; column-gap: 18px; }
  .story-card--feature { display: block; }
  .story-card--feature .story-card__body { padding: 23px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .story-card h3 { font-size: clamp(18px, 4.9vw, 24px); }
  .story-card--feature h2 { font-size: 33px; }
  .story-card__body { padding: 12px 0 15px; }
  .site-footer .brand { font-size: 19px; }
  .site-footer .brand svg { width: 28px; height: 28px; }
  .site-footer__inner { flex-wrap: wrap; padding-block: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-card__image img { transition: none; }
}
