/* HolyMake — shared stylesheet
   Dark editorial studio site. Static HTML, one CSS file, no JS. */

/* ---------------------------------------------------------------- tokens */

:root {
  color-scheme: dark;

  /* surface */
  --bg:          #0e0e0e;
  --bg-raised:   #161616;
  --line:        rgba(255, 255, 255, 0.10);
  --line-soft:   rgba(255, 255, 255, 0.06);

  /* ink */
  --ink:         #f2f2f0;
  --ink-2:       #c9c9c4;
  --ink-muted:   #8f8f8a;
  --ink-faint:   #85857f;

  /* the one accent, used sparingly */
  --accent:      #ffee00;

  /* type */
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  /* measure */
  --wrap: 62rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

/* ------------------------------------------------------------- baseline */

*,
*::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 {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection {
  background: var(--accent);
  color: #0e0e0e;
}

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

:focus:not(:focus-visible) { outline: none; }

img { max-width: 100%; height: auto; display: block; }

/* --------------------------------------------------------------- layout */

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 0.9rem;
  background: rgba(14, 14, 14, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar { background: var(--bg); }
}

.topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
}

.topbar-inner > .wordmark { grid-column: 1; justify-self: start; }
.topbar-inner > .pillnav  { grid-column: 2; justify-self: center; }

/* Logo lockup (hand-drawn mark that already reads "HOLY MAKE") */
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 180ms ease;
}

.wordmark img {
  width: auto;
  height: clamp(2.125rem, 1.7rem + 1.9vw, 2.75rem);
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .wordmark:hover { opacity: 0.72; }
}

/* -------------------------------------------------------- top pill nav */

.pillnav { max-width: 100%; }

.pillnav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3125rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.pillnav a {
  display: block;
  padding: 0.4375rem 0.95rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease,
              transform 160ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .pillnav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.07);
  }
}

.pillnav a:active { transform: scale(0.97); }

.pillnav a[aria-current="page"] {
  background: var(--accent);
  color: #0e0e0e;
}

@media (hover: hover) and (pointer: fine) {
  .pillnav a[aria-current="page"]:hover {
    background: var(--accent);
    color: #0e0e0e;
  }
}

@media (max-width: 26rem) {
  .pillnav a { padding-inline: 0.7rem; font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pillnav a { transition: color 180ms ease, background-color 180ms ease; }
  .pillnav a:active { transform: none; }
}

/* ---------------------------------------------------------- typography */

/* The signature move: one large sentence, subject emphasised. */
.statement {
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.028em;
  color: var(--ink-muted);
  max-width: 20ch;
  text-wrap: pretty;
}

.statement em,
.statement strong,
.statement .subject {
  font-style: normal;
  font-weight: 500;
  color: var(--accent);
}

.headline {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.subhead {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.4;
  color: var(--ink);
}

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.prose p {
  max-width: 65ch;
  color: var(--ink-muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.prose p + p { margin-top: 1.15em; }

.prose strong {
  color: var(--ink-2);
  font-weight: 500;
}

.small {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-faint);
}

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

a { color: inherit; }

.link {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .link:hover {
    color: var(--ink);
    text-decoration-color: var(--accent);
  }
}

/* Row of small underlined links under the hero */
.inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem clamp(1.5rem, 5vw, 3rem);
  font-size: 0.9375rem;
}

.inline-links .label { margin-right: -0.5rem; }

/* Big standalone email link */
.link-lg {
  display: inline-block;
  font-size: clamp(1.375rem, 1rem + 1.7vw, 2.125rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-bottom: 0.1em;
  overflow-wrap: anywhere;
}

.link-lg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: background-color 200ms ease, transform 260ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .link-lg:hover::after { background: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .link-lg::after { transition: none; }
}

/* Arrow CTA */
.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line);
  transition: border-color 200ms ease;
}

.cta .arrow {
  display: inline-block;
  transition: transform 240ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .cta:hover { border-color: var(--accent); }
  .cta:hover .arrow { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .cta .arrow { transition: none; }
}

/* ----------------------------------------------------------------- main */

main { flex: 1 0 auto; }

.hero {
  position: relative;
  padding-block: clamp(4.5rem, 14vw, 9rem) clamp(3rem, 8vw, 5rem);
}

.hero > .wrap { position: relative; z-index: 1; }

.hero .inline-links { margin-top: clamp(2.25rem, 6vw, 3.25rem); }

/* Oversized brand mark, recoloured yellow and cropped against the edge.
   Uses the existing logo as a mask, so there is no second asset to ship. */
.markart {
  display: none;
  position: absolute;
  top: 50%;
  right: calc(-1 * clamp(3.75rem, 9vw, 9.375rem));
  transform: translateY(-50%);
  width: clamp(16rem, 34vw, 28.75rem);
  aspect-ratio: 604 / 557;
  background-color: var(--accent);
  -webkit-mask-image: url("/assets/logo.png");
          mask-image: url("/assets/logo.png");
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  pointer-events: none;
  z-index: 0;
}

/* Only render where masking is supported, and only where there is room
   beside the statement. Otherwise it simply does not exist. */
@supports ((-webkit-mask-image: url("/assets/logo.png")) or (mask-image: url("/assets/logo.png"))) {
  @media (min-width: 64rem) {
    .markart { display: block; }
  }
}

/* ------------------------------------------------------------- artwork */

/* Hero backdrop. The art sits in its own layer with a dimming wash on top,
   so the statement always reads against near-solid background. */
.hero--art { overflow: hidden; }

.hero--art > .art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--bg);
  background-image: url("/assets/art-hero.jpg");
  background-image: image-set(url("/assets/art-hero.webp") type("image/webp"),
                              url("/assets/art-hero.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  pointer-events: none;
}

.hero--art > .art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(14, 14, 14, 0) 50%, rgba(14, 14, 14, 1) 100%),
    linear-gradient(to right,
      rgba(14, 14, 14, 0.97) 0%,
      rgba(14, 14, 14, 0.87) 46%,
      rgba(14, 14, 14, 0.32) 80%,
      rgba(14, 14, 14, 0.04) 100%);
}

