/* ==========================================================================
   Inkwell Inspiration, LLC — site stylesheet
   No external fonts, no trackers. Display font is self-hosted
   (Instrument Serif, SIL Open Font License, see fonts/OFL.txt).
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1E2A4A;           /* brand accent: ink blue */
  --ink-deep: #141C33;
  --ink-night: #0F1628;
  --ivory: #F8F6F1;
  --paper: #FFFFFF;
  --text: #1A2033;
  --muted: #5E6577;
  --faint: #8C91A0;
  --line: rgba(30, 42, 74, 0.14);
  --line-strong: rgba(30, 42, 74, 0.28);
  --on-dark: #FFFFFF;
  --on-dark-muted: #A9B2C8;
  --on-dark-faint: #7883A0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --maxw: 1240px;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --grain: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

::selection { background: var(--ink); color: #fff; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink-deep);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(3.4rem, 8.4vw, 7.6rem); line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); }
h3 { font-size: 1.95rem; letter-spacing: -0.005em; }
em { font-style: italic; }

p { margin: 0 0 1.1em; }

a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink-deep); }
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--ink);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Dark surfaces (hero, title band, band, footer) ---------- */
.dark {
  position: relative;
  color: var(--on-dark-muted);
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.dark::after {
  /* film grain */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.dark h1, .dark h2, .dark h3 { color: var(--on-dark); }
.dark a { color: var(--on-dark); }

/* ---------- Header (sits on the dark hero) ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  color: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 96px;
  border-bottom: 1px solid var(--line-dark);
}
.logo { display: inline-flex; text-decoration: none; }
.logo svg { display: block; height: 30px; width: auto; }

.header-right { display: flex; align-items: center; gap: 44px; }
.site-nav ul { list-style: none; display: flex; gap: 36px; margin: 0; padding: 0; }
.site-nav a,
.header-cta {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 11px 20px;
  border-radius: 2px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.header-cta:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 520px at 88% 38%, rgba(118, 138, 196, 0.22), transparent 65%),
    radial-gradient(700px 420px at 0% 100%, rgba(10, 14, 28, 0.55), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  padding: 220px 0 0;
}
.hero-art {
  position: absolute;
  z-index: -1;
  right: -160px;
  top: 50%;
  width: 760px;
  height: 760px;
  transform: translateY(-46%);
  pointer-events: none;
}
.hero-art svg { width: 100%; height: 100%; display: block; }

.kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin: 0 0 40px;
}
.kicker .sep { width: 36px; height: 1px; background: currentColor; opacity: 0.5; }

.hero h1 { max-width: 9.2em; margin-bottom: 56px; }
.hero h1 em {
  display: block;
  color: #C9D1E4;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px 80px;
  max-width: 980px;
}
.lead {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.65;
  color: var(--on-dark-muted);
  max-width: 30em;
  margin: 0;
}
.hero-actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 28px;
  border-radius: 2px;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.dark .btn-light,
.btn-light { background: #fff; color: var(--ink); }
.dark .btn-light:hover,
.btn-light:hover { background: var(--ivory); color: var(--ink-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-deep); color: #fff; }

.text-link {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
}
.text-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
  transition: opacity 0.3s var(--ease);
}
.text-link:hover::after { opacity: 1; }

.hero-index {
  list-style: none;
  margin: 120px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}
.hero-index li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 28px 24px 34px 0;
  color: #DCE1EC;
  font-size: 0.95rem;
}
.hero-index li + li { padding-left: 28px; border-left: 1px solid var(--line-dark); }
.num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--on-dark-faint);
}

/* ---------- Section scaffolding ---------- */
section { padding: 150px 0; }
.bg-ivory { background: var(--ivory); }

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 48px;
}
.section-label .num { color: var(--ink); font-size: 1.2rem; letter-spacing: 0; text-transform: none; }
.section-label::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--line-strong);
}
.dark .section-label { color: var(--on-dark-muted); }
.dark .section-label .num { color: var(--on-dark-faint); }
.dark .section-label::after { background: var(--line-dark); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 96px;
}
.about-grid h2 { grid-column: 1 / -1; max-width: 17em; margin-bottom: 40px; }
.about-grid h2 em { color: var(--ink); }
.about-grid p { color: var(--muted); font-size: 1.1rem; line-height: 1.8; }

.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px 0 0;
  border-top: 1px solid var(--line-strong);
}
.facts div { padding: 26px 24px 0 0; }
.facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.facts dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.facts dd { margin: 0; font-family: var(--serif); font-size: 1.65rem; color: var(--ink-deep); line-height: 1.3; }

/* ---------- Services ---------- */
.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 96px;
  align-items: end;
  margin-bottom: 80px;
}
.services-head h2 { margin: 0; }
.services-head p { color: var(--muted); font-size: 1.1rem; max-width: 28em; margin: 0; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 40px 56px 0;
}
.service + .service { padding-left: 40px; border-left: 1px solid var(--line); }
.service::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 72px;
}
.service-icon { width: 40px; height: 40px; color: var(--ink); }
.service .num { color: var(--faint); font-size: 1.3rem; }
.service h3 { margin-bottom: 16px; }
.service p { color: var(--muted); margin-bottom: 32px; }
.tags {
  list-style: none;
  margin: auto 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  padding: 6px 10px;
  border-radius: 2px;
}

/* ---------- Focus band ---------- */
.band {
  padding: 140px 0;
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(118, 138, 196, 0.18), transparent 70%),
    var(--ink-deep);
}
.band p.statement {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 19em;
  margin: 0;
}
.band p.statement em { color: #C9D1E4; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px 96px;
  align-items: start;
}
.contact-grid h2 { margin-bottom: 24px; }
.contact-grid .intro { color: var(--muted); font-size: 1.1rem; max-width: 24em; margin-bottom: 40px; }

