/* lelandparker.com · layout
   Tokens: tokens.css. Fonts: fonts.css. Square corners, hairlines, one accent. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Asymmetric margins, 4:3 like the print system (1in left, 0.75in right). */
  --m-left: clamp(24px, 8vw, 96px);
  --m-right: clamp(18px, 6vw, 72px);
  --foot-h: var(--sp-8);
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  background: var(--lp-paper);
  color: var(--lp-ink);
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }

/* 3px accent edge bar: the single accent element of the view. */
.edge {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--accent-bar);
  background: var(--lp-accent);
}

/* Ornament field: everything above the footer rule, cropped by the viewport edge. */
.field {
  position: absolute;
  inset: 0 0 var(--foot-h) 0;
  overflow: hidden;
  pointer-events: none;
}
.rosette { display: block; width: 100%; height: 100%; }

.page {
  position: relative;
  padding: var(--sp-8) var(--m-right) 0 var(--m-left);
}
.mark { width: clamp(112px, 12vw, 148px); }
.mark a { display: block; }

/* Footer rule with the scope line. It crops the ornament above it. */
.foot {
  position: absolute;
  inset: auto 0 0 0;
  height: var(--foot-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: 0 var(--m-right) 0 var(--m-left);
  border-top: var(--hairline-w) solid var(--lp-hairline-strong);
  background: var(--lp-paper);
}

.micro {
  font-family: var(--font-sans);
  font-size: var(--type-micro);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-micro);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--lp-ink-2);
}
.micro .dot { padding: 0 0.7em; }

/* Interactive micro-labels: the motion control and the 404 link. */
button.micro, a.micro {
  appearance: none;
  border: 0;
  border-radius: var(--radius);
  background: none;
  margin: 0 calc(var(--sp-2) * -1) 0 0;
  padding: var(--sp-4) var(--sp-2);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--lp-hairline-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}
button.micro:hover, a.micro:hover {
  color: var(--lp-accent-deep);
  text-decoration-color: currentColor;
}
:focus-visible {
  outline: 2px solid var(--lp-ink);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

/* 404 */
.display {
  margin-top: var(--sp-9);
  max-width: 12em;
  font-family: var(--font-serif-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(var(--type-h1), 7vw, var(--type-display));
  line-height: var(--leading-display);
  letter-spacing: -0.01em;
}
