/* ============================================================
   MJ Hosting — editorial / print-inspired system.

   Deliberately avoids the current default landing-page look:
   no dark hero, no blue-violet gradient, no glassmorphism, no
   floating cards with soft shadows. Structure comes from
   hairline rules, numbered sections and type — not boxes.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Warm near-black, deliberately NOT the slate/navy every generated dark hero
     reaches for. Text is a warm off-white, like ink printed on black stock. */
  --paper:    #0E0D0B;   /* the ground */
  --paper-2:  #16140F;   /* tinted band */
  --ink:      #EFEAE0;   /* headings */
  --ink-2:    #C3BBAD;   /* body copy */
  --ink-3:    #8F8676;   /* meta, muted */
  --rule:     rgba(239, 234, 224, .16);
  --rule-2:   rgba(239, 234, 224, .34);

  /* Brass rather than cyan/violet — warm, analog, and nowhere near the
     default gradient palette. */
  --accent:   #C6A15B;
  --accent-2: #E0C48D;

  /* type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1140px;
  --gutter: 32px;
}

* { box-sizing: border-box; }

/* The hidden attribute must beat the display rules further down — a class
   selector in author CSS outranks the UA stylesheet's [hidden]. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--ink);
  line-height: 1.06;
}
h1 em, h2 em, h3 em { font-style: italic; color: var(--accent); }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }

section[id] { scroll-margin-top: 90px; }

.sr-only, .skip-link {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto; margin: 0; clip: auto;
  padding: 10px 16px; z-index: 200;
  background: var(--ink); color: var(--paper); font-weight: 600;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #0E0D0B; }

/* Paper grain. The point of this is texture that reads as made rather than
   generated — it is what a flat digital gradient is not. */
.grain {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── template notice ───────────────────────────────────── */
.notice {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px var(--gutter);
  background: var(--ink); color: var(--paper);
  font-size: .82rem; line-height: 1.45;
}
.notice-tag {
  flex-shrink: 0;
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  padding: 2px 8px; border: 1px solid rgba(14, 13, 11, .38);
}
.notice a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* ── masthead ──────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  transition: border-color .3s ease;
}
.masthead.is-stuck { border-bottom-color: var(--rule-2); }
.masthead-inner { display: flex; align-items: center; gap: 32px; height: 68px; }

.wordmark {
  font-family: var(--mono); font-weight: 500;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--ink); flex-shrink: 0;
}

.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a, .nav-mail {
  position: relative;
  font-family: var(--mono); font-size: .76rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-3);
  transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 1px; background: var(--ink);
  transition: right .28s cubic-bezier(.22,1,.36,1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }
.nav-mail { color: var(--ink); }
.nav-mail:hover { color: var(--accent); }

.burger {
  display: none;
  width: 34px; height: 30px; margin-left: auto;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; align-items: flex-end;
}
.burger span {
  display: block; height: 1px; background: var(--ink);
  transition: width .25s ease, transform .25s ease, opacity .2s ease;
}
.burger span:nth-child(1) { width: 26px; }
.burger span:nth-child(2) { width: 18px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(6deg); }
.burger[aria-expanded="true"] span:nth-child(2) { width: 26px; transform: translateY(-3.5px) rotate(-6deg); }

.mobile-menu {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.mobile-menu a {
  padding: 15px var(--gutter);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-2);
}
.mobile-menu a:last-child { border-bottom: 0; }

/* ── section markers ───────────────────────────────────── */
.marker {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 44px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--ink-3);
}
.marker span { color: var(--accent); }
.marker::after {
  content: ""; flex: 1; height: 1px; background: var(--rule);
}

/* ── opening ───────────────────────────────────────────── */
.opening { padding: clamp(64px, 11vh, 128px) 0 clamp(56px, 9vh, 104px); }

