/* War Kings Tattoo — the threshold.
   Tokens (design/DESIGN.md §4): page #0D0C0F, door #161419,
   bone #EDE7DB, brass #C9A24B, muted #A79E8E. All pairs ≥ 4.5:1. */

:root {
  --page: #0D0C0F;
  --door: #161419;
  --bone: #EDE7DB;
  --brass: #C9A24B;
  --muted: #A79E8E;
  --mould-strong: rgba(237, 231, 219, 0.28);
  --mould-soft: rgba(237, 231, 219, 0.16);
  --hair: rgba(237, 231, 219, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --serif: ui-serif, Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--page);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass); }
a:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 0;
  z-index: 40;
  padding: 10px 16px;
  background: var(--brass);
  color: var(--door);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-110%);
  transition: transform 160ms ease-out;
}
.skip:focus { transform: translateY(8px); }

/* Header — house furniture, on the page ground. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 8px 24px;
  background: var(--page);
  border-bottom: 1px solid var(--hair);
}
.wordmark {
  color: var(--bone);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  padding: 10px 0;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-link {
  color: var(--bone);
  text-decoration: none;
  padding: 10px 0;
}
.header-dir {
  display: none;
  color: var(--bone);
  padding: 10px 0;
}
.header-call {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  background: var(--brass);
  color: var(--door);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}
.header-call.pill-quiet {
  background: transparent;
  color: var(--brass);
}

/* The door. */
.door {
  background: var(--door);
  padding: 16px;
  min-height: calc(100svh - 60px);
  display: flex;
  border-bottom: 2px solid var(--brass);
}
.door-inner {
  flex: 1 1 auto;
  max-width: 1240px;
  margin: 0 auto;
  border: 1px solid var(--mould-strong);
  padding: clamp(28px, 4.5vw, 56px);
  animation: settle 450ms ease-out;
}
@keyframes settle {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.kind {
  margin: 0 0 16px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.98;
}
.name-main {
  display: block;
  font-size: clamp(34px, 9.5vw, 132px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55),
    0 -1px 0 rgba(237, 231, 219, 0.14);
}
.name-sub {
  display: block;
  margin-top: 14px;
  color: var(--brass);
  font-size: clamp(20px, 3.4vw, 34px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.door-cols {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 4.5vw, 64px);
  margin-top: clamp(28px, 3.5vw, 48px);
  align-items: start;
}

.panel {
  margin: 0;
  border: 1px solid var(--brass);
  padding: 8px;
}
.panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 42%;
}

.door-work { min-width: 0; }

.plate {
  border: 1px solid var(--brass);
  padding: 24px 28px;
}
.plate-label {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.plate-rule {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 600;
  line-height: 1.25;
}

.lead {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 19px;
  max-width: 34ch;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 32px;
}
.call {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--door);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: transform 120ms ease-out;
}
.call:active { transform: scale(0.98); }
.dir {
  color: var(--bone);
  font-weight: 600;
  padding: 12px 0;
}

.address { margin-top: 48px; }
.label {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.address-lines {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.2;
}

/* Footer — plain lines on the page ground. */
.site-footer {
  padding: 48px 24px 64px;
  text-align: left;
}
.site-footer p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer .foot-name {
  color: var(--bone);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}
.site-footer a {
  color: var(--muted);
  padding: 12px 0;
  display: inline-block;
  min-height: 44px;
}

/* Desktop: the working column spans the panel's full
   height — plate at its head, address at its foot. */
@media (min-width: 761px) {
  .door-cols { align-items: stretch; }
  .door-work {
    display: flex;
    flex-direction: column;
  }
  .plate { width: fit-content; max-width: 100%; }
  .address { margin-top: auto; padding-top: 48px; }
}

/* Phone bar. */
.bar { display: none; }

@media (max-width: 760px) {
  .site-header { padding: 8px 16px; }
  .header-link, .header-call { display: none; }
  .header-dir { display: inline-block; }
  .door { padding: 14px; }
  .door-inner { padding: 28px 22px 36px; }
  /* The phone stack is re-earned, not inherited: name,
     rule, the way through, panel, address. */
  .door-inner { display: flex; flex-direction: column; }
  .door-cols, .door-work { display: contents; }
  .kind { order: 0; }
  .name { order: 1; }
  .plate { order: 2; margin-top: 28px; }
  .lead { order: 3; }
  .actions { order: 4; }
  .panel { order: 5; margin-top: 36px; }
  .address { order: 6; margin-top: 40px; }
  .panel img { aspect-ratio: 16 / 11; object-position: 50% 40%; }
  .site-footer { padding-bottom: 120px; }
  .bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: var(--page);
    border-top: 1px solid var(--hair);
    transition: transform 240ms ease-out, opacity 240ms ease-out;
  }
  .bar.bar-aside {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }
  .bar-call {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--brass);
    color: var(--door);
    font-weight: 800;
    text-decoration: none;
  }
  .bar-dir {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    border: 1px solid var(--brass);
    border-radius: 999px;
    color: var(--brass);
    font-weight: 600;
    text-decoration: none;
  }
}

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