/* MH Digital — one-page site */

:root {
  --ink: #050a18;
  --ink-lift: #0b1330;
  --bone: #eceae2;
  --muted: #8891ad;
  --line: rgba(236, 234, 226, 0.14);
  --line-strong: rgba(236, 234, 226, 0.28);

  --font: "Nunito", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

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

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(115% 80% at 50% 0%, var(--ink-lift) 0%, var(--ink) 62%),
    var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Fine grain over the gradient so the large flat area has texture. */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.frame {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(1.75rem, 4vw, 3rem) var(--gutter);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--bone);
  outline-offset: 4px;
}

/* Brand — a wordmark built from one typeface, split by weight. */
.brand a {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.brand-heavy { font-weight: 900; }
.brand-light { font-weight: 400; color: var(--muted); }

.brand a:hover .brand-light,
.brand a:focus-visible .brand-light {
  color: var(--bone);
  transition: color 160ms ease;
}

/* Stage */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(2rem, 5vh, 4rem) 0;
  width: 100%;
  max-width: 52rem;
}

.quote {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.15rem, 6.6vw, 5.25rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.quote span { display: block; }

/* Drawn underline beneath the closing phrase — a pen gesture, two passes. */
.swash {
  display: block;
  width: clamp(11rem, 24vw + 4rem, 21.5rem);
  height: auto;
  margin: clamp(0.5rem, 1.4vh, 1.1rem) auto 0;
  overflow: visible;
}

.swash-main { stroke: var(--bone); }
.swash-echo { stroke: var(--muted); opacity: 0.8; }

/* Three services, plain lines — not a sequence, so no markers. */
.work {
  list-style: none;
  margin: clamp(2rem, 5vh, 3rem) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem clamp(1.25rem, 3.5vw, 2.5rem);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Contact — the one thing the page exists for. */
.contact {
  margin: clamp(2rem, 5.5vh, 3.25rem) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.contact-lead {
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact a {
  font-weight: 700;
  font-size: clamp(1.3rem, 1.05rem + 1.6vw, 2.35rem);
  letter-spacing: -0.012em;
  text-decoration: none;
  padding-bottom: 0.12em;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 160ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: var(--bone);
}
