:root {
  --ground: #11282a;
  --panel: #173436;
  --line: rgba(201, 163, 90, 0.28);
  --gold: #c9a35a;
  --gold-soft: #b8975a;
  --ivory: #efe6d4;
  --body: #d9d0bd;
  --muted: #9c9584;
  --maroon: #7a1f2b;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--line); }
a:hover { border-bottom-color: var(--gold); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* masthead */
.mast { border-bottom: 1px solid var(--line); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.mast a { border: 0; }
.mast .mark { width: 132px; }
.mast nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.mast nav a { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--body); }
.mast nav a:hover { color: var(--gold); }

/* type */
.label { font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 400; }
h1, h2, h3, .lead, .facts dd, .steps .n { font-variant-numeric: lining-nums; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ivory); letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; }
h3 { font-size: 26px; line-height: 1.15; }
.lead { font-family: var(--serif); font-size: clamp(20px, 2.4vw, 25px); line-height: 1.45; color: var(--ivory); font-weight: 400; }
p { margin: 0 0 1em; }
.small { font-size: 13.5px; color: var(--muted); }
.cap { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* sections */
section { padding: 88px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.wide-img { grid-template-columns: 1.15fr 0.85fr; }
.stack > * + * { margin-top: 18px; }

/* opening */
.opening { padding: 72px 0 88px; }
.opening .split { align-items: end; }
.opening h1 em { font-style: italic; color: var(--gold); font-weight: 400; }

/* the two works */
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 48px; }
.work { display: block; border: 0; color: inherit; }
.work .frame { overflow: hidden; border: 1px solid var(--line); }
.work img { transition: transform 0.6s ease; aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.work:hover img { transform: scale(1.03); }
.work .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.work .no { font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; color: var(--gold); }
.work p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* materials list */
.materials { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.materials li { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.materials b { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--ivory); line-height: 1.25; }

/* edition register */
.ledger { display: grid; grid-template-columns: repeat(10, 1fr); gap: 8px; margin-top: 36px; max-width: 720px; }
.ledger a, .ledger span {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; border: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.08em; color: var(--muted);
}
.ledger a { background: var(--panel); color: var(--gold); border-color: var(--gold-soft); }
.ledger a:hover { background: var(--gold); color: var(--ground); }
.legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border: 1px solid var(--line); margin-right: 8px; vertical-align: -1px; }
.legend i.on { background: var(--panel); border-color: var(--gold-soft); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 44px; border-top: 1px solid var(--gold-soft); }
.steps div { padding: 26px 28px 0 0; }
.steps div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.steps .n { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }
.steps h3 { margin: 14px 0 10px; font-size: 23px; }

/* lookup */
.lookup { display: flex; gap: 0; margin-top: 28px; max-width: 460px; border: 1px solid var(--gold-soft); }
.lookup input {
  flex: 1; min-width: 0; background: transparent; border: 0; padding: 15px 16px;
  color: var(--ivory); font-family: var(--sans); font-size: 16px; letter-spacing: 0.12em; text-transform: uppercase;
}
.lookup input::placeholder { color: var(--muted); }
.lookup input:focus { outline: none; }
.lookup button {
  background: var(--gold); color: var(--ground); border: 0; padding: 0 22px; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
}
.lookup-msg { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* register page */
.record { padding: 64px 0 80px; }
.record-card { border: 1px solid var(--gold-soft); background: var(--panel); }
.record-card .head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.status { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.status::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: 1px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 18px 24px; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-family: var(--serif); font-size: 21px; color: var(--ivory); line-height: 1.2; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.gallery img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.identity { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.identity .frame { border: 1px solid var(--gold-soft); padding: 10px; }
.notfound { padding: 120px 0; text-align: left; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 48px; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
footer .mark { width: 96px; opacity: 0.9; }

@media (max-width: 860px) {
  section { padding: 64px 0; }
  .split, .split.wide-img, .identity { grid-template-columns: 1fr; gap: 32px; }
  .works { grid-template-columns: 1fr; }
  .materials li { grid-template-columns: 1fr; gap: 6px; }
  .ledger { grid-template-columns: repeat(5, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .steps div, .steps div + div { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .gallery { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .mast .wrap { flex-direction: column; align-items: flex-start; }
  .mast nav { justify-content: flex-start; gap: 16px; }
}
