/* Tutti, myrtle-opus
   A listening hall in myrtle green; the score intake is a Lombard arch. */

:root {
  --myrtle-deep: #173a33;
  --myrtle: #2b5a4f;
  --myrtle-line: #3f7264;
  --leaf: #a3bfae;
  --vellum: #eceee3;
  --vellum-deep: #dfe3d4;
  --ink: #1a2521;
  --ink-soft: #4a5a53;
  --brass: #c9a34e;
  --brass-deep: #8a6a22;
  --rubric: #9e3b32;

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans: "Alegreya Sans", "Gill Sans", "Segoe UI", sans-serif;

  /* type scale, 18px body, roughly a fourth */
  --t-small: 0.875rem;
  --t-body: 1.125rem;
  --t-lead: 1.3125rem;
  --t-h3: 1.375rem;
  --t-h2: 2rem;
  --t-h1: clamp(2.75rem, 1.6rem + 2.8vw, 4rem);

  --gutter: clamp(20px, 4vw, 64px);
  --radius-s: 3px;
  --focus: 0 0 0 3px var(--vellum), 0 0 0 5px var(--brass-deep);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--vellum);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
svg { display: block; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-s); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--brass); color: var(--ink); padding: 8px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- signed-in toggles ---------- */
body[data-signed-in="false"] [data-when-signed-in],
body[data-signed-in="true"] [data-when-signed-out] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px;
  font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0.01em;
  border: 1.5px solid transparent; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ink { background: var(--myrtle-deep); color: var(--vellum); }
.btn--ink:hover { background: var(--myrtle); }
.btn--line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--vellum-deep); }
.btn--wide { width: 100%; }

.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.link-button--quiet { color: var(--ink-soft); font-size: 1rem; }
.link-button:hover { text-decoration-thickness: 2px; }

.icon-button {
  display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink-soft);
}
.icon-button svg { width: 20px; height: 20px; }
.icon-button:hover { background: var(--vellum-deep); color: var(--ink); }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 22px;
  padding: 14px var(--gutter);
  background: var(--myrtle-deep); color: var(--vellum);
  border-bottom: 1px solid rgba(163, 191, 174, 0.18);
}

.brand {
  display: inline-flex; align-items: flex-end; text-decoration: none; color: var(--vellum);
  line-height: 1;
}
.brand-t { width: 30px; height: 33px; fill: var(--brass); margin-right: -1px; }
.brand-rest {
  font-family: var(--serif); font-weight: 500; font-size: 1.75rem; letter-spacing: 0.01em;
  transform: translateY(1px);
}

.masthead-beta {
  font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--brass);
  padding-left: 22px; border-left: 1px solid rgba(163, 191, 174, 0.3);
}

.masthead-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 1.0625rem; }
.masthead-nav a { text-decoration: none; color: var(--leaf); }
.masthead-nav a:hover { color: var(--vellum); }
.masthead-nav .link-button { text-decoration: none; color: var(--leaf); }
.masthead-nav .link-button:hover { color: var(--vellum); }
.masthead-nav .account-signin {
  color: var(--vellum); border: 1px solid rgba(236, 238, 227, 0.5); border-radius: 999px; padding: 5px 16px;
}
.masthead-nav .account-signin:hover { border-color: var(--vellum); }
.masthead :focus-visible { box-shadow: 0 0 0 2px var(--myrtle-deep), 0 0 0 4px var(--brass); }

.account { display: inline-flex; align-items: center; gap: 12px; }
.account-avatar {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brass); color: var(--myrtle-deep); font-family: var(--serif); font-weight: 700; font-size: 1.05rem;
}

/* ---------- hall (hero) ---------- */
.hall {
  position: relative; overflow: hidden;
  background: var(--myrtle-deep); color: var(--vellum);
  padding: clamp(32px, 4vw, 48px) var(--gutter) 0;
  min-height: 834px;
}

.hall-score {
  position: absolute; left: 0; right: 0; top: 540px;
  width: 100%; height: 300px; pointer-events: none;
}
.hall-score .staff-line { stroke: var(--myrtle-line); stroke-width: 1; }
.hall-score .bar-line { stroke: var(--myrtle-line); stroke-width: 1.1; }
.hall-score .note { fill: var(--myrtle-line); }
.hall-score .stem { stroke: var(--myrtle-line); stroke-width: 1.2; }
.hall-score .beam { fill: var(--myrtle-line); }
.hall-score .bracket { fill: var(--myrtle-line); }

