:root {
  --pw-ink: #17201d;
  --pw-paper: #ffffff;
  --pw-soft: #f1f5f2;
  --pw-mint: #b8e3d1;
  --pw-coral: #f26b4f;
  --pw-yellow: #f0c84b;
  --pw-line: #ced8d2;
  --pw-muted: #58645f;
  --pw-shell: 1180px;
  --pw-article: 760px;
  --pw-radius: 5px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pw-paper);
  color: var(--pw-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--pw-paper);
  color: var(--pw-ink);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--pw-shell));
  margin-inline: auto;
}

.shell--article {
  width: min(calc(100% - 40px), var(--pw-article));
}

.section {
  padding-block: 88px;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--pw-mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow--dark {
  color: #287c64;
}

.edition-bar {
  background: var(--pw-ink);
  color: #d9e7e1;
  font-size: 0.76rem;
  font-weight: 700;
}

.edition-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.edition-bar__edition {
  color: var(--pw-yellow);
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--pw-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-brand {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.site-brand__name,
.site-footer__brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-brand__tagline {
  margin-top: 7px;
  color: var(--pw-muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.site-nav,
.site-nav__list {
  display: flex;
  align-items: center;
}

.site-nav {
  gap: 28px;
}

.site-nav__list {
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.86rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #287c64;
}

.site-nav__search {
  padding: 9px 14px;
  border: 1px solid var(--pw-ink);
  border-radius: 3px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--pw-ink);
  border-radius: 3px;
  background: transparent;
  color: var(--pw-ink);
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  content: "";
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before {
  position: absolute;
  top: -6px;
}

.nav-toggle__icon::after {
  position: absolute;
  top: 6px;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: min(670px, calc(100vh - 118px));
  align-items: end;
  overflow: hidden;
  background: #26312d;
  color: white;
}

.home-hero__media,
.home-hero__shade {
  position: absolute;
  inset: 0;
}

.home-hero__media {
  background-image: url("../images/plainlyworth-hero.jpg");
  background-position: center;
  background-size: cover;
}

.home-hero__shade {
  background: rgba(10, 19, 16, 0.62);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  padding-block: 90px 78px;
}

.home-hero h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
}

.home-hero__lede {
  max-width: 680px;
  margin-bottom: 34px;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--pw-ink);
  border-radius: var(--pw-radius);
  background: var(--pw-ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.button--light {
  border-color: white;
  background: white;
  color: var(--pw-ink);
}

.button:hover,
.button:focus-visible {
  background: var(--pw-coral);
  border-color: var(--pw-coral);
  color: var(--pw-ink);
}

.text-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #216b57;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link--light {
  color: white;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translateX(4px);
}

.text-link span {
  transition: transform 160ms ease;
}

.brand-desk {
  border-bottom: 1px solid var(--pw-line);
  background: var(--pw-soft);
}

.brand-desk__inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
  align-items: center;
  padding-block: 38px;
}

.brand-desk h2 {
  margin: 0;
  font-size: 1.35rem;
}

.brand-desk__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.brand-desk__list li {
  min-height: 66px;
  padding: 10px 22px;
  border-left: 1px solid var(--pw-line);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.brand-desk__list span {
  display: block;
  margin-top: 5px;
  color: var(--pw-muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 42px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading--compact {
  margin-bottom: 32px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 30px;
}

.story-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: start;
}

.story-card--featured {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 38px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--pw-line);
}

.story-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--pw-radius);
  background: var(--pw-soft);
  text-decoration: none;
}

.story-card--featured .story-card__media {
  aspect-ratio: 16 / 10;
}

.story-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.story-card__media:hover img,
.story-card__media:focus-visible img {
  transform: scale(1.025);
}

.story-card__fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: var(--pw-mint);
}

.story-card__fallback span {
  display: grid;
  width: 74px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--pw-ink);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.story-card__body {
  padding-top: 3px;
}

.story-card h3 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
}

.story-card--featured h3 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.story-card h3 a {
  text-decoration: none;
}