.opening h1 {
  max-width: 15ch;
  font-size: clamp(2.75rem, 7.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -.022em;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.opening-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-top: 34px;
  border-top: 1px solid var(--rule);
}
.standfirst { font-size: 1.1rem; max-width: 46ch; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.facts dt {
  font-family: var(--mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--ink-3); margin-bottom: 6px;
}
.facts dd { font-size: .95rem; color: var(--ink); }

/* ── bands ─────────────────────────────────────────────── */
.band { padding: clamp(64px, 9vw, 116px) 0; border-top: 1px solid var(--rule); }
.band-tint { background: var(--paper-2); }

.band-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  max-width: 20ch; margin-bottom: 18px;
}
.band-lede { max-width: 54ch; color: var(--ink-3); margin-bottom: 56px; }

/* ── numbered entries ──────────────────────────────────── */
.entries { border-top: 1px solid var(--rule); }
.entry {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .3s ease;
}
.entry:hover { background: rgba(239, 234, 224, .03); }
.entry-no {
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  color: var(--accent); padding-top: .45em;
}
.entry h2 { font-size: clamp(1.45rem, 2.3vw, 2rem); }
.entry p { color: var(--ink-3); font-size: .98rem; }

/* ── work list ─────────────────────────────────────────── */
.works { border-top: 1px solid var(--rule); }
.work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 28px; align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.work h2 { font-size: clamp(1.35rem, 2.1vw, 1.8rem); }
.work-note { color: var(--ink-3); font-size: .96rem; }
.work-meta {
  display: flex; gap: 20px;
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3);
}

/* ── pricing ───────────────────────────────────────────── */
.tiers {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-2);
}
.tier {
  display: flex; flex-direction: column;
  padding: 36px 30px 34px;
  border-left: 1px solid var(--rule);
}
.tier:first-child { border-left: 0; padding-left: 0; }
.tier:last-child { padding-right: 0; }

/* Only the lead tier carries a mark, which would drop that whole column by a
   line. Give the label a fixed height and reserve the identical space in the
   other two, so all three headings start on the same line. */
.tier-mark {
  display: block; height: 1.05rem; line-height: 1.05rem;
  margin-bottom: 13px;
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent);
}
.tier:not(.tier-lead)::before {
  content: ""; display: block; height: 1.05rem; margin-bottom: 13px;
}
.tier h3 { font-size: 1.6rem; margin-bottom: 8px; }
.tier-for { font-size: .92rem; color: var(--ink-3); min-height: 3.2em; margin-bottom: 26px; }

.tier-price {
  display: flex; align-items: baseline; gap: 9px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1; color: var(--ink);
  padding-bottom: 26px; margin-bottom: 26px;
  border-bottom: 1px solid var(--rule);
}
.tier-from {
  font-family: var(--mono); font-size: .68rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3);
}
.tier-price-text { color: var(--accent); font-style: italic; }
.tier-lead .tier-price { color: var(--accent); }

.tier-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 30px; }
.tier-list li {
  position: relative; padding-left: 20px;
  font-size: .94rem; color: var(--ink-2);
}
.tier-list li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 9px; height: 1px; background: var(--rule-2);
}

.link-arrow {
  margin-top: auto; align-self: flex-start;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .13em;
  color: var(--ink);
  padding-bottom: 4px; border-bottom: 1px solid var(--rule-2);
  transition: color .2s ease, border-color .2s ease;
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Hosting is a separate recurring cost, so it sits outside the tier columns —
   folding it in would make the build price look bigger than it is. */
.hosting {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  gap: 32px; align-items: baseline;
  margin-top: 48px; padding: 26px 0;
  border-top: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule);
}
.hosting-price {
  font-family: var(--serif); font-size: 1.7rem; color: var(--ink); white-space: nowrap;
}
.hosting-price strong { font-weight: 400; color: var(--accent); }
.hosting-note { font-size: .94rem; color: var(--ink-3); max-width: 58ch; }

.pricing-foot {
  margin-top: 22px;
  font-family: var(--mono); font-size: .76rem;
  letter-spacing: .04em; color: var(--ink-3);
}