.hall-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 450px) minmax(0, 0.66fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
  max-width: 1320px; margin: 0 auto;
}

.hall-lead { padding-top: clamp(24px, 4vw, 56px); }

h1 {
  font-family: var(--serif); font-weight: 500; font-size: var(--t-h1);
  line-height: 1.02; letter-spacing: -0.012em; color: var(--vellum);
}
.h1-line { display: block; }
.h1-line--answer { padding-left: 0.5em; white-space: nowrap; }

.hall-sub {
  margin-top: 24px; max-width: 30em;
  font-size: var(--t-lead); line-height: 1.5; color: var(--leaf);
}
.hall-beta {
  margin-top: 26px; max-width: 30em;
  padding-top: 16px; border-top: 1px solid rgba(201, 163, 78, 0.45);
  font-size: 1.0625rem; color: var(--vellum);
}
.hall-beta strong { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--brass); font-size: 1.1875rem; }

.hall-aside {
  align-self: start; padding-top: clamp(24px, 5vw, 90px);
  font-size: 1rem; line-height: 1.45;
}
.aside-head { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.25; color: var(--vellum); }
.aside-head--no { margin-top: 26px; }
.aside-body { margin-top: 6px; color: var(--leaf); max-width: 22em; }

/* ---------- the arch ---------- */
.arch-wrap { position: relative; padding: 12px; }

/* moulding: a brass hairline following the arch */
.arch-wrap::before {
  content: ""; position: absolute; inset: 0;
  border: 1px solid rgba(201, 163, 78, 0.7);
  border-bottom: 0;
  border-radius: 100vw 100vw 0 0;
  pointer-events: none;
}

.arch {
  position: relative;
  min-height: 540px;
  background: var(--vellum); color: var(--ink);
  border-radius: 100vw 100vw 0 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 clamp(22px, 3vw, 40px) 36px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
}

.panel { display: none; flex-direction: column; align-items: center; text-align: center; gap: 14px; }

body[data-state="idle"] [data-panel="idle"],
body[data-state="selected"] [data-panel="selected"],
body[data-state="signin"] [data-panel="selected"],
body[data-state="received"] [data-panel="received"],
body[data-state="failed"] [data-panel="failed"] { display: flex; }

/* idle: the drop area fills the arch */
.panel--idle { position: absolute; inset: 0; padding: 22px; }
.drop {
  position: relative; flex: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 0 24px 40px;
  border-radius: 100vw 100vw 0 0;
  border: 1.5px dashed transparent;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.drop:hover { border-color: rgba(43, 90, 79, 0.35); }
.drop.is-over { border-color: var(--brass-deep); background: rgba(201, 163, 78, 0.14); }
.drop:focus-within { border-color: var(--brass-deep); }
.drop-page { width: 64px; height: 83px; color: var(--myrtle); margin-bottom: 18px; }
.drop-title { font-family: var(--serif); font-size: 1.875rem; line-height: 1.15; font-weight: 500; max-width: 7.6em; text-wrap: balance; }
.drop-or { font-family: var(--serif); font-style: italic; color: var(--ink-soft); }
.drop .btn { pointer-events: auto; }
.drop-hint { margin-top: 6px; font-size: 1rem; color: var(--ink-soft); max-width: 24em; }
body.is-dragging .drop { border-color: var(--brass-deep); }

.panel-error {
  position: absolute; left: 22px; right: 22px; bottom: -58px;
  color: var(--vellum); background: var(--rubric); padding: 8px 14px; font-size: 1rem; text-align: left;
  border-radius: var(--radius-s);
}

.panel-title { font-family: var(--serif); font-size: 1.75rem; line-height: 1.15; font-weight: 500; max-width: 12em; }
.panel-body { font-size: 1.0625rem; line-height: 1.5; color: var(--ink); max-width: 24em; }
.panel-note { font-size: 1rem; color: var(--ink-soft); max-width: 24em; overflow-wrap: anywhere; }
.panel .btn--wide { margin-top: 8px; }

/* selected */
.panel--selected { gap: 16px; }
.file {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 10px 16px 16px; margin-bottom: 8px;
  background: #fff; border: 1px solid var(--vellum-deep); border-radius: var(--radius-s);
}
.file-icon { width: 36px; height: 47px; color: var(--myrtle); flex: none; }
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.file-pages { color: var(--ink-soft); font-size: 1rem; }

/* received / failed sigils */
.sigil { width: 72px; height: auto; color: var(--myrtle); margin-bottom: 6px; }
.panel--failed .sigil { color: var(--ink-soft); }
.file-in { font-weight: 700; overflow-wrap: anywhere; max-width: 100%; }

.panel--received { gap: 12px; }
.panel--received .panel-note { font-size: 0.9375rem; }

/* ---------- sections below ---------- */
.how, .fit, .terms, .faq {
  max-width: 1200px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--gutter) 0;
}
.faq { padding-bottom: clamp(72px, 8vw, 120px); }

