:root {
  color-scheme: light;
  --ink: #1b2420;
  --muted: #5e584e;
  --line: #d9cfc0;
  --paper: #efe6d6;
  --card: #fbf7ef;
  --pine: #1c2b26;
  --brass: #9a6b3f;
  --seal: #8d3128;
  --shadow: 0 18px 40px rgba(40, 28, 16, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(255, 250, 240, 0.9), transparent 60%),
    linear-gradient(180deg, #f6f0e4 0%, var(--paper) 280px);
  font: 18px/1.65 "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
a { color: inherit; }
header {
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--pine);
  color: #f4ecdf;
  border-bottom: 4px solid var(--brass);
}
.bar {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}
.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #f4ecdf;
  text-decoration: none;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font: 600 15px/1 "Segoe UI", sans-serif;
}
.mark img { width: 42px; height: 42px; display: block; }
.mark span { color: #e2c39a; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a {
  color: #e7dece;
  text-decoration: none;
  font: 14px/1 "Segoe UI", sans-serif;
  padding: 8px 10px;
  border-radius: 999px;
}
nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
main {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 72px;
  flex: 1;
}
.kicker {
  margin: 0 0 10px;
  color: var(--brass);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font: 600 12px/1.3 "Segoe UI", sans-serif;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}
h2 { font-size: 28px; line-height: 1.25; font-weight: 600; }
.lead { max-width: 38em; color: #4d483f; font-size: 20px; }
.home h1 { max-width: 12em; }
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 36px;
  counter-reset: shelf;
}
.grid article {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px 22px 8px 22px;
  overflow: hidden;
}
.grid article::before {
  counter-increment: shelf;
  content: "0" counter(shelf);
  display: block;
  margin-bottom: 12px;
  color: var(--brass);
  letter-spacing: 0.14em;
  font: 600 13px/1 "Segoe UI", sans-serif;
}
.grid article::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(var(--brass), #c4a27a);
}
.grid h2 { margin: 0 0 8px; font-size: 26px; }
.grid h2 a { text-decoration: none; }
.grid h2 a:hover { color: var(--seal); }
.grid p { color: #4e4941; }
.narrow { max-width: 46em; }
.narrow h1 { font-size: clamp(32px, 4vw, 48px); }
.narrow h1 + p::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  color: var(--pine);
  font-size: 58px;
  line-height: 0.8;
}
figure {
  margin: 28px 0;
  padding: 12px 12px 8px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
figcaption {
  margin-top: 10px;
  color: var(--muted);
  font: 14px/1.5 "Segoe UI", sans-serif;
}
figcaption a { color: var(--brass); }
.sources {
  margin-top: 32px;
  padding: 16px 18px;
  background: rgba(255, 252, 246, 0.75);
  border: 1px dashed #cbbfaa;
  border-radius: 14px;
  color: var(--muted);
  font-size: 16px;
}
.sources a { color: var(--pine); }
.narrow ul { padding-left: 1.2em; }
.narrow li { margin: 10px 0; }
.narrow li a { color: var(--pine); }
footer {
  width: 100%;
  margin: 0;
  padding: 22px 0 28px;
  background: var(--pine);
  color: #d9d0c2;
  font: 13px/1.4 "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
footer span, footer {
  text-align: center;
}
.hall main { max-width: 640px; }
.gate {
  margin-top: 8px;
  max-width: 440px;
  background:
    linear-gradient(#fbf7ef, #fbf7ef) padding-box,
    linear-gradient(135deg, #c6a36a, #1c2b26 40%, #8d3128) border-box;
  border: 2px solid transparent;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.gate label {
  display: block;
  margin: 0 0 14px;
  color: #3d463f;
  font: 600 13px/1.3 "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gate input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #ddd2c2;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 17px/1.3 "Palatino Linotype", Palatino, Georgia, serif;
  letter-spacing: normal;
  text-transform: none;
}
.gate input:focus { outline: 2px solid rgba(154, 107, 63, 0.45); border-color: var(--brass); }
.gate button {
  margin-top: 4px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--pine);
  color: #f4ecdf;
  font: 600 14px/1 "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.gate button:hover { background: #294038; }
.deny {
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(141, 49, 40, 0.08);
  color: var(--seal);
  font-weight: 700;
}
@media (max-width: 760px) {
  .bar, main { width: min(100% - 28px, 1080px); }
  .bar { align-items: flex-start; flex-direction: column; padding: 16px 0; }
  .grid { grid-template-columns: 1fr; }
  .narrow h1 + p::first-letter { font-size: 46px; }
}