.story-card h3 a:hover,
.story-card h3 a:focus-visible {
  text-decoration: underline;
}

.story-card__excerpt {
  color: var(--pw-muted);
  font-size: 1.03rem;
}

.post-meta {
  margin-bottom: 12px;
  color: var(--pw-muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.coverage {
  border-top: 1px solid var(--pw-line);
  background: var(--pw-soft);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--pw-ink);
  border-bottom: 1px solid var(--pw-ink);
}

.coverage-grid article {
  min-height: 260px;
  padding: 28px 24px;
  border-right: 1px solid var(--pw-line);
}

.coverage-grid article:last-child {
  border-right: 0;
}

.coverage-grid span {
  color: #287c64;
  font-size: 0.75rem;
  font-weight: 800;
}

.coverage-grid h3 {
  margin: 56px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
}

.coverage-grid p {
  margin-bottom: 0;
  color: var(--pw-muted);
  font-size: 0.9rem;
}

.standards {
  padding-block: 92px;
  background: var(--pw-ink);
  color: white;
}

.standards__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 90px;
}

.standards h2 {
  max-width: 660px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.standards__copy {
  padding-top: 32px;
  color: #d8e2de;
}

.standards__copy ul {
  margin: 26px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid #53605b;
  list-style-position: inside;
}

.standards__copy li {
  margin-bottom: 9px;
}

.site-footer {
  padding-block: 62px 24px;
  border-top: 8px solid var(--pw-coral);
  background: #0d1412;
  color: #cbd6d1;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 70px;
}

.site-footer__brand {
  color: white;
}

.site-footer p {
  max-width: 430px;
  margin-top: 18px;
  font-size: 0.88rem;
}

.site-footer h2 {
  color: white;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin-bottom: 8px;
}

.site-footer__links a {
  font-size: 0.88rem;
}

.site-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid #33403b;
  color: #96a49e;
  font-size: 0.72rem;
}

.page-banner {
  padding-block: 78px;
  background: var(--pw-ink);
  color: white;
}

.page-banner h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.page-banner p,
.page-banner__description {
  max-width: 680px;
  color: #d4dfda;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 30px;
}

.archive-grid .story-card {
  grid-template-columns: 1fr;
}

.archive-grid .story-card__media {
  aspect-ratio: 16 / 10;
}

