:root {
  --cork: #855736;
  --cork-dark: #5f3a24;
  --leather: #241b12;
  --paper: #eee2bd;
  --paper-light: #f7efcf;
  --ink: #342a1e;
  --muted: #746650;
  --green: #50765a;
  --green-dark: #34553d;
  --gold: #b8772f;
  --red: #9c4f3c;
  --line: rgba(94, 73, 44, 0.3);
  --shadow: 9px 12px 0 rgba(55, 31, 16, 0.17), 0 24px 52px rgba(45, 25, 12, 0.24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--cork);
  background-image:
    radial-gradient(circle at 13px 19px, rgba(48, 29, 17, 0.22) 0 1px, transparent 1.7px),
    radial-gradient(circle at 43px 47px, rgba(247, 214, 161, 0.11) 0 1.1px, transparent 1.9px),
    repeating-linear-gradient(19deg, rgba(255, 226, 179, 0.018) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, #986942, #75482d 56%, #8c5c38);
  background-size: 82px 64px, 91px 73px, auto, auto;
  color: var(--ink);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
button, input { font: inherit; }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(234, 202, 150, 0.22);
  background: rgba(35, 27, 18, 0.96);
  color: #f1e3c7;
  box-shadow: 0 6px 22px rgba(45, 26, 14, 0.2);
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand > span:last-child { display: grid; }
.brand strong { font: 700 1.05rem/1.1 Georgia, serif; letter-spacing: 0.04em; }
.brand small { color: #b8a78a; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(213, 170, 97, 0.52);
  border-radius: 50%;
  color: #d5aa61;
  background: rgba(211, 165, 85, 0.08);
  font: 700 1rem Georgia, serif;
  place-items: center;
}
.site-nav { display: flex; justify-content: center; gap: 6px; }
.site-nav a { padding: 8px 10px; color: #c5b494; font-size: 0.75rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { color: #f1e3c7; }
.edition-badge { padding: 6px 9px; border: 1px solid rgba(213, 170, 97, 0.3); border-radius: 2px; color: #cfb98f; font-size: 0.63rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 90px; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.8fr); align-items: center; gap: 42px; min-height: 650px; }
.hero-paper {
  position: relative;
  padding: clamp(36px, 5vw, 66px);
  border: 1px solid rgba(91, 68, 40, 0.36);
  border-radius: 4px 16px 5px 12px;
  background:
    linear-gradient(90deg, transparent 0 45px, rgba(152, 75, 61, 0.07) 46px, transparent 47px),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(87, 78, 59, 0.07) 36px),
    linear-gradient(145deg, #f2e7c4, #d9c695);
  box-shadow: var(--shadow);
}
.hero-paper::before, .start-card::before, .status-note::before {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 82px;
  height: 21px;
  background: rgba(218, 195, 147, 0.82);
  box-shadow: 0 1px 2px rgba(45, 34, 19, 0.18);
  content: "";
  transform: translateX(-50%) rotate(-2deg);
}
.eyebrow { margin: 0 0 10px; color: #8d5d2d; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 740px; margin-bottom: 22px; font: 700 clamp(3rem, 6.4vw, 5.8rem)/0.96 Georgia, serif; letter-spacing: -0.05em; }
h1 em { color: var(--green-dark); font-weight: 500; }
.hero-copy { max-width: 720px; margin-bottom: 28px; color: #5f513d; font: italic 1.02rem/1.72 Georgia, serif; }
.pal-lookup { margin: 0 0 18px; }
.pal-lookup > label { display: block; margin-bottom: 7px; color: #65563f; font-size: 0.67rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.pal-lookup > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.pal-lookup input { min-width: 0; padding: 13px 14px; border: 1px solid rgba(76, 62, 40, 0.36); border-right: 0; border-radius: 4px 0 0 4px; color: var(--ink); background: rgba(255, 252, 231, 0.78); outline: none; }
.pal-lookup input:focus { box-shadow: inset 0 0 0 2px rgba(80, 118, 90, 0.25); }
.pal-lookup button { padding: 12px 16px; border: 1px solid var(--green-dark); border-radius: 0 4px 4px 0; color: #f7efd6; background: var(--green-dark); font-weight: 850; cursor: pointer; }
.search-error { min-height: 1.2em; margin: 5px 0 0; color: var(--red); font-size: 0.72rem; font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 16px; border: 1px solid transparent; border-radius: 4px 9px 4px 8px; font-size: 0.78rem; font-weight: 900; text-decoration: none; }
.button-primary { color: #f8eed3; background: var(--green-dark); }
.button-secondary { border-color: rgba(80, 64, 40, 0.36); color: #574832; background: rgba(252, 245, 215, 0.44); }
.button:hover { transform: translateY(-1px); }

.hero-board { position: relative; min-height: 570px; border: 12px solid #4e301d; border-radius: 8px; background-color: #8a5a36; background-image: radial-gradient(circle at 20px 22px, rgba(49, 28, 14, 0.24) 0 1px, transparent 1.8px), linear-gradient(135deg, rgba(255,255,255,0.04), transparent); background-size: 55px 49px, auto; box-shadow: 0 22px 55px rgba(45, 25, 12, 0.3); }
.pal-polaroid { position: absolute; z-index: 2; width: 184px; padding: 14px 14px 18px; border: 1px solid rgba(76, 59, 35, 0.28); color: var(--ink); background: #ede2bf; box-shadow: 5px 7px 0 rgba(47, 27, 14, 0.17); text-align: center; text-decoration: none; transition: transform 150ms ease; }
.js .hero-board:not(.featured-ready) .pal-polaroid { opacity: 0; pointer-events: none; }
.hero-board.featured-ready .pal-polaroid { animation: reveal-field-photo 240ms ease-out both; }
.hero-board.featured-ready .pal-polaroid:nth-of-type(2) { animation-delay: 45ms; }
.hero-board.featured-ready .pal-polaroid:nth-of-type(3) { animation-delay: 90ms; }
.pal-polaroid:hover { z-index: 4; transform: rotate(0) translateY(-4px); }
.pal-polaroid img { display: block; width: 150px; height: 150px; object-fit: contain; }
.pal-polaroid strong, .pal-polaroid small { display: block; }
.pal-polaroid strong { font: 700 1.03rem Georgia, serif; }
.pal-polaroid small { margin-top: 3px; color: #75664e; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.tape { position: absolute; top: -10px; left: 50%; width: 62px; height: 20px; background: rgba(223, 202, 157, 0.84); transform: translateX(-50%) rotate(-2deg); }
.card-anubis { top: 42px; left: 24px; transform: rotate(-4deg); }
.card-chillet { top: 78px; right: 22px; transform: rotate(5deg); }
.card-jetragon { right: 70px; bottom: 42px; transform: rotate(-2deg); }
.board-note { position: absolute; bottom: 43px; left: 23px; width: 175px; padding: 17px; color: #4f402e; background: #d8cd75; box-shadow: 4px 5px 0 rgba(47, 27, 14, 0.16); transform: rotate(2deg); }

@keyframes reveal-field-photo {
  from { opacity: 0; }
  to { opacity: 1; }
}
.board-note::before { position: absolute; top: 7px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #8d4938; box-shadow: 0 2px 2px rgba(45, 25, 12, 0.28); content: ""; }
.board-note span { font-size: 0.58rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.board-note p { margin: 12px 0 0; font: italic 0.88rem/1.5 Georgia, serif; }

.home-section { margin-top: 56px; }
.section-heading { margin-bottom: 25px; color: #f1e3c7; }
.section-heading .eyebrow { color: #e4be83; }
.section-heading h2 { margin: 0; font: 700 clamp(2rem, 4vw, 3.6rem)/1 Georgia, serif; }
.start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.start-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 15px; min-height: 275px; padding: 28px 25px; border: 1px solid rgba(85, 63, 38, 0.3); border-radius: 4px 13px 5px 10px; color: var(--ink); background: linear-gradient(145deg, #eee2bd, #d5c295); box-shadow: 7px 9px 0 rgba(55, 31, 16, 0.15); text-decoration: none; transition: transform 140ms ease; }
.start-card:hover { transform: translateY(-4px) rotate(-0.3deg); }
.start-card:nth-child(2) { background: linear-gradient(145deg, #e6d3a6, #cbb183); transform: rotate(0.4deg); }
.start-card:nth-child(2):hover { transform: translateY(-4px) rotate(0); }
.start-card:nth-child(3) { background: linear-gradient(145deg, #dce0ae, #bcc58e); }
.start-card:nth-child(4) { background: linear-gradient(145deg, #d7e1df, #aec5c5); transform: rotate(-0.25deg); }
.start-card:nth-child(5) { background: linear-gradient(145deg, #e6d6df, #cbb2c2); transform: rotate(0.2deg); }
.start-card:nth-child(6) { background: linear-gradient(145deg, #ddd5e6, #bfb3cf); transform: rotate(-0.15deg); }
.start-card:nth-child(7) { background: linear-gradient(145deg, #e3c7b3, #c6a28d); transform: rotate(0.2deg); }
.card-number { color: rgba(85, 68, 43, 0.55); font: 700 1.3rem Georgia, serif; }
.start-card small { color: #89602f; font-size: 0.61rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.start-card h3 { margin: 7px 0 12px; color: #3f3528; font: 700 1.35rem Georgia, serif; }
.start-card p { color: #675943; font-size: 0.83rem; line-height: 1.6; }
.start-card div > strong { display: block; margin-top: 20px; color: var(--green-dark); font-size: 0.76rem; }

.news-section { position: relative; }
.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; color: #f1e3c7; }
.news-heading .eyebrow { color: #e4be83; }
.news-heading h2 { margin: 0; font: 700 clamp(2rem, 4vw, 3.6rem)/1 Georgia, serif; }
.news-heading > a { color: #ead3aa; font-size: 0.72rem; font-weight: 850; text-decoration-color: rgba(234, 211, 170, 0.4); text-underline-offset: 4px; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr); gap: 17px; }
.news-lead, .news-note { position: relative; display: block; border: 1px solid rgba(91, 68, 39, 0.32); border-radius: 3px 11px 4px 8px; color: var(--ink); text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease; }
.news-lead:hover, .news-note:hover { transform: translateY(-3px) rotate(-0.15deg); }
.news-lead { min-height: 290px; padding: 43px 38px 32px; background: repeating-linear-gradient(0deg, transparent 0 35px, rgba(84, 73, 53, 0.07) 36px), linear-gradient(145deg, #f0e4bd, #d8c490); box-shadow: var(--shadow); }
.news-lead::before { position: absolute; top: -10px; left: 50%; width: 94px; height: 22px; background: rgba(226, 205, 156, 0.8); clip-path: polygon(0 13%, 8% 0, 20% 8%, 35% 1%, 51% 10%, 68% 2%, 83% 9%, 100% 0, 97% 88%, 82% 100%, 64% 91%, 47% 100%, 29% 92%, 12% 100%, 2% 86%); content: ""; transform: translateX(-50%) rotate(-1deg); }
.news-pin { position: absolute; top: 16px; right: 20px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #efad82, #a74f32 65%, #6c2f21); box-shadow: 0 2px 4px rgba(55, 29, 14, 0.35); }
.news-lead small, .news-note small { color: #8b5a2a; font-size: 0.64rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.news-lead h3 { max-width: 760px; margin: 15px 0 13px; color: #34291d; font: 700 clamp(1.75rem, 4vw, 3.25rem)/1.05 Georgia, serif; }
.news-lead p { max-width: 730px; color: #645743; line-height: 1.65; }
.news-lead strong { display: block; margin-top: 28px; color: var(--green-dark); font-size: 0.76rem; }
.news-stack { display: grid; gap: 13px; }
.news-note { min-height: 138px; padding: 23px 24px; background: linear-gradient(145deg, #e0dda9, #bec58e); box-shadow: 4px 6px 0 rgba(55, 31, 16, 0.14); }
.news-note:nth-child(2) { background: linear-gradient(145deg, #ead6a8, #cfb783); transform: rotate(0.35deg); }
.news-note h3 { margin: 7px 0 5px; color: #3c3428; font: 700 1.08rem Georgia, serif; }
.news-note p { display: -webkit-box; margin: 0; overflow: hidden; color: #625744; font-size: 0.75rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.news-source-note { margin: 12px 0 0; color: #dbc7a4; font: italic 0.72rem Georgia, serif; }

.guide-status { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: center; gap: 35px; }
.status-note { position: relative; padding: clamp(30px, 5vw, 55px); border: 1px solid rgba(85, 63, 38, 0.3); border-radius: 4px 13px 5px 10px; background: linear-gradient(145deg, #eee4c5, #d7c89f); box-shadow: var(--shadow); }
.status-note h2 { max-width: 740px; margin: 0 0 17px; font: 700 clamp(2rem, 4vw, 3.5rem)/1.04 Georgia, serif; }
.status-note > p:last-of-type { max-width: 760px; color: #665943; line-height: 1.65; }
.status-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.status-stats div { padding: 13px; border-left: 3px solid var(--green); background: rgba(255, 249, 218, 0.3); }
.status-stats strong, .status-stats span { display: block; }
.status-stats strong { color: var(--green-dark); font: 700 1.65rem Georgia, serif; }
.status-stats span { color: #77694f; font-size: 0.64rem; font-weight: 850; text-transform: uppercase; }
.hatch-checklist { position: relative; padding: 38px 28px 28px; border: 1px solid rgba(89, 70, 44, 0.34); border-radius: 3px 10px 4px 8px; background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(84, 73, 53, 0.1) 32px), linear-gradient(145deg, #f1e8ca, #d9cca7); box-shadow: 7px 10px 0 rgba(55, 31, 16, 0.16); transform: rotate(1deg); }
.clip { position: absolute; top: -14px; left: 50%; width: 24px; height: 50px; border: 3px solid rgba(70, 62, 50, 0.62); border-bottom: 0; border-radius: 14px 14px 0 0; transform: translateX(-50%); }
.checklist-label { color: #8b5d2d; font-size: 0.63rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.hatch-checklist label { display: flex; align-items: center; gap: 10px; min-height: 39px; color: #554936; font: italic 0.88rem Georgia, serif; }
.hatch-checklist input { accent-color: var(--green-dark); }
.hatch-checklist a { display: inline-block; margin-top: 18px; color: var(--green-dark); font-size: 0.74rem; font-weight: 900; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; min-height: 105px; padding: 20px max(24px, calc((100vw - 1180px) / 2)); color: #d7c5a4; background: #2e2116; }
.site-footer div strong { font: 700 1rem Georgia, serif; }
.site-footer p { margin: 3px 0 0; color: #aa987b; font-size: 0.72rem; }
.site-footer small { color: #a89576; font-size: 0.65rem; }

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; }
  .hero-board { min-height: 520px; }
  .start-grid { grid-template-columns: 1fr 1fr; }
  .guide-status { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr; }
  .news-stack { grid-template-columns: 1fr 1fr; }
  .hatch-checklist { width: min(100%, 480px); justify-self: center; }
}

@media (max-width: 760px) {
  .site-header { grid-template-columns: auto 1fr; padding-inline: 14px; }
  .edition-badge { display: none; }
  .site-nav { justify-content: flex-end; overflow-x: auto; }
  main { width: min(100% - 20px, 1180px); padding-top: 25px; }
  .home-hero { gap: 25px; }
  .hero-paper { padding: 38px 23px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.3rem); }
  .start-grid { grid-template-columns: 1fr; }
  .news-heading { align-items: start; flex-direction: column; }
  .news-stack { grid-template-columns: 1fr; }
  .news-lead { min-height: 0; padding: 36px 23px 27px; }
  .status-stats { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer > small { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand small { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: 6px; font-size: 0.68rem; }
  .site-nav a:nth-child(2) { display: none; }
  .pal-lookup > div { grid-template-columns: 1fr; gap: 7px; }
  .pal-lookup input, .pal-lookup button { border: 1px solid rgba(76, 62, 40, 0.36); border-radius: 4px; }
  .hero-actions .button { width: 100%; }
  .hero-board { min-height: 480px; border-width: 8px; }
  .pal-polaroid { width: 155px; padding: 10px 10px 15px; }
  .pal-polaroid img { width: 133px; height: 133px; }
  .card-anubis { left: 8px; }
  .card-chillet { right: 7px; }
  .card-jetragon { right: 18px; bottom: 28px; }
  .board-note { left: 10px; bottom: 35px; width: 145px; }
}
