/* Henok Design Studios — cream-led editorial layout.
   Dark is reserved for the footer only. Artwork frames stay neutral. */

:root {
  --cream: #f6f2ea;
  --cream-well: #ece6dc;
  --ink: #0b0b0b;
  --text: #1c1612;
  --text-muted: #3d342c;
  --terracotta: #a9532f;
  --terracotta-dark: #8c4224;
  --line: #d4cdc2;
  --header-h: 4.5rem;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space: clamp(1.25rem, 4vw, 2.75rem);
  --content: 74rem;
  --narrow: 46rem;
}

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

html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  text-decoration: none;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

/* ----- Header: always cream, always the dark logo ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  color: var(--text);
  height: var(--header-h);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
}
.site-header__inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--space);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand__mark { display: block; width: 2.15rem; height: 2.15rem; }
.brand__name {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.25;
  max-width: 8.6rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.4rem 0;
  z-index: 120;
}
.nav-toggle__icon {
  display: block;
  width: 1.35rem;
  height: 0.8rem;
  position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle__icon::before { top: 0.15rem; }
.nav-toggle__icon::after { top: 0.55rem; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before {
  top: 0.35rem;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after {
  top: 0.35rem;
  transform: rotate(-45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__text { /* becomes Close via JS */ }

.site-nav {
  position: fixed;
  inset: 0;
  width: 100%;
  background: var(--cream);
  padding: calc(var(--header-h) + 1.75rem) var(--space) 2rem;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 90;
  overflow-y: auto;
}
.site-nav.is-open { transform: translateX(0); }
body.nav-open .site-header {
  border-bottom-color: transparent;
}
body.nav-open .brand {
  position: relative;
  z-index: 130;
}
.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.site-nav a {
  display: block;
  text-decoration: none;
  padding: 0.7rem 0;
  font-size: 1.15rem;
  font-family: var(--serif);
  color: var(--ink);
}
.site-nav a[aria-current="page"] { color: var(--terracotta); }
.site-nav .btn--nav {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 1.2rem;
}
.nav-backdrop { display: none !important; }

@media (min-width: 1040px) {
  .nav-toggle, .nav-backdrop { display: none !important; }
  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    transform: none;
    border: 0;
    overflow: visible;
    background: transparent;
  }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 1.55rem;
  }
  .site-nav a {
    padding: 0;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
  }
  .site-nav .btn--nav { margin-top: 0; }
}

/* ----- Buttons & text links ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--terracotta);
  color: #fff;
  padding: 0.95rem 1.55rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1.2;
}
.btn:hover, .btn:focus-visible { background: var(--terracotta-dark); color: #fff; }
.btn--nav { color: #fff !important; }

.text-link {
  display: inline-block;
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 0.15rem;
  font-size: 0.95rem;
}
.text-link:hover { color: var(--terracotta); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 38rem;
}

/* ----- Artwork frames: neutral wells so colour can lead ----- */
.frame {
  position: relative;
  background: var(--cream-well);
  aspect-ratio: var(--ratio, 4 / 5);
  overflow: hidden;
  margin: 0;
  width: 100%;
}
.frame::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 1;
  pointer-events: none;
}
.frame.is-loaded::after { opacity: 0; }
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
}
.frame.is-loaded img { opacity: 1; }
.frame--landscape { --ratio: 3 / 2; }

/* ----- Home hero: cream, dark type, large artwork ----- */
.hero {
  padding: 2.25rem var(--space) 4.5rem;
}
.hero__grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero__copy h1 {
  font-size: clamp(2.15rem, 5.6vw, 4.15rem);
  margin: 0 0 1.25rem;
  max-width: 14ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  margin-top: 1.75rem;
}
.hero__frame { --ratio: 4 / 5; }

@media (min-width: 900px) {
  .hero {
    padding-top: 2.5rem;
    padding-bottom: 5.5rem;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    min-height: calc(100svh - var(--header-h) - 5.5rem);
  }
  .hero__frame { --ratio: 4 / 5; }
}

/* ----- Shared sections ----- */
.section {
  padding: 4.25rem var(--space);
}
.section--tight { padding-top: 0; }
.section__inner {
  max-width: var(--content);
  margin: 0 auto;
}
.section__narrow {
  max-width: var(--narrow);
}
.section h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  margin: 0 0 1.5rem;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 2.5rem;
}
.section-head h2 { margin: 0; }
.section-head p {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 36rem;
}

