@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(source-serif-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Source Serif 4'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(source-serif-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F;
}
:root {
  color-scheme: light;
  font: 16px/1.5 Inter, system-ui, 'Segoe UI', sans-serif;
  --paper: #f4f3f0;
  --field: #fdfcf9;
  --ink: #29241f;
  --dim: #625954;
  --edge: #8c8177;
  --dark: #0a0a0a;
  --cream: #e6e4dd;
  --tan: #d4a373;
  --link: #70472f;
  --error: #8e3023;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-underline-offset: .24em; }
button, input { font: inherit; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.skip { position: fixed; top: 16px; left: 16px; z-index: 1; background: var(--paper); padding: 8px 12px; transform: translateY(calc(-100% - 24px)); }
.skip:focus { transform: none; }
.identity { position: relative; isolation: isolate; min-height: 100svh; }
.identity::before { content: ''; position: absolute; z-index: -1; inset: 0 50% 0 0; background: var(--dark); }
.identity-wrap { width: calc(100% - 2 * clamp(24px, 7vw, 100px)); max-width: 1280px; margin-inline: auto; }
.identity-columns {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(80px, 16vw, 224px);
  padding-block: clamp(36px, 7vw, 104px);
}
.identity-brand {
  display: grid;
  align-content: space-between;
  gap: 48px;
  color: var(--cream);
}
.wordmark { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; }
.wordmark img { width: 172px; height: auto; display: block; }
.wordmark:focus-visible { outline-color: var(--tan); }
.brand-title { margin: 0; max-width: 13ch; font: 400 clamp(2.4rem, 5.2vw, 5rem)/1.04 'Source Serif 4', Georgia, serif; }
.brand-caption { margin: 0; color: var(--tan); font-size: .875rem; font-weight: 600; }
.identity-panel { display: grid; align-content: center; gap: 24px; }
.identity-content { width: min(100%, 400px); display: grid; gap: 20px; }
.identity-content h1 { margin: 0; font-size: clamp(1.875rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.description { margin: 0; color: var(--dim); }
.feedback { margin: 0; padding: 10px 12px; background: #fae9e2; color: var(--error); border-radius: 6px; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: .875rem; font-weight: 600; }
input { width: 100%; min-width: 0; min-height: 48px; color: var(--ink); background: var(--field); border: 1px solid var(--edge); border-radius: 10px; padding: 8px 12px; }
.hint { color: var(--dim); font-weight: 400; }
.primary { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 9px 16px; border: 1px solid transparent; border-radius: 10px; background: #272019; color: #fff8f1; font-weight: 650; text-decoration: none; cursor: pointer; }
.primary:hover { background: #473024; }
.primary:active { background: #38281e; }
.form-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; }
.form-links a, .text-button, .identity-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--link); font-size: .875rem; }
.text-button { padding: 0; width: fit-content; background: none; border: none; text-decoration: underline; text-underline-offset: .24em; cursor: pointer; }
.form-links a:hover, .text-button:hover, .identity-footer a:hover { color: var(--ink); }
.account { display: grid; gap: 3px; border: 1px solid var(--edge); border-radius: 10px; padding: 12px 16px; overflow-wrap: anywhere; }
.account span { color: var(--dim); }
.identity-footer { display: flex; flex-wrap: wrap; gap: 0 16px; }
.legal-choice { display: grid; justify-items: start; gap: 6px; }
.legal-choice a { color: var(--link); font-size: .875rem; }
.legal-choice label { display: flex; align-items: flex-start; gap: 8px; }
.legal-choice input { width: 18px; min-width: 18px; min-height: 18px; margin: 2px 0 0; }
@media (min-width: 769px) and (prefers-reduced-motion: no-preference) {
  [data-enter] .identity-content { animation: arrival .28s ease-out both; }
  @keyframes arrival { from { opacity: 0; transform: translateY(6px); } }
}
@media (max-width: 768px) {
  .identity::before { inset: 0 0 auto; height: 84px; }
  .identity-wrap { width: min(calc(100% - 48px), 460px); }
  .identity-columns { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding: 0; }
  .identity-brand { padding-block: 20px; gap: 0; }
  .brand-title, .brand-caption { display: none; }
  .identity-panel { align-content: start; justify-items: start; padding-block: 36px; }
  .identity-content { width: 100%; }
}
