:root {
  color-scheme: light;
  --bg: #f6f0e7;
  --bg-accent: #ead8b8;
  --surface: rgba(255, 252, 247, 0.9);
  --surface-strong: #fff9f1;
  --surface-tint: rgba(114, 60, 17, 0.05);
  --text: #201b16;
  --muted: #655d53;
  --line: rgba(53, 41, 24, 0.14);
  --line-strong: rgba(53, 41, 24, 0.2);
  --primary: #a5471c;
  --primary-deep: #7f3213;
  --primary-soft: rgba(165, 71, 28, 0.12);
  --secondary: #1c5d71;
  --accent: #8a6a17;
  --shadow: 0 26px 70px rgba(52, 39, 19, 0.14);
  --shadow-card: 0 20px 40px rgba(52, 39, 19, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.62), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(138, 106, 23, 0.16), transparent 22%),
    linear-gradient(180deg, var(--bg) 0%, #f0e2cb 42%, #ead8bb 100%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero,
.panel,
.item-card,
.footer {
  backdrop-filter: blur(10px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 56px;
  margin-top: 24px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -140px -100px auto auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 93, 113, 0.2), rgba(28, 93, 113, 0));
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -140px -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(165, 71, 28, 0.22), rgba(165, 71, 28, 0));
}

.eyebrow,
.section-label,
.card-tag {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow,
.section-label {
  color: var(--secondary);
}

.hero h1,
.section-heading h2,
.status-panel h2,
.instructions-panel h2 {
  margin: 0;
  line-height: 0.95;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

.hero h1 {
  max-width: none;
  font-size: clamp(2.4rem, 6.4vw, 5.2rem);
  margin-top: 12px;
  font-family: "Orbitron", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hero-copy {
  max-width: 58ch;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 24px 0 0;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #fff9f2;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
}

.button.secondary {
  color: var(--secondary);
  background: rgba(28, 93, 113, 0.09);
}

.panel {
  border-radius: 24px;
  padding: 28px;
  margin-top: 28px;
}

.section-heading p,
.item-card p,
.footer p {
  color: var(--muted);
  line-height: 1.6;
}

.items-section {
  margin-top: 40px;
}

.section-heading {
  margin-bottom: 18px;
}

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

.item-card {
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease;
  box-shadow: var(--shadow-card);
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(52, 39, 19, 0.16);
}

.item-photo {
  margin: 0;
  min-height: 220px;
  background: linear-gradient(135deg, rgba(165, 71, 28, 0.08), rgba(28, 93, 113, 0.08));
  border-bottom: 1px solid var(--line);
}

.item-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: saturate(1.02);
}

.photo-placeholder {
  min-height: 220px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.04)),
    linear-gradient(135deg, rgba(165, 71, 28, 0.26), rgba(28, 93, 113, 0.24));
}

.photo-placeholder::after {
  content: "";
  position: absolute;
  inset: auto -48px -64px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
}

.photo-placeholder-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #f5f6f7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}

.photo-placeholder-title {
  display: block;
  margin-top: auto;
  margin-bottom: 0;
  font-size: clamp(1.22rem, 2.2vw, 1.68rem);
  line-height: 1.12;
  color: #fffdf9;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  text-wrap: balance;
  position: relative;
  z-index: 1;
}

.photo-placeholder-subtitle {
  color: rgba(255, 250, 242, 0.92);
  font-size: 0.86rem;
  line-height: 1.4;
  max-width: 90%;
  position: relative;
  z-index: 1;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 20px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)),
    var(--surface);
}

.item-notes {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.item-field + .item-field {
  margin-top: 10px;
}

.item-field span {
  display: block;
  margin-bottom: 4px;
  color: var(--secondary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.item-field {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.item-field:first-child {
  font-size: 1.03rem;
}

.item-field:nth-child(2) {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--primary-soft);
  border: 1px solid rgba(165, 71, 28, 0.16);
}

.comments-field .item-notes {
  color: var(--muted);
}

.empty-note {
  opacity: 0.75;
}

.footer {
  border-radius: 20px;
  padding: 20px 24px;
  margin-top: 36px;
}

@media (max-width: 860px) {
  .hero {
    padding: 36px 24px;
  }

  .hero h1 {
    white-space: normal;
    line-height: 1.05;
  }

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

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .photo-placeholder {
    min-height: 190px;
  }
}