.intro h2 { max-width: 16ch; }

/* ----- Practices ----- */
.practice {
  display: grid;
  gap: 1.5rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--line);
}
.practice:last-child { border-bottom: 1px solid var(--line); }
.practice__index {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--terracotta);
  margin: 0 0 0.55rem;
}
.practice__title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin: 0 0 0.6rem;
}
.practice__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 0.85rem;
  line-height: 1.4;
}
.practice__body { margin-bottom: 1.15rem; max-width: 36rem; }
.practice__frame { --ratio: 4 / 5; }

@media (min-width: 800px) {
  .practice {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
    padding: 3.5rem 0;
  }
  .practice--flip .practice__media { order: -1; }
}

/* ----- Selected work / shop grids ----- */
.work-grid,
.shop-grid {
  display: grid;
  gap: 2rem 1.35rem;
}
@media (min-width: 640px) {
  .work-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.75rem; }
  .shop-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.75rem; }
}

.work-card, .shop-card { margin: 0; }
.work-card__meta,
.shop-card__meta { padding-top: 0.9rem; }
.work-card__index,
.shop-card__status {
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 0.35rem;
}
.work-card__title,
.shop-card__title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0 0 0.2rem;
  color: var(--ink);
}
.work-card__detail,
.shop-card__detail {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.work-card .frame,
.shop-card .frame { --ratio: 4 / 5; }

/* ----- Page headers (inner pages, still cream) ----- */
.page-hero {
  padding: 2.5rem var(--space) 3rem;
}
.page-hero__grid {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  margin: 0 0 1.15rem;
  max-width: 16ch;
}
.page-hero__frame { --ratio: 4 / 5; }
.page-hero__frame.frame--landscape { --ratio: 3 / 2; }

@media (min-width: 900px) {
  .page-hero__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }
}

.page-hero--simple .page-hero__grid {
  grid-template-columns: 1fr;
  max-width: var(--content);
}
.page-hero--simple .page-hero__grid > div { max-width: var(--narrow); }
.page-hero--simple h1 { max-width: 18ch; }

.split {
  display: grid;
  gap: 2rem;
  max-width: var(--content);
  margin: 0 auto;
}
.split .frame { --ratio: 4 / 5; }
@media (min-width: 840px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
}

/* ----- Enquiry form ----- */
.enquiry {
  max-width: 40rem;
}
.enquiry .field { margin-bottom: 1.25rem; }
.enquiry label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--text);
}
.enquiry input,
.enquiry select,
.enquiry textarea {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.8rem 0.85rem;
  line-height: 1.4;
}
.enquiry textarea { min-height: 9rem; resize: vertical; }
.enquiry input:focus-visible,
.enquiry select:focus-visible,
.enquiry textarea:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
  border-color: var(--terracotta);
}
.enquiry .btn { margin-top: 0.5rem; }

/* ----- Footer: the only dark band ----- */
.site-footer {
  background: var(--ink);
  color: #f6f2ea;
  padding: 4rem var(--space) 2rem;
  margin-top: 2rem;
}
.site-footer a { color: #f6f2ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:focus-visible { outline-color: #f6f2ea; }
.site-footer__inner {
  max-width: var(--content);
  margin: 0 auto;
  display: grid;
  gap: 2.25rem;
}
.site-footer__name {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin: 0 0 0.85rem;
}
.site-footer__tagline {
  max-width: 22rem;
  color: #e8e2d8;
  font-size: 0.98rem;
}
.footer-heading {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e8e2d8;
  margin: 0 0 0.9rem;
}
.site-footer__col ul { display: grid; gap: 0.45rem; }
.site-footer__col a { font-size: 0.98rem; }
.site-footer__col p { color: #e8e2d8; font-size: 0.98rem; }
.site-footer__legal {
  max-width: var(--content);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
  font-size: 0.8rem;
  color: #cfc8bc;
}

@media (min-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 0.7fr 0.7fr 1.1fr;
    gap: 3rem;
  }
}

/* Body lock when menu is open */
body.nav-open { overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
