:root {
  --paper: #fffaf0;
  --ivory: #fff3d6;
  --ink: #182033;
  --muted: #665c54;
  --red: #d6423a;
  --teal: #087c7a;
  --gold: #d6a637;
  --plum: #4b244a;
  --night: #111521;
  --line: rgba(214, 166, 55, 0.42);
  --shadow: 0 18px 45px rgba(17, 21, 33, 0.16);
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(24, 32, 51, 0.04) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(180deg, rgba(255, 243, 214, 0.95), rgba(255, 250, 240, 0.98) 42%, rgba(8, 124, 122, 0.08)),
    var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.skip-link {
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 20;
}

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

.sample-header {
  align-items: center;
  background: rgba(255, 250, 240, 0.96);
  border-bottom: 4px double rgba(24, 32, 51, 0.44);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 72px;
  padding: 0.8rem 5vw;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sample-brand {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  text-decoration: none;
}

.sample-brand-mark {
  align-items: center;
  background: var(--ink);
  border: 3px solid var(--gold);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  color: var(--ivory);
  display: inline-flex;
  font-family: "Limelight", Georgia, serif;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.sample-brand strong {
  display: block;
  font-family: "Limelight", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
}

.sample-brand small {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  margin-top: 0.18rem;
  text-transform: uppercase;
}

.sample-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sample-nav a {
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.18rem;
  text-underline-offset: 0.28rem;
}

.sample-nav a:hover {
  color: var(--red);
}

.sample-hero {
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(255, 243, 214, 0.09) 1px, transparent 1px) 0 0 / 34px 100%,
    radial-gradient(ellipse at 82% 72%, rgba(8, 124, 122, 0.28), transparent 34%),
    var(--night);
  color: var(--ivory);
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin: 0;
  min-height: 390px;
  overflow: hidden;
  padding: 4.5rem 5vw 3.5rem;
  position: relative;
}

.sample-hero::before,
.sample-hero::after {
  border: 2px solid rgba(214, 166, 55, 0.55);
  content: "";
  pointer-events: none;
  position: absolute;
}

.sample-hero::before {
  inset: 1.25rem;
}

.sample-hero::after {
  border-bottom: 0;
  height: 5.6rem;
  left: 50%;
  top: 1.25rem;
  transform: translateX(-50%);
  width: 11rem;
}

.sample-hero-copy {
  align-self: center;
  max-width: 780px;
  position: relative;
  z-index: 1;
}

.sample-eyebrow {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.sample-hero h1,
.dispatch-head h2 {
  font-family: "Limelight", Georgia, serif;
  font-weight: 400;
  line-height: 1.03;
  margin: 0;
}

.sample-hero h1 {
  font-size: 4.25rem;
  max-width: 820px;
}

.sample-hero p:not(.sample-eyebrow) {
  color: rgba(255, 243, 214, 0.88);
  font-size: 1.08rem;
  margin: 1rem 0 0;
  max-width: 650px;
}

.sample-meter {
  align-self: center;
  background:
    linear-gradient(180deg, rgba(214, 166, 55, 0.24), rgba(75, 36, 74, 0.4)),
    rgba(255, 243, 214, 0.08);
  border: 2px solid rgba(214, 166, 55, 0.62);
  box-shadow: var(--shadow);
  color: var(--ivory);
  display: grid;
  min-height: 220px;
  padding: 1.5rem;
  place-items: center;
  position: relative;
  text-align: center;
  z-index: 1;
}

.sample-meter strong {
  color: var(--gold);
  font-family: "Limelight", Georgia, serif;
  font-size: 5rem;
  font-weight: 400;
  line-height: 0.85;
}

.sample-meter span {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sample-meter small {
  color: rgba(255, 243, 214, 0.8);
  font-size: 0.78rem;
}

.sample-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 auto;
  max-width: var(--max);
  padding: 1.35rem 5vw 0;
}

.filter-button {
  background: var(--paper);
  border: 2px solid rgba(24, 32, 51, 0.22);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0.58rem 0.85rem;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ivory);
}

.dispatch-shell {
  margin: 0 auto;
  max-width: var(--max);
  padding: 2.25rem 5vw 4rem;
}

.dispatch-head {
  align-items: end;
  border-bottom: 4px double rgba(24, 32, 51, 0.34);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.dispatch-head h2 {
  font-size: 2.2rem;
}

.dispatch-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dispatch-card {
  background: rgba(255, 250, 240, 0.92);
  border: 1px solid rgba(24, 32, 51, 0.18);
  box-shadow: 0 12px 30px rgba(17, 21, 33, 0.11);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.dispatch-card:hover,
.dispatch-card:focus-visible {
  border-color: rgba(214, 66, 58, 0.5);
  box-shadow: 0 18px 42px rgba(17, 21, 33, 0.17);
  outline: none;
  transform: translateY(-2px);
}

.dispatch-card.is-featured {
  grid-column: span 2;
}

.dispatch-image {
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(90deg, rgba(214, 166, 55, 0.16) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(180deg, var(--plum), var(--night));
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.dispatch-card.is-featured .dispatch-image {
  aspect-ratio: 3 / 2;
}

.dispatch-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.dispatch-placeholder {
  align-items: center;
  color: var(--ivory);
  display: flex;
  font-family: "Limelight", Georgia, serif;
  font-size: 3rem;
  height: 100%;
  justify-content: center;
}

.dispatch-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
}

.dispatch-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dispatch-type,
.dispatch-date,
.dispatch-chip {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.dispatch-type {
  background: var(--red);
  color: var(--ivory);
  padding: 0.45rem 0.55rem;
}

.dispatch-date {
  color: var(--muted);
}

.dispatch-card h3 {
  font-size: 1.08rem;
  line-height: 1.18;
  margin: 0;
}

.dispatch-card.is-featured h3 {
  font-size: 1.55rem;
}

.dispatch-card p {
  color: var(--muted);
  margin: 0;
}

.dispatch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.dispatch-chip {
  border: 1px solid rgba(8, 124, 122, 0.28);
  color: var(--teal);
  padding: 0.38rem 0.45rem;
}

.dispatch-link {
  align-self: start;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 0.2rem;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.16rem;
  text-transform: uppercase;
  text-underline-offset: 0.26rem;
}

.dispatch-link:hover {
  color: var(--red);
}

.post-modal[hidden] {
  display: none;
}

.post-modal {
  inset: 0;
  isolation: isolate;
  position: fixed;
  z-index: 40;
}

.modal-backdrop {
  background: rgba(17, 21, 33, 0.72);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
  width: 100%;
}

.post-dialog {
  background:
    linear-gradient(90deg, rgba(24, 32, 51, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
  border: 4px double rgba(24, 32, 51, 0.42);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  inset: 4vh max(1rem, 4vw);
  overflow: auto;
  padding: 1.25rem;
  position: absolute;
  z-index: 1;
}

.post-dialog:focus {
  outline: 3px solid var(--gold);
  outline-offset: -8px;
}

.modal-close {
  background: var(--ink);
  border: 0;
  color: var(--ivory);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0.7rem 0.9rem;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  z-index: 3;
}

.modal-close:hover {
  background: var(--red);
}

.post-dialog-head {
  margin: 1rem auto 1.25rem;
  max-width: 980px;
}

.post-dialog-head h2 {
  font-family: "Limelight", Georgia, serif;
  font-size: clamp(2rem, 6vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.03;
  margin: 0.75rem 0 0.8rem;
}

.post-gallery,
.post-full-text,
.post-dialog-foot,
.post-gallery-empty {
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

.post-gallery {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-gallery figure {
  background:
    linear-gradient(90deg, rgba(214, 166, 55, 0.16) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(180deg, var(--plum), var(--night));
  border: 1px solid rgba(24, 32, 51, 0.18);
  margin: 0;
  min-width: 0;
  padding: 0;
}

.post-gallery figure.is-large {
  grid-column: 1 / -1;
}

.post-gallery img {
  height: auto;
  width: 100%;
}

.post-gallery-empty {
  aspect-ratio: 3 / 2;
  background:
    linear-gradient(90deg, rgba(214, 166, 55, 0.16) 1px, transparent 1px) 0 0 / 28px 100%,
    linear-gradient(180deg, var(--plum), var(--night));
  margin-bottom: 1rem;
}

.post-full-text {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  padding: 1.25rem 0 0.75rem;
}

.post-full-text p {
  margin: 0 0 1rem;
}

.post-dialog-foot {
  border-top: 4px double rgba(24, 32, 51, 0.28);
  padding: 1rem 0 1.5rem;
}

@media (max-width: 920px) {
  .sample-hero {
    grid-template-columns: 1fr;
  }

  .sample-hero h1 {
    font-size: 3.15rem;
  }

  .sample-meter {
    min-height: 160px;
  }

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

  .post-dialog {
    inset: 2vh 0.75rem;
  }
}

@media (max-width: 640px) {
  .sample-header,
  .dispatch-head {
    align-items: start;
    flex-direction: column;
  }

  .sample-nav {
    flex-wrap: wrap;
  }

  .sample-hero {
    min-height: 0;
    padding: 3.5rem 5vw 2.5rem;
  }

  .sample-hero h1 {
    font-size: 2.35rem;
  }

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

  .dispatch-card.is-featured {
    grid-column: auto;
  }

  .dispatch-card.is-featured h3 {
    font-size: 1.2rem;
  }

  .post-gallery {
    grid-template-columns: 1fr;
  }
}