.contact-dl { margin: 0; border-top: 1px solid var(--line-strong); }
.contact-dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.contact-dl dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.contact-dl dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  line-height: 1.2;
  color: var(--ink-deep);
  overflow-wrap: break-word;
}
.contact-dl a {
  color: var(--ink-deep);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.5s var(--ease), color 0.3s var(--ease);
}
.contact-dl a:hover { background-size: 0 1px; background-position: 100% 100%; color: var(--ink); }

/* ---------- Legal pages ---------- */
.page-hero {
  background:
    radial-gradient(800px 420px at 90% 20%, rgba(118, 138, 196, 0.2), transparent 65%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
  padding: 210px 0 96px;
}
.page-hero h1 { font-size: clamp(3.2rem, 7vw, 6rem); margin-bottom: 20px; }
.page-hero .updated { margin: 0; font-size: 0.95rem; color: var(--on-dark-muted); }

.legal-page { padding: 104px 0 150px; }
.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  gap: 80px;
}
.legal-aside {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  align-self: start;
}
.legal-aside ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.legal-aside a { color: var(--muted); text-decoration: none; }
.legal-aside a:hover,
.legal-aside a[aria-current="page"] { color: var(--ink); }
.legal-aside a[aria-current="page"]::before { content: "— "; }

.prose > p:first-child { font-family: var(--serif); font-size: 1.6rem; line-height: 1.45; color: var(--ink-deep); }
.prose h2 { font-size: 2.1rem; margin: 2.2em 0 0.6em; }
.prose p,
.prose li { color: #3C4355; line-height: 1.8; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.7em; }
.prose li::marker { color: var(--ink); }
.prose strong { color: var(--ink-deep); font-weight: 600; }

.details { margin: 36px 0 8px; border-top: 1px solid var(--line-strong); }
.details dl { margin: 0; }
.details div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.details dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.details dd { margin: 0; font-family: var(--serif); font-size: 1.45rem; color: var(--ink-deep); overflow-wrap: anywhere; }
.prose .address-block {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.45;
  color: var(--ink-deep);
  border-left: 1px solid var(--ink);
  padding-left: 24px;
}

/* ---------- 404 ---------- */
.not-found { max-width: 720px; }
.not-found-lead { font-family: var(--serif); font-size: 1.6rem; line-height: 1.45; color: var(--ink-deep); margin-bottom: 28px; }
.not-found-links {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.not-found-links li { border-bottom: 1px solid var(--line); }
.not-found-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--ink-deep);
  text-decoration: none;
  transition: color 0.3s var(--ease), padding-left 0.4s var(--ease);
}
.not-found-links a::after { content: "\2192"; font-family: var(--sans); font-size: 1rem; color: var(--faint); }
.not-found-links a:hover { color: var(--ink); padding-left: 10px; }
.not-found-note { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-night);
  padding: 110px 0 40px;
  font-size: 0.95rem;
}
.site-footer a { text-decoration: none; color: #E2E6EF; transition: color 0.3s var(--ease); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
}
.footer-brand svg { display: block; height: 30px; width: auto; margin-bottom: 24px; }
.footer-brand p { max-width: 26em; margin: 0; }
.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
  margin: 4px 0 22px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-mark {
  font-family: var(--serif);
  font-size: clamp(3rem, 12.4vw, 11.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16);
  margin: 96px 0 0;
  user-select: none;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.85rem;
  color: var(--on-dark-faint);
}
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.hero .kicker,
.hero h1,
.hero-foot,
.hero-index,
.page-hero .container { animation: rise 1.1s var(--ease) both; }
.hero h1 { animation-delay: 0.08s; }
.hero-foot { animation-delay: 0.2s; }
.hero-index { animation-delay: 0.32s; }
.hero-art { animation: fade 2s var(--ease) 0.2s both; }

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  section { padding: 112px 0; }
  .hero-art { opacity: 0.55; right: -300px; }
  .hero-foot { grid-template-columns: 1fr; }
  .about-grid,
  .services-head,
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 0; }
  .service-grid { grid-template-columns: 1fr; border-bottom: 0; }
  .service,
  .service + .service { padding: 44px 0 48px; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .service-top { margin-bottom: 40px; }
  .legal-layout { grid-template-columns: 1fr; gap: 48px; }
  .legal-aside { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .header-inner { flex-direction: column; justify-content: center; gap: 12px; height: 118px; }
  .header-right { gap: 0; }
  .header-cta { display: none; }
  .site-nav ul { gap: 28px; }
  .logo svg { height: 26px; }
  .hero { padding-top: 180px; }
  .kicker { flex-direction: column; align-items: flex-start; gap: 6px; }
  .kicker .sep { display: none; }
  .hero-art { width: 520px; height: 520px; right: -280px; top: 34%; }
  .hero h1 { margin-bottom: 40px; }
  .hero-index { grid-template-columns: 1fr; margin-top: 80px; }
  .hero-index li,
  .hero-index li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .hero-index li:last-child { border-bottom: 0; padding-bottom: 28px; }
  section { padding: 88px 0; }
  .band { padding: 96px 0; }
  .section-label { margin-bottom: 32px; }
  .services-head { margin-bottom: 48px; }
  .facts { grid-template-columns: 1fr; }
  .facts div,
  .facts div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .contact-dl div,
  .details div { grid-template-columns: 1fr; gap: 6px; }
  .page-hero { padding: 170px 0 64px; }
  .legal-page { padding: 64px 0 100px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-mark { margin-top: 64px; }
}
