/* Hyde Solutions LLC — shared styles
   Palette: bookcloth green, uncoated paper, antique foil gold
   Type: Bodoni Moda (display) + Karla (text) */

:root {
  --ink: #16231e;
  --cloth: #24483c;
  --cloth-deep: #112722;
  --paper: #eff1ec;
  --card: #ffffff;
  --foil: #b98a2e;
  --foil-light: #d9b15e;
  --muted: #5c6c64;
  --rule: rgba(22, 35, 30, 0.16);
  --rule-strong: rgba(22, 35, 30, 0.34);
  --rule-light: rgba(239, 241, 236, 0.24);
  --max: 1120px;
  --serif: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 1.7rem + 3.9vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 1.4rem + 2.1vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.12rem + 0.6vw, 1.55rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  max-width: 54ch;
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section-tight { padding-block: clamp(48px, 6vw, 76px); }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--foil);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 50;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- Masthead ---------- */

.masthead {
  background: var(--cloth-deep);
  color: var(--paper);
  border-bottom: 1px solid var(--rule-light);
}

.masthead-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-block: 18px;
}

.brand { text-decoration: none; display: inline-block; line-height: 1.1; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  display: block;
}
.brand-sub {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--foil-light);
  display: block;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 0.97rem;
}
.nav a { text-decoration: none; padding: 6px 0; }
.nav a:not(.btn):hover { color: var(--foil-light); }
.nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 0 var(--foil-light);
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.97rem;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-foil { background: var(--foil); color: var(--ink); }
.btn-foil:hover { background: var(--foil-light); }
.btn-outline { border-color: currentColor; color: inherit; }
.btn-outline:hover { background: rgba(217, 177, 94, 0.16); }
.btn-ink { background: var(--cloth); color: var(--paper); }
.btn-ink:hover { background: var(--cloth-deep); }

.nav .btn { padding: 10px 18px; }

/* ---------- Hero jacket ---------- */

.jacket {
  position: relative;
  background: var(--cloth);
  color: var(--paper);
  overflow: hidden;
}
.jacket::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 72px;
  width: 1px;
  background: var(--rule-light);
}

.spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 72px;
  background: var(--cloth-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--foil-light);
}
.spine span::before,
.spine span::after {
  content: "";
  display: block;
  height: 44px;
  width: 1px;
  background: var(--foil);
  margin: 14px auto;
}

.jacket-in {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(56px, 8vw, 104px);
  padding-left: clamp(20px, 5vw, 120px);
}

.jacket h1 { color: var(--paper); margin-bottom: 0.32em; }
.jacket .lede { color: rgba(239, 241, 236, 0.86); }

.jacket-note {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--rule-light);
  font-size: 0.93rem;
  color: rgba(239, 241, 236, 0.72);
  max-width: 46ch;
}

.jacket-art { justify-self: center; width: 100%; max-width: 480px; }

/* one deliberate load-in, nothing else moves on its own */
.jacket-copy, .jacket-art { animation: settle 0.7s ease-out both; }
.jacket-art { animation-delay: 0.12s; }
@keyframes settle {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Contents list (services index) ---------- */

.contents { border-top: 1px solid var(--rule-strong); margin: 0; }

.entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 20px;
  padding: 22px 0 20px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.entry:hover .entry-title { color: var(--foil); }
.entry-title {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem);
  transition: color 0.18s ease;
}
.entry-desc {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
  margin: 6px 0 0;
}
.entry-meta { color: var(--muted); font-size: 0.9rem; white-space: nowrap; }

/* ---------- Timeline ---------- */

.runway {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  border-top: 2px solid var(--foil);
}
.stage { padding: 26px 22px 30px 0; border-right: 1px solid var(--rule); }
.stage:last-child { border-right: 0; }
.stage-when {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--foil);
  display: block;
  margin-bottom: 10px;
}
.stage h3 { font-size: 1.12rem; margin-bottom: 0.4em; }
.stage p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ---------- Blurbs (back-cover quotes) ---------- */

.backcover { background: var(--cloth-deep); color: var(--paper); }
.backcover h2 { color: var(--paper); }
.backcover .section-head p { color: rgba(239, 241, 236, 0.72); }

.blurbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
.blurb { border-left: 1px solid var(--foil); padding-left: 22px; }
.blurb p {
  font-family: var(--serif);
  font-size: 1.16rem;
  line-height: 1.45;
  margin-bottom: 14px;
}
.blurb cite {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(239, 241, 236, 0.7);
}

/* ---------- Panels, cards, lists ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: clamp(24px, 3vw, 34px);
}
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  font-size: 0.97rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 1px;
  background: var(--foil);
}

.service-block {
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.service-block:first-of-type { border-top: 2px solid var(--foil); }
.service-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.service-grid h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }

.tier-price { color: var(--muted); font-size: 0.95rem; margin-top: 14px; }

/* ---------- Call to action band ---------- */

.band {
  background: var(--foil);
  color: var(--ink);
}
.band-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(44px, 6vw, 68px);
}
.band h2 { margin-bottom: 0.2em; }
.band p { margin: 0; max-width: 48ch; }

/* ---------- Form ---------- */

.form { display: grid; gap: 18px; max-width: 34rem; }
.field { display: grid; gap: 7px; }
.field label { font-size: 0.93rem; font-weight: 500; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  padding: 12px 14px;
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--foil); }
.hint { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- Colophon ---------- */

.colophon {
  background: var(--cloth-deep);
  color: rgba(239, 241, 236, 0.82);
  padding-block: clamp(48px, 6vw, 72px) 28px;
  font-size: 0.95rem;
}
.colophon a { text-decoration: none; }
.colophon a:hover { color: var(--foil-light); }
.colophon h2 {
  font-size: 1.5rem;
  color: var(--paper);
  margin-bottom: 0.4em;
}
.colophon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 9px; }
.colophon-label {
  color: var(--foil-light);
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.fineprint {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid var(--rule-light);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.86rem;
  color: rgba(239, 241, 236, 0.6);
}
.fineprint p { margin: 0; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .jacket::after, .spine { display: none; }
  .jacket-in {
    grid-template-columns: 1fr;
    padding-left: clamp(20px, 5vw, 48px);
  }
  .jacket-art { order: -1; max-width: 360px; }
  .service-grid { grid-template-columns: 1fr; }
  .stage { border-right: 0; border-bottom: 1px solid var(--rule); padding-right: 0; }
  .stage:last-child { border-bottom: 0; }
}

@media (max-width: 560px) {
  .masthead-in { flex-direction: column; align-items: flex-start; }
  .nav { gap: 8px 18px; }
  .entry { grid-template-columns: 1fr; }
}

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