/* Facada holding page. The page is drawn as a steel window: one slim outer frame,
   with glazing bars (transom + mullion) that double as the layout dividers. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

:root {
  /* Brand tokens, copied from src/styles/tokens.css */
  --paper: #f5f2ee;
  --ink: #0a0a0a;
  --iron: #4a4a4a;
  --bronze: #8a6a3d;

  --steel: 3px; /* frame + glazing-bar width: the slim sightline */
  --gutter: clamp(16px, 3vw, 32px);
  --pane-pad: clamp(24px, 5vw, 64px);
  color-scheme: light;
}

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

html {
  background: var(--paper);
}

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: var(--gutter);
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.frame {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto auto;
  border: var(--steel) solid var(--ink);
}

.pane {
  padding: var(--pane-pad);
}

.pane--head {
  display: flex;
  align-items: flex-end;
  min-height: 34svh;
}

.wordmark {
  display: block;
  width: min(100%, 720px);
  height: auto;
  /* the SVG's viewBox carries its own margin; pull it flush with the pane edge */
  margin-left: -1.6%;
}

.pane--lead,
.pane--body {
  border-top: var(--steel) solid var(--ink);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-bottom: 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--bronze);
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.125rem, 4.6vw, 3.75rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.pane--body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pane--body p {
  max-width: 44ch;
  color: var(--iron);
  font-size: clamp(1rem, 1.25vw, 1.1875rem);
}

.pane--body p + p {
  margin-top: 1em;
}

.pane--body .note {
  margin-top: 2.25rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.pane--body a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.pane--body a:hover {
  text-decoration-thickness: 2px;
}

.pane--body a:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding-top: 14px;
  color: var(--iron);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@media (min-width: 860px) {
  .frame {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 1fr auto;
  }

  .pane--head {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .pane--body {
    border-left: var(--steel) solid var(--ink);
  }
}
