:root {
  color-scheme: dark;
  --panel: #34302a;
  --panel-deep: #1f1c18;
  --text: #f3ebda;
  --text-soft: #d8cdb8;
  --terracotta: #a6603a;
  --terracotta-deep: #8a4f30;
  --terracotta-tint: #d8b48f;
  --amber: #d9a679;
  --sage: #9ec08a;
  --ghost: #b0a594;
  --field: #4c463c;
  --display: Newsreader, Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif;
  --reading: Newsreader, Iowan Old Style, Palatino Linotype, Palatino, Georgia, serif;
  --ui: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { min-height: 100%; margin: 0; background: var(--panel-deep); color: var(--text); font-family: var(--ui); }
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.holding-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "content photo";
  background: var(--panel-deep);
}

.holding-panel {
  grid-area: content;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: max(42px, env(safe-area-inset-top)) 72px max(34px, env(safe-area-inset-bottom));
  background: var(--panel);
  animation: lfh-rise 450ms cubic-bezier(.2, .7, .2, 1) both;
}

.holding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.2px;
  text-decoration: none;
}

.wordmark-ring {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--terracotta-tint);
  border-radius: 999px;
  color: var(--amber);
  font-family: var(--display);
  font-size: 20px;
  font-style: italic;
}

.view-link {
  border-bottom: 1px solid rgba(217, 166, 121, .4);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  line-height: 1.8;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms cubic-bezier(.2, .7, .2, 1), border-color 160ms cubic-bezier(.2, .7, .2, 1);
}

.view-link:hover { border-color: var(--terracotta-tint); color: var(--terracotta-tint); }
.view-link-back { border-color: rgba(216, 205, 184, .35); color: var(--text-soft); }
.view-link-back:hover { border-color: var(--text); color: var(--text); }

.holding-content {
  width: 100%;
  max-width: 520px;
  padding: 48px 0;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.holding-content h1 {
  margin: 0 0 24px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2.4rem, 3.6vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -.6px;
  line-height: 1.12;
  text-wrap: pretty;
}

.holding-content > p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--text-soft);
  font-family: var(--reading);
  font-size: 19px;
  line-height: 1.72;
  text-wrap: pretty;
}

.holding-content > p:last-of-type { margin-bottom: 0; }
.capture-block { margin-top: 38px; }
.capture-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.capture-form input,
.signin-form input {
  min-width: 0;
  border: 1px solid var(--field);
  outline: 0;
  background: rgba(255, 255, 255, .05);
  color: var(--text);
  font-family: var(--ui);
  font-size: 16px;
}

.capture-form > input {
  flex: 1 1 260px;
  border-radius: 24px;
  padding: 13px 20px;
}

input::placeholder { color: #8d8375; opacity: 1; }
input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(217, 166, 121, .18); }

button {
  border: 1px solid var(--terracotta);
  background: var(--terracotta);
  color: #fff9f1;
  cursor: pointer;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background 160ms cubic-bezier(.2, .7, .2, 1), border-color 160ms cubic-bezier(.2, .7, .2, 1), transform 160ms cubic-bezier(.2, .7, .2, 1);
}

.capture-form button { border-radius: 24px; padding: 13px 26px; }
button:hover { border-color: var(--terracotta-deep); background: var(--terracotta-deep); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .7; transform: none; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(217, 166, 121, .5); outline-offset: 4px; }

.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 12px 0 0; color: #e0b3a6; font-size: 14px; line-height: 1.5; }

.lookup-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.lookup-choices-intro { margin: 0 0 4px; font-size: 14px; }
.lookup-choice { width: 100%; border-radius: 24px; padding: 13px 26px; text-align: left; }

.success-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--field);
  border-radius: 6px;
  background: rgba(154, 192, 138, .08);
  color: var(--text);
  font-size: 15px;
}

.success-panel > :first-child { color: var(--sage); font-family: var(--mono); font-size: 13px; }

.signin-content h1 { margin-bottom: 20px; font-size: clamp(2rem, 2.8vw, 2.6rem); letter-spacing: -.5px; line-height: 1.14; }
.signin-content > p:not(.eyebrow) { margin-bottom: 32px; }
.signin-form { max-width: 400px; display: flex; flex-direction: column; gap: 14px; }
.signin-form label { display: flex; flex-direction: column; gap: 8px; }
.signin-form label > span { color: #a99e8c; font-family: var(--mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.signin-form input { width: 100%; border-radius: 6px; padding: 12px 14px; }
.signin-actions { display: flex; align-items: center; gap: 20px; margin-top: 6px; flex-wrap: wrap; }
.signin-actions button { border-radius: 6px; padding: 12px 26px; }
.signin-actions a { color: var(--text-soft); font-size: 14px; text-underline-offset: 3px; }
.signin-actions a:hover { color: var(--text); }

.signin-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(216, 176, 164, .35);
  border-radius: 6px;
  background: rgba(154, 74, 56, .16);
  color: #e0b3a6;
  font-size: 14px;
  line-height: 1.5;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding-top: 28px;
  border-top: 1px solid #423c33;
  color: var(--ghost);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.holding-photo { grid-area: photo; position: relative; min-width: 0; overflow: hidden; background: var(--panel-deep); }
.holding-photo picture { position: absolute; inset: 0; }
.holding-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 52% 50%; }
.holding-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(31, 28, 24, .9) 0%, rgba(31, 28, 24, .3) 24%, rgba(31, 28, 24, 0) 52%); pointer-events: none; }

@keyframes lfh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .holding-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(230px, 34svh) auto; grid-template-areas: "photo" "content"; }
  .holding-panel { min-height: 66svh; padding: 40px 24px max(30px, env(safe-area-inset-bottom)); }
  .holding-photo { min-height: 230px; }
  .holding-photo::after { background: linear-gradient(0deg, rgba(52, 48, 42, 1) 0%, rgba(52, 48, 42, .2) 28%, rgba(52, 48, 42, 0) 55%); }
  .holding-content { padding: 46px 0; }
}

@media (max-width: 520px) {
  .holding-shell { grid-template-rows: minmax(205px, 30svh) auto; }
  .holding-panel { padding: 30px 20px 26px; }
  .holding-header { align-items: flex-start; gap: 18px; }
  .wordmark { font-size: 18px; }
  .view-link { max-width: 120px; text-align: right; }
  .holding-content { padding: 40px 0; }
  .holding-content h1 { font-size: clamp(2.25rem, 12vw, 2.8rem); }
  .capture-form { align-items: stretch; flex-direction: column; }
  .capture-form > input { flex-basis: auto; width: 100%; }
  .capture-form button { width: 100%; }
  .trust-strip { gap: 8px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