.navigation.pagination {
  margin-top: 56px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-numbers {
  display: grid;
  min-width: 40px;
  min-height: 40px;
  place-items: center;
  border: 1px solid var(--pw-line);
  border-radius: 3px;
  text-decoration: none;
}

.page-numbers.current {
  border-color: var(--pw-ink);
  background: var(--pw-ink);
  color: white;
}

.article-header {
  padding-block: 76px 48px;
}

.article-header h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.article-deck {
  color: var(--pw-muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.5;
}

.article-byline {
  margin-top: 24px;
  font-size: 0.82rem;
  font-weight: 750;
}

.article-hero {
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border-radius: var(--pw-radius);
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, var(--pw-article));
  gap: 70px;
  justify-content: center;
  padding-block: 70px;
}

.article-rail {
  align-self: start;
  padding-top: 16px;
  border-top: 3px solid var(--pw-coral);
  color: var(--pw-muted);
  font-size: 0.85rem;
}

.article-rail span {
  display: block;
  margin-bottom: 9px;
  color: var(--pw-ink);
  font-weight: 850;
  text-transform: uppercase;
}

.article-content {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.14rem;
  line-height: 1.85;
}

.article-content > * {
  max-width: 100%;
}

.article-content h2,
.article-content h3 {
  margin-top: 2.2em;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.article-content a {
  color: #216b57;
}

.article-content blockquote {
  margin: 2em 0;
  padding: 22px 28px;
  border-left: 5px solid var(--pw-coral);
  background: var(--pw-soft);
  font-size: 1.25rem;
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.92rem;
}

.article-content th,
.article-content td {
  padding: 12px;
  border: 1px solid var(--pw-line);
  text-align: left;
}

.article-footer {
  padding-bottom: 80px;
}

.article-tags {
  margin-bottom: 36px;
}

.article-tags a {
  margin-right: 8px;
  color: #216b57;
}

.post-navigation {
  padding-top: 28px;
  border-top: 1px solid var(--pw-line);
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.post-navigation .nav-next {
  text-align: right;
}

.standard-page .article-content {
  padding-block: 70px 90px;
}

.search-form {
  display: flex;
  max-width: 620px;
  gap: 8px;
  margin-top: 28px;
}

.search-field {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--pw-line);
  border-radius: 3px;
}

.search-submit {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--pw-coral);
  border-radius: 3px;
  background: var(--pw-coral);
  color: var(--pw-ink);
  font-weight: 800;
}

.empty-state,
.not-found {
  padding: 58px;
  border: 1px solid var(--pw-line);
  border-radius: var(--pw-radius);
  background: var(--pw-soft);
}

.not-found {
  min-height: 60vh;
  padding-block: 100px;
  border: 0;
  border-radius: 0;
}

.not-found h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.not-found .button {
  margin-top: 24px;
}

@media (max-width: 980px) {
  .brand-desk__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand-desk__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-desk__list li:nth-child(3) {
    border-top: 1px solid var(--pw-line);
  }

  .brand-desk__list li:nth-child(4) {
    border-top: 1px solid var(--pw-line);
  }

  .coverage-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coverage-grid article:nth-child(2) {
    border-right: 0;
  }

  .coverage-grid article:nth-child(-n+2) {
    border-bottom: 1px solid var(--pw-line);
  }

  .standards__grid {
    gap: 50px;
  }

  .article-layout {
    grid-template-columns: minmax(0, var(--pw-article));
  }

  .article-rail {
    display: none;
  }
}

@media (max-width: 820px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-brand__tagline {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 22px 20px 28px;
    border-bottom: 1px solid var(--pw-line);
    background: white;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .site-nav__list a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--pw-line);
  }

  .site-nav__search {
    display: inline-flex;
    margin-top: 18px;
  }

  .home-hero {
    min-height: 620px;
  }

  .story-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .story-card--featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .story-card:not(.story-card--featured) {
    grid-template-columns: 150px 1fr;
  }

  .standards__grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .standards__copy {
    padding-top: 0;
  }

  .site-footer__base {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .shell,
  .shell--article {
    width: min(calc(100% - 28px), var(--pw-shell));
  }

  .section {
    padding-block: 62px;
  }

  .edition-bar__inner > span:first-child {
    display: none;
  }

  .edition-bar__inner {
    justify-content: flex-end;
  }

  .site-header__inner {
    min-height: 70px;
  }

  .site-brand__name {
    font-size: 1.4rem;
  }

  .home-hero {
    min-height: 570px;
  }

  .home-hero__content {
    padding-block: 74px 54px;
  }

  .home-hero__actions,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-desk__list {
    grid-template-columns: 1fr;
  }

  .brand-desk__list li {
    border-top: 1px solid var(--pw-line);
    border-left: 0;
  }

  .story-card:not(.story-card--featured) {
    grid-template-columns: 112px 1fr;
    gap: 16px;
  }

  .story-card:not(.story-card--featured) .post-meta {
    display: none;
  }

  .story-card:not(.story-card--featured) h3 {
    font-size: 1.12rem;
  }

  .coverage-grid {
    grid-template-columns: 1fr;
  }

  .coverage-grid article,
  .coverage-grid article:nth-child(2) {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--pw-line);
  }

  .coverage-grid article:last-child {
    border-bottom: 0;
  }

  .coverage-grid h3 {
    margin-top: 38px;
  }

  .article-header {
    padding-block: 54px 36px;
  }

  .article-layout {
    padding-block: 50px;
  }

  .article-content {
    font-size: 1.05rem;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next {
    text-align: left;
  }

  .empty-state {
    padding: 34px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
