:root {
  font:
    18px/1.55 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #24332e;
  background: #f7f6f1;
  --gold: #806125;
  --dark: #203e35;
  --line: #dfded4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding-bottom: 90px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: auto;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #28382f;
  text-decoration: none;
}
.brand strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
}
.brand small {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.32em;
}
.mark {
  font:
    2rem Georgia,
    serif;
  color: var(--gold);
  border: 1px solid #b49860;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
}
.subbrand {
  font-size: 0.875rem;
  color: #64695f;
}
main {
  max-width: 940px;
  margin: auto;
  padding: 28px 22px;
  min-height: 65vh;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    2rem/1.15 Georgia,
    serif;
}
h2 {
  font:
    1.45rem/1.2 Georgia,
    serif;
}
h3 {
  font-size: 1.05rem;
}
.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.875rem;
  font-weight: 800;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 3px 10px #2d392c04;
}
.hero {
  background: var(--dark);
  color: #fff;
  padding: 28px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero p:last-child {
  margin-bottom: 0;
  color: #e4e8df;
}
.muted {
  color: #626a61;
  font-size: 0.9rem;
}
.badge {
  display: inline-block;
  border-radius: 100px;
  background: #eee8d9;
  color: #70541c;
  padding: 5px 12px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.success {
  background: #e7f0e8;
  color: #2b5b3c;
}
.warning {
  border-left: 4px solid #a36920;
  background: #fff5e4;
  padding: 16px;
  border-radius: 8px;
}
.error {
  border-left: 4px solid #a43c31;
  background: #fff0ed;
  padding: 16px;
  border-radius: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.grid > .card {
  margin: 0;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
form {
  max-width: 600px;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 650;
  margin: 14px 0 6px;
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  border: 1px solid #aab2a8;
  background: #fff;
  color: #24332e;
  border-radius: 9px;
  padding: 12px;
  min-height: 48px;
}
textarea {
  min-height: 110px;
}
input[type='checkbox'] {
  width: 22px;
  min-height: 22px;
  vertical-align: middle;
}
button,
.button {
  font: inherit;
  font-weight: 650;
  font-size: 0.9rem;
  border: 0;
  border-radius: 9px;
  background: var(--dark);
  color: white;
  padding: 13px 20px;
  min-height: 48px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.secondary {
  background: #efece2;
  color: #3b463d;
}
.danger {
  background: #9a3d31;
}
.link {
  background: transparent;
  color: var(--gold);
  padding: 8px 0;
  text-decoration: underline;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.wide {
  width: 100%;
  margin-top: 18px;
}
a {
  color: #73531c;
}
.timeline {
  border-left: 2px solid #c6b17a;
  padding-left: 20px;
}
.timeline article {
  position: relative;
  padding-bottom: 20px;
}
.timeline article:before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  left: -26px;
  top: 8px;
}
.original {
  white-space: pre-wrap;
  background: #f7f6f1;
  padding: 14px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.notice {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}
.notice:last-child {
  border: 0;
}
#nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  z-index: 5;
  justify-content: center;
  gap: 4px;
}
#nav[hidden] {
  display: none;
}
#nav button {
  background: none;
  color: #556157;
  min-width: 78px;
  max-width: 180px;
  flex: 1;
  font-size: 0.875rem;
  padding: 6px;
}
#nav button.active {
  color: #70551f;
  background: #f5f0e2;
}
#nav span {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 2px;
}
#status:not(:empty) {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  background: #203e35;
  color: white;
  border-radius: 12px;
  padding: 14px 22px;
  max-width: calc(100vw - 24px);
  box-shadow: 0 4px 20px #0002;
}
footer {
  max-width: 940px;
  margin: 20px auto;
  padding: 0 24px;
  color: #657066;
  text-align: center;
  font-size: 0.875rem;
}
.skip {
  position: fixed;
  left: 8px;
  top: -80px;
  z-index: 30;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 8px;
}
:focus-visible {
  outline: 3px solid #b58219;
  outline-offset: 3px;
}
.empty {
  text-align: center;
  color: #5b685e;
  padding: 30px 12px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 0.875rem;
}
code {
  word-break: break-all;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.tight p {
  margin-bottom: 8px;
}
@media (max-width: 520px) {
  :root {
    font-size: 18px;
  }
  header {
    padding: 18px;
  }
  .subbrand {
    max-width: 90px;
    text-align: right;
  }
  main {
    padding: 24px 16px;
  }
  .card {
    padding: 20px;
  }
  h1 {
    font-size: 1.8rem;
  }
  #nav button {
    min-width: 0;
    padding: 6px 2px;
    font-size: 0.875rem;
  }
  .hero {
    padding: 24px;
  }
}

.original-logo {
  width: 114px;
  height: 85px;
  object-fit: contain;
  display: block;
}
/* Functional information remains readable; no remote fonts or compressed labels. */
small,
time,
.badge,
.eyebrow,
.subbrand,
footer,
summary {
  font-size: 0.875rem;
  line-height: 1.6;
}
button,
.button,
a.button {
  min-height: 48px;
}
summary {
  min-height: 44px;
  padding: 10px 0;
}
#nav button {
  min-height: 72px;
  font-size: 0.875rem;
  line-height: 1.35;
  white-space: normal;
}
@media (max-width: 520px) {
  body {
    padding-bottom: 120px;
  }
  #nav button {
    min-height: 72px;
    font-size: 0.875rem;
    line-height: 1.35;
    padding: 10px 5px;
  }
  header {
    gap: 18px;
    flex-wrap: wrap;
  }
  footer {
    font-size: 0.875rem;
  }
}
