/* OmniScope — project page
   Original layout and type system, built for this site specifically
   (not shared or copied from any other site's design).
   Fluid, mobile-first, resolution-independent (rem/clamp — no fixed px
   for type or measure), with a dark palette that follows the OS setting. */

:root {
  --paper: #f3f1ec;
  --ink: #211d18;
  --ink-muted: #6e6255;
  --hairline: #deddce;
  --accent: #7e5219;
  --accent-soft: #f2e4ce;

  --measure: 34rem;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140f;
    --ink: #ede7dc;
    --ink-muted: #a79a87;
    --hairline: #332d24;
    --accent: #d9a55c;
    --accent-soft: #3b2e1a;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

address {
  font-style: normal;
}

/* Centers both axes when the page fits the viewport; degrades to a
   normal top-down, scrollable column once content exceeds it. */
.page {
  width: 100%;
  max-width: var(--measure);
  margin: auto;
  padding-block: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  padding-inline: clamp(1.25rem, 4vw, 1.75rem);
}

/* ---- header / mark ---- */

.mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
}

.mark circle,
.mark line {
  stroke: currentColor;
}

h1 {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.6rem + 2vw, 3.125rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  color: var(--ink-muted);
}

.rule {
  border: 0;
  border-block-start: 1px solid var(--hairline);
  width: 2.5rem;
  margin-block: 2.25rem;
  margin-inline: 0;
}

/* ---- section labels ("About", "Contact") ---- */

h2 {
  margin-block: 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

section + section {
  margin-block-start: 3rem;
}

/* ---- about ---- */

.about p {
  margin: 0;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
}

/* ---- contact ---- */

.contact address {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  line-height: 1.6;
}

.contact p {
  margin: 0;
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
}

/* ---- links ---- */

a {
  color: var(--accent);
  text-decoration-color: var(--hairline);
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

@media (prefers-reduced-motion: no-preference) {
  a {
    transition: text-decoration-color 0.15s ease;
  }
}

a:hover,
a:focus-visible {
  text-decoration-color: var(--accent);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- footer ---- */

footer {
  margin-block-start: 3rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- print ---- */

@media print {
  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .mark {
    color: #000;
  }
}
