/* MORRORA — design system
   Editorial, material-led, light. No frameworks, no build step. */

:root {
  --paper: #f5f1ea;
  --paper-2: #efe9e0;
  --paper-3: #e5ddd2;
  --ink: #34302f;
  --ink-2: #524b48;
  --muted: #7b736d;
  --stone: #d9d1c6;
  --line: rgba(52, 48, 47, 0.14);
  --line-soft: rgba(52, 48, 47, 0.07);
  --accent: #ad2834;
  --serif: "Instrument Serif", "Cormorant Garamond", "Didot", "Times New Roman", serif;
  --sans: "DM Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

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

p { margin: 0; }

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

/* ---------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.header.is-scrolled { border-bottom-color: var(--line-soft); }

.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-right: auto;
}

.nav { display: flex; gap: 30px; }

.nav__link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav__link:hover,
.nav__link.is-current { color: var(--ink); border-bottom-color: var(--ink); }

.header__cta {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 10px 18px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.header__cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  padding: 8px var(--gutter) 24px;
  background: var(--paper);
}
.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mobile-nav__cta { color: var(--accent); }

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  min-height: calc(100svh - 76px);
}

.hero__copy { padding: clamp(48px, 8vh, 96px) 0; max-width: 34rem; }

.eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  margin-bottom: 26px;
}

.hero__lead {
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  color: var(--ink-2);
  max-width: 30rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero__media {
  position: relative;
  height: min(76vh, 760px);
  overflow: hidden;
  background: var(--paper-2);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-block;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px 26px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

.link-arrow {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  white-space: nowrap;
}

/* -------------------------------------------------------------- sections */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 130px) var(--gutter);
  border-top: 1px solid var(--line-soft);
}
.section--tight { padding-top: clamp(32px, 4vw, 56px); }
.section--narrow { max-width: 820px; margin-left: auto; margin-right: auto; }

.section--intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.section__title {
  font-size: clamp(1.85rem, 3.2vw, 2.8rem);
  max-width: 26ch;
}

.section__body { color: var(--ink-2); max-width: 44ch; }
.section__body p + p { margin-top: 18px; }

.section--split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
.section--muted { background: var(--paper-2); }

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(32px, 5vw, 56px);
}
.page-head--wide { max-width: 1000px; }
.page-head--narrow { max-width: 760px; }

.page-head h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  margin-bottom: 20px;
}
.page-head__lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  max-width: 52ch;
}

/* ----------------------------------------------------------------- cards */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.6vw, 36px);
  margin-top: clamp(32px, 4vw, 52px);
}

.card { display: block; }

.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.035); }

.card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 2px 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 16px;
}
.card__name { font-family: var(--serif); font-size: 1.22rem; }
.card__series {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.grid__item.is-hidden { display: none; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 8px;
}
.chip {
  appearance: none;
  border: 0;
  background: none;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { color: var(--ink); }
.chip.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.empty {
  margin-top: 36px;
  padding: clamp(36px, 6vw, 64px);
  background: var(--paper-2);
  max-width: 620px;
}
.empty__title { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 12px; }
.empty__text { color: var(--ink-2); margin-bottom: 24px; }

/* --------------------------------------------------------------- pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}
.pillar__index {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}
.pillar h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); margin-bottom: 12px; }
.pillar p { color: var(--ink-2); font-size: 0.95rem; }

/* -------------------------------------------------------------- audience */

.audience {
  list-style: none;
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(24px, 5vw, 72px);
}
.audience li {
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}
.audience span { font-family: var(--serif); font-size: 1.24rem; }
.audience p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* -------------------------------------------------------------- cta band */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  margin-top: clamp(40px, 6vw, 80px);
}
.cta-band__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  max-width: 880px;
}
.cta-band .eyebrow { color: rgba(250, 248, 245, 0.55); }
.cta-band h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  margin-bottom: 18px;
  color: var(--paper);
}
.cta-band p {
  color: rgba(250, 248, 245, 0.78);
  max-width: 48ch;
  margin-bottom: 32px;
}
.cta-band .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-band .btn:hover { background: transparent; color: var(--paper); }