.section-title {
  font-family: var(--serif); font-weight: 500; font-size: var(--t-h2); line-height: 1.15; color: var(--ink);
}

h3 { font-family: var(--serif); font-weight: 500; font-size: var(--t-h3); line-height: 1.25; }

/* How it works: three bars of a staff, numbered like bar numbers */
.bars {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}
.bar {
  position: relative; padding: 64px 32px 0 24px;
}
/* the five staff lines above each bar's text */
.bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 33px;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 8px);
}
.bar::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1.5px; height: 33px; background: var(--ink);
}
.bar--final { background: linear-gradient(var(--ink), var(--ink)) right top / 6px 33px no-repeat,
                          linear-gradient(var(--ink), var(--ink)) calc(100% - 10px) top / 1.5px 33px no-repeat; }
.bar-no {
  position: absolute; left: 2px; top: -26px;
  font-family: var(--serif); font-style: italic; font-size: 1.0625rem; color: var(--ink-soft);
}
.bar h3 { max-width: 14em; }
.bar p { margin-top: 8px; color: var(--ink-soft); max-width: 22em; }

/* Will my PDF work */
.fit-cols {
  margin-top: 32px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px);
}
.fit-col ul { margin: 12px 0 0; padding: 0; list-style: none; }
.fit-col li { position: relative; padding-left: 26px; margin-top: 10px; max-width: 26em; }
.fit-col li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em; width: 11px; height: 8px;
  background: var(--myrtle); border-radius: 50%; transform: rotate(-22deg);
}
.fit-col--no li::before {
  background: transparent; border: 1.5px solid var(--ink-soft);
}
.fit-tip {
  padding: 20px 22px 22px; background: var(--vellum-deep); border-radius: var(--radius-s);
}
.fit-tip p { margin-top: 8px; color: var(--ink); max-width: 26em; }

/* Terms and files */
.terms {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px);
}
.terms-col p { margin-top: 14px; max-width: 32em; }
.terms-later {
  padding-left: 16px; border-left: 3px solid var(--brass);
}

