/* Ashford & Pierce — boutique consulting */
:root {
  --espresso: #14110f;
  --espresso-soft: #2c2622;
  --stone: #e6e1da;
  --stone-light: #f4f1ec;
  --copper: #a6633d;
  --copper-muted: #c4896a;
  --copper-text: #6b3d22;
  --link-on-dark: #e8cdb0;
  --text-on-dark: rgba(255, 255, 255, 0.92);
  --header-link: rgba(255, 255, 255, 0.88);
  --header-link-hover: #ffffff;
  --header-link-active: #e8cdb0;
  --header-border: rgba(255, 255, 255, 0.1);
  --line: rgba(20, 17, 15, 0.12);
  --max: 76rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--espresso-soft);
  background: var(--stone-light);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--copper-text);
  text-underline-offset: 0.18em;
  transition: color 0.2s ease;
}

a:hover { color: var(--espresso); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--espresso);
  color: var(--stone-light);
  z-index: 10000;
}

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

/* Shell header */
.shell-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 0.9rem 1.5rem;
  background: var(--espresso);
  border-bottom: 1px solid var(--header-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.35s ease;
}

.shell-header.is-scrolled {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.shell-header a:focus-visible,
.shell-header button:focus-visible {
  outline-color: var(--header-link-active);
}

.shell-header__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.shell-header .wordmark {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.shell-header .wordmark:hover {
  opacity: 0.92;
}

.shell-header .logo-img {
  display: block;
  height: 3.85rem;
  width: auto;
  max-width: min(17rem, 62vw);
}

.logo-img--foot {
  height: 3rem;
  max-width: 14rem;
}

.shell-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.shell-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--header-link);
  transition: color 0.2s ease;
}

.shell-nav a:hover {
  color: var(--header-link-hover);
}

.shell-nav a[aria-current="page"] {
  color: var(--header-link-active);
  font-weight: 600;
}

.menu-btn {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--header-link-hover);
  padding: 0.45rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-btn { display: block; }
  .shell-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--espresso);
    border-bottom: 1px solid var(--header-border);
    padding: 1rem 1.5rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
  }
  .shell-nav.is-open { display: block; }
  .shell-nav ul { flex-direction: column; gap: 0.75rem; }
}

/* Layout */
.contain {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.display-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--espresso);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.display-title--xl {
  font-size: clamp(2.75rem, 7vw, 5rem);
}

.display-title--lg {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper-text);
  margin: 0 0 1rem;
}

/* Home masthead */
.masthead {
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 7rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 90% 10%, rgba(166, 99, 61, 0.12), transparent 55%),
    linear-gradient(165deg, var(--stone) 0%, var(--stone-light) 45%, #faf8f5 100%);
  border-bottom: 1px solid var(--line);
}

.masthead__grid {
  display: grid;
  gap: 3rem;
}

.masthead__lead {
  font-size: 1.2rem;
  max-width: 32rem;
  margin: 1.5rem 0 0;
}

.masthead__aside {
  border-left: 1px solid var(--copper-muted);
  padding-left: 1.5rem;
  font-size: 0.95rem;
}

.masthead__aside strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--espresso);
  margin-bottom: 0.35rem;
}

@media (min-width: 900px) {
  .masthead__grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: end;
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--espresso);
  margin-top: 2rem;
  border-bottom: 1px solid var(--copper);
  padding-bottom: 0.25rem;
}

.text-link:hover { color: var(--copper); }

/* Band sections */
.band {
  padding: 5rem 0;
}

.band--dark {
  background: var(--espresso);
  color: var(--text-on-dark);
}

.band--dark .display-title {
  color: var(--stone-light);
}

.band--dark .kicker {
  color: var(--link-on-dark);
}

.band--dark a {
  color: var(--link-on-dark);
}

.band--dark a:hover {
  color: #ffffff;
}

.band--stone {
  background: var(--stone);
}

/* Capability rail */
.rail {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rail__item {
  display: grid;
  gap: 1rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.rail__item h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  margin: 0;
  color: var(--espresso);
}

.rail__item p { margin: 0; max-width: 36rem; }

@media (min-width: 768px) {
  .rail__item {
    grid-template-columns: 12rem 1fr;
    align-items: start;
  }
  .rail__label {
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--copper-text);
    padding-top: 0.35rem;
  }
}

/* Quote band */
.pullquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  color: var(--espresso);
  margin: 0;
  max-width: 28ch;
}

.pullquote cite {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-text);
}

/* Mosaic */
.mosaic {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.mosaic__cell {
  background: var(--stone-light);
  padding: 2rem;
  min-height: 12rem;
}

.mosaic__cell h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.mosaic__cell p { margin: 0; font-size: 0.95rem; }

.band--dark .mosaic {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.14);
}

.band--dark .mosaic__cell {
  background: #2a2420;
  color: var(--text-on-dark);
}

.band--dark .mosaic__cell h3 {
  color: var(--stone-light);
}

.band--dark .mosaic__cell a {
  color: var(--link-on-dark);
}

@media (min-width: 768px) {
  .mosaic { grid-template-columns: repeat(3, 1fr); }
}

/* Page intro */
.page-intro {
  padding: 8rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: var(--stone);
}

/* Two-col prose */
.prose-cols {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .prose-cols { grid-template-columns: 1fr 1fr; }
}

/* Contact panel */
.contact-panel {
  background: var(--espresso);
  color: var(--text-on-dark);
  padding: 3rem;
}

.contact-panel .display-title {
  color: var(--stone-light);
}

.contact-panel .kicker {
  color: var(--link-on-dark);
}

.contact-panel a {
  color: var(--link-on-dark);
}

.contact-panel a:hover {
  color: #ffffff;
}

.contact-panel .text-link {
  color: var(--stone-light);
  border-color: var(--link-on-dark);
}

.contact-panel .text-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.contact-panel strong {
  color: var(--stone-light);
}

.contact-panel address {
  font-style: normal;
  line-height: 1.8;
  margin-top: 1.5rem;
}

/* Footer */
.site-foot {
  padding: 3rem 0 2rem;
  background: var(--espresso);
  color: var(--text-on-dark);
  border-top: 1px solid var(--header-border);
  font-size: 0.88rem;
}

.site-foot a {
  color: var(--link-on-dark);
  text-decoration: none;
}

.site-foot a:hover {
  color: var(--header-link-hover);
}

.foot-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.foot-copy {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

@media (min-width: 768px) {
  .foot-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Legal */
.legal-doc {
  max-width: 42rem;
  padding: 3rem 0 5rem;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-top: 2.5rem;
  color: var(--espresso);
}

.legal-meta {
  font-size: 0.9rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--espresso);
  color: rgba(255, 255, 255, 0.88);
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: none;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner a {
  color: var(--link-on-dark);
}

.cookie-banner a:hover {
  color: #ffffff;
}

.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__actions button {
  flex: 1 1 8rem;
  padding: 0.6rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-body);
}

.cookie-banner__actions button[data-consent="accept"] {
  background: var(--copper-text);
  border-color: var(--copper-text);
  color: var(--stone-light);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(20, 17, 15, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-modal.is-open { display: flex; }

.cookie-modal__panel {
  background: var(--stone-light);
  max-width: 26rem;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
}

.cookie-toggle {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