/* ------------------------------------------------------- dual entry pair */

.entry-pair {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  border-top: 1px solid var(--line-soft);
}

.entry-pair__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.entry-panel {
  background: var(--paper);
  padding: clamp(30px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.entry-panel .eyebrow { margin-bottom: 0; }
.entry-panel h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  max-width: 22ch;
}
.entry-panel p {
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 42ch;
}
.entry-panel .btn { margin-top: 8px; }

.entry-panel--dark { background: var(--ink); }
.entry-panel--dark .eyebrow { color: rgba(250, 248, 245, 0.55); }
.entry-panel--dark h2 { color: var(--paper); }
.entry-panel--dark p { color: rgba(250, 248, 245, 0.78); }
.entry-panel--dark .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.entry-panel--dark .btn:hover { background: transparent; color: var(--paper); }

.note {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 60ch;
}
.note a { border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- checks */

.check {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: var(--accent);
}
.check label {
  font-size: 0.86rem;
  color: var(--ink-2);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------- product */

.product {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.product__media {
  position: sticky;
  top: 108px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}
.product__media img { width: 100%; height: 100%; object-fit: cover; }

.product__info { padding-top: clamp(4px, 3vw, 32px); }

.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.breadcrumb a { border-bottom: 1px solid var(--line); }

.product__info h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 14px; }
.product__tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  color: var(--ink-2);
  margin-bottom: 18px;
}
.product__description { color: var(--ink-2); max-width: 42ch; margin-bottom: 32px; }

.spec { margin: 0 0 32px; }
.spec__row {
  display: grid;
  grid-template-columns: 34% 1fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.spec__row:last-child { border-bottom: 1px solid var(--line-soft); }
.spec dt {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.spec dd { margin: 0; color: var(--ink-2); }
.spec dd a { border-bottom: 1px solid var(--line); }

.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.product__note { font-size: 0.78rem; color: var(--muted); max-width: 42ch; }

/* ----------------------------------------------------------------- forms */

.contact {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  border-radius: 0;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-bottom-color: var(--ink); outline: none; }
.form .btn { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }
.form__note { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); }
.form__note a { border-bottom: 1px solid var(--line); }

.contact__side { background: var(--paper-2); padding: clamp(28px, 4vw, 44px); }
.contact__side h2 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 16px; }
.contact__side p { color: var(--ink-2); font-size: 0.94rem; margin-bottom: 8px; }

/* -------------------------------------------------------------- editorial */

.prose h2 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  margin: 40px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); max-width: 62ch; }
.prose p + p { margin-top: 14px; }
.prose a { border-bottom: 1px solid var(--line); }

.plain-list { list-style: none; margin: 0; padding: 0; color: var(--ink-2); }
.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }

/* ---------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line-soft);
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--paper);
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
}
.wordmark--footer { display: block; margin-bottom: 18px; }
.footer__promise { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); max-width: 30ch; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__cols a {
  display: block;
  font-size: 0.86rem;
  color: var(--ink-2);
  padding: 5px 0;
}
.footer__cols a:hover { color: var(--ink); }
.footer__cols .eyebrow { margin-bottom: 12px; }
.footer__base {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.74rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------- preview */

.preview-bar {
  background: #2c241c;
  color: #f4efe6;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

/* --------------------------------------------------------------- motion */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card__media img { transition: none; }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1024px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: block; }
  .mobile-nav.is-open { display: block; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__copy { padding: clamp(36px, 7vh, 64px) 0 32px; }
  .hero__media { height: min(60vh, 520px); }
  .section--intro,
  .section--split { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: 1fr; gap: 32px; }
  .audience { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; }
  .product__media { position: static; aspect-ratio: 5 / 4; }
  .contact { grid-template-columns: 1fr; }
  .entry-pair__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header__inner { height: 64px; }
  .wordmark { font-size: 0.82rem; letter-spacing: 0.32em; }
  .hero__title { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer__base { flex-direction: column; }
  .section__title { max-width: none; }
  .footer__cols { grid-template-columns: 1fr; }
}