/* FAQ */
.faq-list { margin-top: 24px; max-width: 46em; border-top: 1px solid #c3cbbf; }
.faq details { border-bottom: 1px solid #c3cbbf; }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 44px 18px 0;
  font-family: var(--serif); font-size: 1.25rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; max-width: 38em; color: var(--ink-soft); }

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: center; flex-wrap: wrap; gap: 20px 36px;
  padding: 32px var(--gutter);
  background: var(--myrtle-deep); color: var(--leaf);
}
.brand--foot .brand-t { width: 24px; height: 27px; }
.brand--foot .brand-rest { font-size: 1.375rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-nav a, .foot-nav .link-button { color: var(--leaf); text-decoration: none; }
.foot-nav a:hover, .foot-nav .link-button:hover { color: var(--vellum); }
.foot-domain { margin-left: auto; font-family: var(--serif); font-style: italic; }
.foot :focus-visible { box-shadow: 0 0 0 2px var(--myrtle-deep), 0 0 0 4px var(--brass); }

/* ---------- modals ---------- */
.modal {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 36px 32px 30px;
  border: 0; border-radius: 6px;
  background: var(--vellum); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(10, 30, 25, 0.6);
  border-top: 5px solid var(--brass);
}
.modal::backdrop { background: rgba(16, 42, 36, 0.72); }
.modal[open] { animation: modal-in .22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.modal-title { font-family: var(--serif); font-weight: 500; font-size: 1.875rem; line-height: 1.15; padding-right: 32px; }
.modal-lede { margin: 10px 0 22px; color: var(--ink-soft); overflow-wrap: anywhere; }
.modal-lede strong { color: var(--ink); }

.or-rule { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-soft); font-family: var(--serif); font-style: italic; }
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: #c3cbbf; }

.email-form, .feedback-form { display: flex; flex-direction: column; }
.field-label { display: block; font-weight: 700; font-size: 1rem; margin: 0 0 6px; }
.field-label .optional { font-weight: 400; font-style: italic; color: var(--ink-soft); font-family: var(--serif); }
.field {
  width: 100%; min-height: 46px; padding: 10px 12px; margin-bottom: 16px;
  font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #b3bdb5; border-radius: var(--radius-s);
}
.field:focus-visible { border-color: var(--myrtle); }
.field--code { font-size: 1.5rem; letter-spacing: 0.4em; text-align: center; font-variant-numeric: tabular-nums; }
.field--area { resize: vertical; min-height: 104px; line-height: 1.45; }
.field-error { margin: -10px 0 14px; color: var(--rubric); font-size: 0.9375rem; }
.email-form + .link-button, .signin-step > .link-button { margin-top: 14px; }

.kind { border: 0; padding: 0; margin: 0 0 16px; }
.kind-option {
  display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer;
}
.kind-option input { accent-color: var(--myrtle-deep); width: 18px; height: 18px; margin: 0; }

.modal--feedback { width: min(500px, calc(100vw - 32px)); }

/* ---------- motion ---------- */
.hall-score .staff-line, .hall-score .bar-line {
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: draw 1.6s cubic-bezier(.3, .6, .2, 1) forwards;
}
.hall-score .glyph { opacity: 0; animation: appear .6s ease forwards; animation-delay: 1s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hall-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); }
  .hall-aside {
    grid-column: 1 / -1; padding-top: 0;
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px;
  }
  .aside-head--no { margin-top: 0; grid-column: 2; grid-row: 1; }
  .hall-aside .aside-body:last-child { grid-column: 2; grid-row: 2; }
}

