/*
Theme Name: America On The Move
Theme URI: https://americaonthemove.org/
Author: Tier1 Domain Themes
Description: Photo documentary guide theme for americaonthemove.org with broad category archives.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: americaonthemove-org
*/

:root {
  --aom-paper: #f7f0e2;
  --aom-warm: #efe8db;
  --aom-ink: #182230;
  --aom-red: #d9503f;
  --aom-blue: #1d65aa;
  --aom-muted: #65717d;
  --aom-line: rgba(24, 34, 48, 0.16);
  --aom-white: #fffaf0;
}

* {
  box-sizing: border-box;
}

body.aom-theme-body {
  margin: 0;
  background: var(--aom-paper);
  color: var(--aom-ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.aom-theme-body a {
  color: inherit;
  text-decoration: none;
}

.aom-cover {
  min-height: 78vh;
  display: grid;
  align-items: end;
  padding: clamp(28px, 6vw, 90px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(10, 15, 24, 0.1), rgba(10, 15, 24, 0.82)),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1900&q=84");
  background-size: cover;
  background-position: center;
}

.aom-cover-inner {
  max-width: 1080px;
}

.aom-kicker,
.aom-rail,
.aom-page-kicker {
  color: #ffd05a;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.aom-cover h1,
.aom-page-header h1,
.aom-single h1,
.aom-empty h1 {
  margin: 14px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 9vw, 132px);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.aom-cover p {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
}

.aom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.aom-actions a,
.aom-read-more {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 12px 16px;
  background: #ffd05a;
  color: var(--aom-ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.aom-actions a:nth-child(2),
.aom-read-more.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.aom-story {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-top: 1px solid var(--aom-line);
}

.aom-rail {
  padding: 26px;
  border-right: 1px solid var(--aom-line);
  color: var(--aom-red);
  font-size: 11px;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: right;
}

.aom-chapters {
  display: grid;
}

.aom-chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  min-height: 300px;
  border-bottom: 1px solid var(--aom-line);
}

.aom-chapter:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  background: var(--aom-warm);
}

.aom-photo {
  min-height: 300px;
  background-size: cover;
  background-position: center;
}

.aom-photo.one {
  background-image: url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=1000&q=82");
}

.aom-photo.two {
  background-image: url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1000&q=82");
}

.aom-photo.three {
  background-image: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1000&q=82");
}

.aom-text {
  align-self: center;
  padding: clamp(22px, 4vw, 52px);
}

.aom-text code,
.aom-post-list time {
  color: var(--aom-blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.aom-text h2,
.aom-post-list h2,
.aom-page-body h2,
.aom-single-body h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.95;
}

.aom-text h2 {
  font-size: clamp(32px, 4vw, 62px);
}

.aom-text p,
.aom-empty p {
  color: var(--aom-muted);
  font-size: 15px;
  line-height: 1.65;
}

.aom-post-links {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.aom-post-links a {
  color: var(--aom-blue);
  font-size: 12px;
  font-weight: 900;
}

.aom-subnav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--aom-line);
  background: var(--aom-paper);
}

.aom-subnav a {
  display: grid;
  align-content: center;
  min-height: 76px;
  padding: 12px;
  border-right: 1px solid var(--aom-line);
  font-size: clamp(13px, 1.2vw, 17px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.aom-subnav a:last-child {
  border-right: 0;
}

.aom-subnav span {
  display: block;
  margin-bottom: 6px;
  color: var(--aom-red);
  font-size: 10px;
  text-transform: uppercase;
}

.aom-page-header,
.aom-single,
.aom-empty {
  padding: clamp(28px, 6vw, 90px);
  background: var(--aom-paper);
}

.aom-page-kicker {
  color: var(--aom-red);
}

.aom-page-header h1,
.aom-single h1,
.aom-empty h1 {
  color: var(--aom-ink);
  text-shadow: none;
}

.aom-page-header p,
.aom-single-meta,
.aom-archive-description {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--aom-muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.62;
}

.aom-post-list {
  display: grid;
  background: var(--aom-paper);
}

.aom-post-list article {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  padding: clamp(22px, 4vw, 44px) clamp(28px, 6vw, 90px);
  border-top: 1px solid var(--aom-line);
}

.aom-post-list h2 {
  font-size: clamp(28px, 4vw, 56px);
}

.aom-post-list p {
  margin: 12px 0 0;
  color: var(--aom-muted);
  font-size: 15px;
  line-height: 1.62;
}

.aom-page-body,
.aom-single-body {
  max-width: 900px;
  margin-top: 30px;
  color: var(--aom-ink);
  font-size: 18px;
  line-height: 1.78;
}

.aom-page-body h2,
.aom-single-body h2 {
  margin-top: 34px;
  font-size: 34px;
}

.aom-page-body p,
.aom-single-body p {
  margin: 16px 0 0;
}

.aom-pagination {
  padding: 0 clamp(28px, 6vw, 90px) clamp(28px, 6vw, 90px);
  color: var(--aom-blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.aom-footer {
  padding: 20px 28px;
  color: var(--aom-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  border-top: 1px solid var(--aom-line);
  background: var(--aom-paper);
}

.aom-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.aom-logo img {
  display: block;
  width: 46px;
  height: 46px;
}

@media (max-width: 980px) {
  .aom-story,
  .aom-chapter,
  .aom-chapter:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .aom-rail {
    writing-mode: horizontal-tb;
    transform: none;
    border-right: 0;
    border-bottom: 1px solid var(--aom-line);
    text-align: left;
  }

  .aom-subnav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .aom-subnav,
  .aom-post-list article {
    grid-template-columns: 1fr;
  }

  .aom-subnav a {
    border-right: 0;
    border-bottom: 1px solid var(--aom-line);
  }
}