/* ── split / approach ──────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.split-right p { margin-bottom: 20px; max-width: 58ch; }
.split-right p:last-child { margin-bottom: 0; }

/* A drop cap is a print convention no generator reaches for by default. */
.drop::first-letter {
  float: left;
  font-family: var(--serif); font-size: 3.3em;
  line-height: .82; padding: .06em .12em 0 0;
  color: var(--ink);
}

/* ── quotes ────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.quote { margin: 0; padding-top: 26px; border-top: 1px solid var(--rule-2); }
.quote blockquote {
  margin: 0 0 22px;
  font-family: var(--serif); font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.35; color: var(--ink);
}
.quote figcaption {
  font-family: var(--mono); font-size: .72rem;
  text-transform: uppercase; letter-spacing: .13em; color: var(--ink);
}
.quote figcaption span { display: block; margin-top: 5px; color: var(--ink-3); letter-spacing: .1em; }

/* ── faq ───────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--rule-2); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative;
  display: block; padding: 22px 48px 22px 0;
  font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  color: var(--ink); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.15rem; color: var(--accent);
  transition: transform .25s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 48px 24px 0; }
.faq-body p { color: var(--ink-3); font-size: .98rem; max-width: 64ch; }

/* ── closing ───────────────────────────────────────────── */
.closing { padding-bottom: clamp(72px, 10vw, 128px); }
.closing-title { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 16ch; margin-bottom: 20px; }
.closing-lede { max-width: 48ch; color: var(--ink-3); margin-bottom: 44px; }

.contact-form {
  display: flex; align-items: stretch; gap: 0;
  max-width: 520px;
  border-bottom: 1px solid var(--ink);
}
.contact-form input {
  flex: 1; min-width: 0;
  padding: 14px 4px;
  background: none; border: 0;
  font-family: var(--sans); font-size: 1.02rem; color: var(--ink);
}
.contact-form input::placeholder { color: var(--ink-3); }
.contact-form input:focus { outline: none; }
.contact-form input[aria-invalid="true"] { color: #E38B7F; }
.contact-form button {
  flex-shrink: 0;
  padding: 14px 0 14px 20px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .13em; color: var(--ink);
  transition: color .2s ease;
}
.contact-form button:hover { color: var(--accent); }

.form-status { min-height: 1.5em; margin-top: 14px; font-size: .9rem; color: var(--accent); }
.form-status.is-error { color: #E38B7F; }
.closing-alt { margin-top: 16px; font-size: .92rem; color: var(--ink-3); }
.closing-alt a { color: var(--ink); border-bottom: 1px solid var(--rule-2); }
.closing-alt a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ── colophon ──────────────────────────────────────────── */
.colophon { border-top: 1px solid var(--ink); padding: 30px 0 44px; }
.colophon-inner { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: baseline; }
.colophon-mark {
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em; color: var(--ink);
  margin-right: auto;
}
.colophon-meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--ink-3); }

/* ── reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(10px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1000px) {
  .entry { grid-template-columns: 3rem minmax(0, 1fr); gap: 20px; }
  .entry p { grid-column: 2; }
  .work { grid-template-columns: minmax(0, 1fr) auto; }
  .work-note { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; border-top: 0; }
  .tier { border-left: 0; border-top: 1px solid var(--rule-2); padding: 30px 0; }
  .tier-for { min-height: 0; }
  .hosting { grid-template-columns: 1fr; gap: 10px; }
  .quotes { grid-template-columns: 1fr; }
  .opening-foot { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-mail { display: none; }
  .burger { display: flex; }
  .notice { flex-direction: column; gap: 7px; }
}

@media (max-width: 560px) {
  :root { --gutter: 22px; }
  .opening h1 { max-width: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .entry { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 14px; }
  .contact-form { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .notice, .masthead, .grain, .contact-form { display: none; }
  body { background: #fff; color: #000; }
}
