/* =========================================================================
   Prism — Web development and design
   Shared stylesheet for the main site (Home, Work, Pricing, About, Contact)
   Plain CSS, mobile-first, no build step.
   ========================================================================= */

/* ----- Design tokens ---------------------------------------------------- */
:root {
  --bg:            #ffffff;
  --bg-tint:       #f5f5f7;
  --text:          #1d1d1f;
  --text-2:        #6e6e73;
  --hairline:      #e5e5e7;
  --accent:        #4b34d6;   /* "spectrum violet" — links + focus only     */
  --accent-press:  #3a28a8;
  --btn:           #1d1d1f;
  --btn-hover:     #000000;

  --font: "Helvetica Neue", Helvetica, -apple-system, BlinkMacSystemFont,
          "Segoe UI", Arial, sans-serif;

  --wrap:      1080px;   /* max content width            */
  --wrap-text:  680px;   /* max width for reading blocks  */

  --pad-x:      20px;    /* side padding (mobile)         */
  --section-y:  96px;    /* vertical rhythm (mobile)      */

  --radius: 10px;
}

@media (min-width: 700px) {
  :root {
    --pad-x:     40px;
    --section-y: 160px;
  }
}

/* ----- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-press); }

ul { list-style: none; }

/* ----- Accessibility: focus + reduced motion ------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ----- Layout helpers ----------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); }
.section--tint { background: var(--bg-tint); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.measure { max-width: var(--wrap-text); }

.center { text-align: center; }
.center .measure { margin-inline: auto; }

/* ----- Type scale -------------------------------------------------- */
h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -0.02em; }

