:root {
  --inkwell: #1c1c1e;
  --antique: #f7f4ef;
  --linen: #ede8df;
  --brass: #a8894a;
  --cognac: #7c3d28;
  --slate: #4a5568;

  --paper-shadow: rgba(28, 28, 30, 0.08);
  --line-soft: rgba(28, 28, 30, 0.12);
  --line-warm: rgba(168, 137, 74, 0.28);

  --font-display: "EB Garamond", serif;
  --font-body: "Lora", serif;
  --font-label: "Libre Baskerville", serif;

  --container-width: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--antique);
  color: var(--inkwell);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(rgba(28, 28, 30, 0.98), rgba(28, 28, 30, 0.98)),
    linear-gradient(135deg, #242427 0%, #1c1c1e 100%);
  color: var(--antique);
  border-bottom: 1px solid rgba(247, 244, 239, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(247, 244, 239, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 244, 239, 0.022) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.32;
}

.header-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  flex: 0 0 72px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-kicker {
  font-family: var(--font-label);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.62);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  color: var(--antique);
}

.logo-ring,
.logo-frame,
.logo-spine {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-book-left,
.logo-book-right {
  fill: rgba(168, 137, 74, 0.08);
  stroke: var(--brass);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.logo-monogram {
  fill: var(--brass);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  color: rgba(247, 244, 239, 0.8);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--brass);
}

/* INTRO */

.intro {
  position: relative;
  background:
    linear-gradient(rgba(28, 28, 30, 0.96), rgba(28, 28, 30, 0.96)),
    linear-gradient(135deg, #232326 0%, #1c1c1e 100%);
  color: var(--antique);
  overflow: hidden;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(247, 244, 239, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(247, 244, 239, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
}

.intro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.2rem;
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(168, 137, 74, 0.55), transparent);
}

.intro-shell {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 6.5rem;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.intro h1,
.section h2,
.card h3,
.process-step h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
}

.intro h1 {
  font-size: clamp(3rem, 6vw, 5.1rem);
  font-style: italic;
  max-width: 11ch;
  margin-bottom: 1rem;
}

.intro-text {
  margin: 0 0 0.85rem;
  max-width: 38rem;
  font-size: 1.22rem;
  color: rgba(247, 244, 239, 0.84);
}

.intro-secondary {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: rgba(247, 244, 239, 0.72);
}

.intro-note {
  margin: 1rem 0 0;
  color: rgba(247, 244, 239, 0.65);
  font-size: 0.95rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.15rem;
  border: 1px solid rgba(168, 137, 74, 0.62);
  background: rgba(168, 137, 74, 0.1);
  color: var(--antique);
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.cta:hover,
.cta:focus {
  background: rgba(168, 137, 74, 0.18);
  border-color: var(--brass);
  transform: translateY(-1px);
}

/* GLOBAL */

.section {
  position: relative;
  padding: 6.25rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.75rem;
}

.section h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  max-width: 13ch;
}

p {
  font-size: 1.02rem;
}

/* SERVICES */

.services {
  background:
    linear-gradient(rgba(247, 244, 239, 0.96), rgba(247, 244, 239, 0.96)),
    linear-gradient(135deg, #f1ece4 0%, #f7f4ef 100%);
}

.services::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2rem;
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-warm), transparent);
}

.three-column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(28, 28, 30, 0.08);
  padding: 2rem 1.75rem;
  box-shadow: 0 16px 32px var(--paper-shadow);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 1.75rem;
  right: 1.75rem;
  height: 1px;
  background: linear-gradient(to right, var(--brass), transparent);
}

.card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.85rem;
  padding-top: 0.5rem;
}

.card p {
  margin: 0;
  color: var(--slate);
}

/* PROCESS */

.process {
  background: var(--linen);
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(28, 28, 30, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 28, 30, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
}

.process-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.process-step {
  background: rgba(247, 244, 239, 0.58);
  border: 1px solid rgba(28, 28, 30, 0.08);
  border-top: 2px solid var(--brass);
  padding: 1.5rem 1.25rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--cognac);
}

.process-step h3 {
  font-size: 1.45rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  margin: 0;
  color: var(--slate);
}

/* ABOUT */

.about {
  background: var(--antique);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  box-shadow: 0 18px 36px rgba(28, 28, 30, 0.08);
  border: 1px solid rgba(28, 28, 30, 0.08);
}

.about-image-wrap {
  display: flex;
  justify-content: flex-end;
}

.about-copy h2 {
  margin-bottom: 1.2rem;
}

.about-copy p {
  color: var(--slate);
  max-width: 38rem;
}

/* CONTACT */

.contact {
  background:
    linear-gradient(rgba(28, 28, 30, 0.96), rgba(28, 28, 30, 0.96)),
    linear-gradient(135deg, #2a2a2d 0%, #1c1c1e 100%);
  color: var(--antique);
}

.contact::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2rem;
  width: min(calc(100% - 2rem), var(--container-width));
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(168, 137, 74, 0.65), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.contact .eyebrow {
  color: var(--brass);
}

.contact h2 {
  color: var(--antique);
  margin-bottom: 1rem;
}

.contact-copy p {
  color: rgba(247, 244, 239, 0.8);
}

.plain-email {
  margin-top: 1.5rem;
}

.plain-email a {
  color: var(--brass);
}

.contact-form {
  background: rgba(247, 244, 239, 0.045);
  border: 1px solid rgba(247, 244, 239, 0.1);
  padding: 2rem;
  box-shadow: inset 0 1px 0 rgba(247, 244, 239, 0.04);
}

.contact-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(247, 244, 239, 0.18);
  background: rgba(247, 244, 239, 0.95);
  color: var(--inkwell);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(168, 137, 74, 0.15);
}

.contact-form button {
  appearance: none;
  border: 1px solid var(--brass);
  background: var(--brass);
  color: var(--inkwell);
  padding: 0.9rem 1.25rem;
  font-family: var(--font-label);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.contact-form button:hover,
.contact-form button:focus {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .header-shell,
  .three-column-grid,
  .process-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--container-width));
  }

  .brand-logo {
    width: 60px;
    flex-basis: 60px;
  }

  .brand-name {
    font-size: 1.7rem;
  }

  .intro-shell {
    padding: 4.5rem 0 5.5rem;
  }

  .intro h1 {
    font-size: 2.5rem;
  }

  .intro-text {
    font-size: 1.08rem;
  }

  .section {
    padding: 5rem 0;
  }

  .card,
  .contact-form {
    padding: 1.4rem;
  }

}