@media (max-width: 860px) {
  .masthead { gap: 14px; }
  .masthead-nav a { display: none; }
  .masthead-nav { gap: 16px; }

  .hall-grid { grid-template-columns: 1fr; gap: 28px; }
  .hall-lead { padding-top: 0; }
  .hall-sub { margin-top: 18px; }
  .hall-beta { margin-top: 18px; }
  .arch-wrap { width: 100%; max-width: 440px; margin: 0 auto; }
  .arch { min-height: 480px; }
  .hall { min-height: 0; padding-bottom: 190px; }
  .hall-score { top: auto; bottom: -110px; }

  .bars { grid-template-columns: 1fr; row-gap: 44px; margin-top: 44px; }
  .fit-cols, .terms { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  :root { --t-body: 1.0625rem; --t-h2: 1.75rem; }
  .masthead { padding-top: 10px; padding-bottom: 10px; }
  .masthead-beta { font-size: 0.9375rem; padding-left: 12px; }
  .brand-rest { font-size: 1.5rem; }
  .brand-t { width: 26px; height: 29px; }
  .masthead-nav .account-signin { padding: 4px 12px; }

  h1 { font-size: 2.625rem; }
  .h1-line--answer { padding-left: 0.6em; }
  .hall { padding-top: 32px; }
  .hall-sub { font-size: 1.125rem; }
  .hall-aside { grid-template-columns: 1fr; row-gap: 0; }
  .aside-head--no { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .hall-aside .aside-body:last-child { grid-column: 1; grid-row: auto; }

  .arch-wrap { padding: 8px; }
  .arch { min-height: 400px; padding: 0 20px 26px; }
  .drop-page { width: 48px; height: 62px; margin-bottom: 8px; }
  .hall-sub { margin-top: 14px; }
  .hall-beta { margin-top: 14px; padding-top: 12px; }
  .panel--idle { padding: 14px; }
  .drop { padding: 0 14px 28px; }
  .drop-title { font-size: 1.625rem; }
  .panel-title { font-size: 1.5rem; }
  .modal { padding: 30px 22px 24px; }
  .foot-domain { margin-left: 0; }
}

@media (max-width: 360px) {
  .masthead { gap: 8px; }
  .masthead-beta { padding-left: 8px; font-size: .8125rem; }
  .masthead-nav { gap: 8px; }
  .masthead-nav .account-signin { padding-left: 8px; padding-right: 8px; white-space: nowrap; }
}


/* Real request and account states keep the prototype's materials and scale. */
[hidden] { display: none !important; }
.svg-defs { position: absolute; }
button:disabled { cursor: wait; opacity: .65; }
.link-button:disabled { cursor: default; }
.account { position: relative; }
.account-menu {
  position: absolute; right: 0; top: calc(100% + 14px); z-index: 30;
  display: flex; flex-direction: column; gap: 14px; min-width: 205px; max-width: calc(100vw - 40px);
  padding: 20px; border-top: 3px solid var(--brass); border-radius: var(--radius-s);
  color: var(--ink); background: var(--vellum); box-shadow: 0 12px 32px rgba(0,0,0,.2);
}
.account-menu .link-button { text-align: left; }
.account-email { font-size: 1rem; overflow-wrap: anywhere; color: var(--ink-soft); }
.btn--google {
  background: #fff; color: #1f1f1f; border: 1px solid #747775;
  font-family: "Roboto", Arial, sans-serif; font-weight: 500; font-size: 1rem;
  padding-left: 12px; padding-right: 12px; gap: 10px; letter-spacing: 0;
}
.btn--google svg { width: 20px; height: 20px; }
.btn--google:hover { background: #f8f9fa; }
.signin-error { margin: 12px 0 0; }
.code-help { margin-top: 14px; font-size: .9375rem; }
.modal--scores { width: min(620px, calc(100vw - 32px)); }
.scores-list { margin-bottom: 20px; }
.scores-list .file { margin-bottom: 10px; }
.scores-list .file-pages { font-size: .9375rem; }
.scores-list .icon-button { min-width: 40px; min-height: 40px; }
.modal--scores > .field-error { margin-top: 0; }
.panel--received { padding-top: 165px; }
.panel--received .sigil { width: 52px; margin-bottom: 0; }
.panel--received .panel-body { font-size: 1rem; }
[data-received-email] { overflow-wrap: anywhere; }
.panel--received .field-error { margin: 0; }
.panel--selected, .panel--failed { padding-top: 165px; }
.panel-title:focus { outline: none; }
.file-in { font-size: 1rem; }
.notice {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 12px 12px 18px; background: var(--vellum); color: var(--ink);
  border-left: 3px solid var(--brass); box-shadow: 0 8px 32px rgba(0,0,0,.24); font-size: 1rem;
}
.notice .icon-button { flex: none; }
.noscript { padding: 20px var(--gutter); background: var(--vellum-deep); }
.document-main { max-width: 860px; margin: 0 auto; padding: 64px var(--gutter) 88px; }
.document-main h1 { color: var(--ink); font-size: clamp(2.5rem, 5vw, 3.5rem); }
.document-main h2 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; line-height: 1.2; margin-top: 38px; }
.document-main p, .document-main ul { margin-top: 16px; }
.document-main li { margin-top: 10px; }
.document-main .document-date { color: var(--ink-soft); font-size: 1rem; }
.document-main a { text-underline-offset: 3px; }
.document-main h1 + .document-date { margin-top: 14px; }
.simple-page { min-height: 100vh; display: flex; flex-direction: column; }
.simple-page main { flex: 1; }
.empty-hall { background: var(--myrtle-deep); padding: 70px var(--gutter) 100px; }
.empty-hall .arch-wrap { max-width: 440px; margin: 0 auto; }
.empty-hall .arch { min-height: 450px; align-items: center; gap: 28px; text-align: center; }
.empty-hall h1 { color: var(--ink); font-size: 2.25rem; }
.empty-hall .panel-note { font-size: 1.125rem; }
@media (max-width: 560px) {
  .panel--received { padding-top: 125px; }
  .panel--selected, .panel--failed { padding-top: 125px; }
  .document-main { padding-top: 40px; padding-bottom: 60px; }
  .empty-hall { padding-top: 40px; padding-bottom: 60px; }
  .empty-hall .arch { min-height: 380px; }
}