.h-hero {
  font-size: clamp(2.5rem, 1.6rem + 3.9vw, 4.75rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.h-page {
  font-size: clamp(2.125rem, 1.6rem + 2.3vw, 3.25rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

h2, .h-section {
  font-size: clamp(1.625rem, 1.3rem + 1.5vw, 2.375rem);
  line-height: 1.14;
}

h3, .h-sub {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--text-2);
  font-weight: 400;
}

.small { font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }

p + p { margin-top: 1em; }
.stack > * + * { margin-top: 1.25rem; }
.stack-lg > * + * { margin-top: 2rem; }

/* Eyebrow label — sentence case, never uppercase */
.eyebrow {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0;
}

/* ----- Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.9rem 1.6rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  color: #fff;
  background: var(--btn);
  border: 1px solid var(--btn);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }

.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--hairline);
}
.btn--ghost:hover { color: var(--text); background: var(--bg-tint); border-color: var(--text-2); }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 500;
  color: var(--accent);
}
.textlink:hover { color: var(--accent-press); }
.textlink .arrow { transition: transform 0.18s ease; }
.textlink:hover .arrow { transform: translateX(3px); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}
@media (max-width: 480px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .cta-row .textlink { justify-content: center; }
}

/* Large email link used as primary CTA on Contact */
.email-xl {
  display: inline-block;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.15em;
  word-break: break-word;
}
.email-xl:hover { color: var(--accent-press); }

/* ----- Header / nav --------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand__mark { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}
.brand__desc {
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-2);
  margin-top: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-2);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after  { transform: translateY(6px); }
.nav__toggle span { position: relative; }

@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    padding: 0.5rem var(--pad-x) 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 0.9rem 0;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--hairline);
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav[data-open="true"] .nav__toggle span { background: transparent; }
  .nav[data-open="true"] .nav__toggle span::before { transform: rotate(45deg); }
  .nav[data-open="true"] .nav__toggle span::after  { transform: rotate(-45deg); }
}

/* ----- Hero ---------------------------------------------------- */
.hero {
  padding-block: clamp(3.5rem, 2rem + 9vw, 8rem);
}
.hero .measure { max-width: 22ch; }
.hero__sub { max-width: 46ch; margin-top: 1.5rem; }
.hero .cta-row { margin-top: 2.5rem; }
.hero__note { margin-top: 1.75rem; color: var(--text-2); font-size: 0.9375rem; max-width: 44ch; }

/* Signature: the light-split graphic (home hero only) */
.lightsplit {
  width: 100%;
  max-width: 520px;
  margin-top: 3.5rem;
  height: auto;
  overflow: visible;
}
@media (prefers-reduced-motion: no-preference) {
  .lightsplit .ray { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .lightsplit .ray { animation: ray-draw 1.4s ease forwards; }
  .lightsplit .ray--2 { animation-delay: 0.15s; }
  .lightsplit .ray--3 { animation-delay: 0.3s; }
  .lightsplit .ray--4 { animation-delay: 0.45s; }
  .lightsplit .ray--5 { animation-delay: 0.6s; }
}
@keyframes ray-draw { to { stroke-dashoffset: 0; } }

/* ----- Generic content blocks -------------------------------- */
.pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-tint);
  border: 1px solid var(--hairline);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* Three plain statements (home "what I do") */
.statements {
  display: grid;
  gap: 3rem;
  margin-top: 3.5rem;
}
@media (min-width: 800px) {
  .statements { grid-template-columns: repeat(3, 1fr); gap: 3rem 2.5rem; }
}
.statement__n {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.statement h3 { margin-bottom: 0.5rem; }
.statement p { color: var(--text-2); font-size: 1rem; }

/* Work / sample cards */
.work-grid {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (min-width: 780px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.work-card { display: block; color: var(--text); }
.work-card:hover { color: var(--text); }
.work-card__frame {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-tint);
  aspect-ratio: 4 / 3;
}
.work-card__frame img { width: 100%; height: 100%; object-fit: cover; }
.work-card__meta { margin-top: 1rem; }
.work-card__label { font-size: 0.8125rem; color: var(--text-2); }
.work-card h3 { margin: 0.15rem 0 0.35rem; }
.work-card__go { font-size: 0.9375rem; color: var(--accent); font-weight: 500; }
.work-card:hover .work-card__go { color: var(--accent-press); }

/* Pricing */
.price-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 820px) {
  .price-grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
.price-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--bg);
}
.price-card--featured {
  border-color: var(--text);
  border-width: 1.5px;
}
.price-card__tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.price-card__amount {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.price-card__amount span { font-size: 1rem; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.price-card h3 { margin: 0.25rem 0 0.75rem; }
.price-card p { color: var(--text-2); font-size: 1rem; }
.price-card ul { margin-top: 1rem; }
.price-card li {
  position: relative;
  padding-left: 1.6rem;
  margin-top: 0.6rem;
  font-size: 1rem;
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.build-fee {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  background: var(--bg-tint);
}
.build-fee__amount { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; }

.extras { margin-top: 3.5rem; }
.extras__list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 620px) {
  .extras__list { grid-template-columns: 1fr 1fr; }
}
.extras__list li {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.extras__list li span { color: var(--text-2); font-size: 0.9375rem; white-space: nowrap; }

/* Contact list */
.bring-list { margin-top: 2rem; }
.bring-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1.0625rem;
  display: flex;
  gap: 0.9rem;
}
.bring-list li:first-child { border-top: 1px solid var(--hairline); }
.bring-list li::before {
  content: "";
  flex-shrink: 0;
  width: 7px; height: 7px;
  margin-top: 0.6em;
  border-radius: 999px;
  background: var(--accent);
}

/* Callout / note box */
.note {
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--text-2);
  max-width: var(--wrap-text);
}

.quote {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 24ch;
}

/* Divider */
.rule { border: 0; border-top: 1px solid var(--hairline); }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .h-section { margin-bottom: 1.5rem; }
.cta-band .measure { margin-inline: auto; }

/* ----- Footer ------------------------------------------------ */
.site-footer {
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg,
      #e0894b 0%, #c24e86 28%, #7a3fb5 52%, #3e5fe0 76%, #46c7e8 100%) 1;
  background: var(--bg);
}
.site-footer__inner {
  padding-block: 3.5rem 1.25rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: start; }
}
.site-footer .brand { margin-bottom: 0.75rem; }
.site-footer p { color: var(--text-2); font-size: 0.9375rem; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.footer-nav a { font-size: 0.9375rem; }
.footer-legal { margin-top: 1rem; padding-bottom: 2.5rem; font-size: 0.8125rem; color: var(--text-2); }
.footer-email { color: var(--text) !important; font-weight: 500; }
