:root {
  --bg: #f5f1ef;
  --surface: #ffffff;
  --ink: #111111;
  --text: #1d1a1a;
  --muted-text: #625a5a;
  --border: #d8cdca;
  --primary: #7a0019;
  --primary-dark: #4a000f;
  --accent: #111111;
  --soft-accent: #f1e3e5;
  --shadow: 0 18px 45px rgba(17, 17, 17, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: 4px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.logo-badge {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  background: #fff;
  border: 3px solid var(--primary);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.logo-badge img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.eyebrow,
.section-label {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.brand-title {
  display: block;
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 8px 10px;
  text-decoration: none;
  border-radius: 4px;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--primary);
  color: #fff;
}

.intro {
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.94), rgba(122, 0, 25, 0.9)),
    url("data:image/svg+xml,%3Csvg width='1200' height='720' viewBox='0 0 1200 720' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='720' fill='%23111111'/%3E%3Cg opacity='0.22' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M-80 620 C180 460 320 480 520 300 S900 100 1280 260'/%3E%3Cpath d='M-40 690 C260 510 400 540 620 360 S940 200 1240 300'/%3E%3Cpath d='M0 110 H1200 M0 210 H1200 M0 310 H1200 M0 410 H1200 M0 510 H1200'/%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: center;
  min-height: 520px;
  padding: 58px 0;
}

.intro-copy p:not(.section-label) {
  max-width: 760px;
  font-size: 1.1rem;
}

.intro .section-label {
  color: #f3dfb2;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: #fff;
  color: var(--primary-dark);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.status-panel,
.hours-card,
.contact-card,
.service-card,
.announcement {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.status-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 0 0 4px var(--soft-accent);
}

dl {
  margin: 0;
}

.status-panel dl,
.hours-card dl {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

dt {
  color: var(--muted-text);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
}

.section {
  padding: 64px 0;
}

.section.muted {
  background: #eee6e4;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.announcement-list {
  display: grid;
  gap: 14px;
}

.announcement {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  padding: 20px;
}

.announcement-date {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 74px;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
}

.announcement-date span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.announcement-date strong {
  font-size: 1.35rem;
  line-height: 1.1;
}

.announcement p,
.service-card p,
.contact-section p,
.large-text,
.section-heading p:not(.section-label),
.surplus-card p {
  margin: 0;
  color: var(--muted-text);
}

.surplus-section {
  background: var(--ink);
  color: #fff;
}

.surplus-section .section-label {
  color: #f0c9cf;
}

.surplus-section .section-heading p:not(.section-label) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.surplus-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.category-list span {
  color: #fff;
  padding: 7px 12px;
  background: rgba(122, 0, 25, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.surplus-card {
  overflow: hidden;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
}

.surplus-media {
  position: relative;
  display: grid;
  min-height: 168px;
  aspect-ratio: 4 / 3;
  place-items: center;
  color: rgba(255, 255, 255, 0.8);
  background:
    linear-gradient(135deg, rgba(122, 0, 25, 0.88), rgba(17, 17, 17, 0.9)),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.1) 12px 14px);
  font-weight: 700;
}

.surplus-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.surplus-media.has-photo img {
  opacity: 1;
}

.surplus-media img + span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  background: rgba(17, 17, 17, 0.72);
  border-radius: 4px;
}

.surplus-media.has-photo span {
  display: none;
}

.surplus-body {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.tag {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.item-details {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.terms-card {
  display: grid;
  align-content: center;
  background: var(--primary);
  color: #fff;
}

.terms-card .tag,
.terms-card p,
.terms-card dt,
.terms-card dd,
.terms-card .text-link {
  color: #fff;
}

.text-link {
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.service-card {
  padding: 20px;
}

.split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.hours-card,
.contact-card {
  padding: 24px;
}

.contact-section {
  background: var(--ink);
  color: #fff;
}

.contact-section .section-label {
  color: #f3dfb2;
}

.contact-section p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-card {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.site-footer {
  background: var(--ink);
  color: #fff;
  border-top: 4px solid var(--primary);
}

.site-footer a {
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 860px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    align-items: start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .intro-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    min-height: auto;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .section {
    padding: 46px 0;
  }

  .logo-badge {
    width: 58px;
    height: 58px;
  }

  .logo-badge img {
    width: 48px;
    height: 48px;
  }

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

  .announcement-date {
    align-content: center;
    justify-items: start;
    min-height: auto;
    padding: 12px 14px;
  }

  .service-grid,
  .surplus-grid {
    grid-template-columns: 1fr;
  }
}