/* On narrow screens the streak would sit under the text, so wash it back. */
@media (max-width: 48rem) {
  .hero--art > .art { background-position: 72% center; }

  .hero--art > .art::after {
    background: linear-gradient(to bottom,
      rgba(14, 14, 14, 0.90) 0%,
      rgba(14, 14, 14, 0.74) 45%,
      rgba(14, 14, 14, 1) 100%);
  }
}

/* Full-bleed artwork strip used as a section break. Decorative only. */
.band {
  position: relative;
  height: clamp(6rem, 12vw, 9rem);
  background-color: var(--bg);
  background-image: url("/assets/art-band.jpg");
  background-image: image-set(url("/assets/art-band.webp") type("image/webp"),
                              url("/assets/art-band.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Bleed the strip back into the page at both ends and take the heat out
   of it, so it reads as a light leak rather than a highlighter stripe. */
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(14, 14, 14, 1) 0%,
      rgba(14, 14, 14, 0) 20%,
      rgba(14, 14, 14, 0) 80%,
      rgba(14, 14, 14, 1) 100%),
    linear-gradient(to bottom,
      rgba(14, 14, 14, 0.42) 0%,
      rgba(14, 14, 14, 0.18) 50%,
      rgba(14, 14, 14, 0.42) 100%);
}

.section {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(2.75rem, 7vw, 4.5rem);
}

/* Editorial two-column row */
.row {
  display: grid;
  gap: 1rem 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .row {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 0 3rem;
  }
}

.row-label { padding-top: 0.3rem; }
.row-body > * + * { margin-top: 1.5rem; }

/* Practice areas / definition-style items */
.items { display: grid; gap: 0; }

.item {
  padding-block: 1.35rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.3rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .item {
    grid-template-columns: 13rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.item:last-child { border-bottom: 1px solid var(--line-soft); }

.item p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

/* Numbered principles */
.principles { display: grid; gap: 0; }

.principle {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.3rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .principle { grid-template-columns: 3rem minmax(0, 1fr); }
}

.principle:last-child { border-bottom: 1px solid var(--line-soft); }

.principle .num {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  padding-top: 0.4rem;
}

.principle p {
  margin: 0.35rem 0 0;
  color: var(--ink-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

/* People */
.people { display: grid; gap: 0; }

.person {
  padding-block: 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.person:last-child { border-bottom: 1px solid var(--line-soft); }

.person-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
  margin-bottom: 0.55rem;
}

.person-role {
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.person p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 58ch;
  text-wrap: pretty;
}

/* Facts */
.facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  overflow: hidden;
}

@media (min-width: 30rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.fact {
  background: var(--bg);
  padding: 1.3rem 1.25rem 1.4rem;
}

.fact dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.fact dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.011em;
  line-height: 1.4;
  color: var(--ink);
}

/* Legal / address card */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.card dl {
  display: grid;
  gap: 0.85rem 2rem;
  grid-template-columns: 1fr;
  margin: 0;
}

@media (min-width: 34rem) {
  .card dl { grid-template-columns: 8rem minmax(0, 1fr); }
}

.card dt {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 0.18rem;
}

.card dd,
.card address {
  margin: 0;
  color: var(--ink-2);
  font-style: normal;
  line-height: 1.6;
}

/* Contact reasons */
.reasons { display: grid; gap: 0; }

.reason {
  padding-block: 1.15rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.25rem 2.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 40rem) {
  .reason {
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: baseline;
  }
}

.reason:last-child { border-bottom: 1px solid var(--line-soft); }

.reason p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* Closing CTA band */
.closing {
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.closing .headline { max-width: 22ch; }
.closing .cta { margin-top: 1.5rem; }

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 2.25rem 2.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 1.75rem 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; }
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
}

.footer-nav a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover { color: var(--ink); }
}

.footer-legal {
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--ink-faint);
  font-style: normal;
  max-width: 52ch;
}

.footer-legal .sep {
  color: rgba(255, 255, 255, 0.22);
  padding-inline: 0.2em;
}

/* ------------------------------------------------------- entrance fade */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(6px);
    animation: reveal 640ms var(--ease-out) forwards;
  }

  .reveal:nth-child(2) { animation-delay: 80ms; }
  .reveal:nth-child(3) { animation-delay: 160ms; }
  .reveal:nth-child(4) { animation-delay: 240ms; }

  @keyframes reveal {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------------------------------------------------------- utilities */

.stack-sm > * + * { margin-top: 0.75rem; }
.stack   > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: 2.5rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
