/*
  Hero 03 — Solene, standalone HTML/CSS implementation.
  No build step, no framework, no external dependency: copy this file and
  index.html into any project and open it as-is.
*/

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

:root {
  --ink: #221f1b;
  --ink-soft: #3a362e;
  --sage: #5b6148;
  --sage-dark: #4c5239;
  --cream: #faf6ef;
  --line: #e5ddcc;
  --stone-text: #5c5748;
  --muted: #8c8571;
  --rail-text: #f3efe2;
  --white: #ffffff;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  background-color: var(--cream);
  line-height: 1.5;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--cream);
}

/* Motion — disabled entirely under reduced motion; every element already
   renders at its final, fully visible state outside this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-fade {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  @keyframes al-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes al-mask {
    from {
      clip-path: inset(0 0 0 100%);
    }
    to {
      clip-path: inset(0 0 0 0%);
    }
  }
  @keyframes al-zoom {
    from {
      transform: scale(1.08);
    }
    to {
      transform: scale(1);
    }
  }
  @keyframes al-menu {
    from {
      opacity: 0;
      transform: translateY(-6px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav__menu {
    animation: al-menu 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .rail {
    animation: al-fade 500ms ease-out both;
  }
  .header {
    animation: al-fade 500ms ease-out 80ms both;
  }
  .eyebrow,
  .description,
  .cta {
    animation: al-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .eyebrow {
    animation-delay: 60ms;
  }
  .heading {
    animation: al-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
  }
  .rule {
    animation: al-up 700ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
  }
  .description {
    animation-delay: 320ms;
  }
  .cta {
    animation-delay: 400ms;
  }
  .photo {
    animation: al-mask 950ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
  }
  .photo img {
    animation: al-zoom 1400ms cubic-bezier(0.16, 1, 0.3, 1) 200ms both;
  }
}

/* Header + announcement rail share one positioning context so the
   mobile/tablet menu panel can anchor to the bottom of the rail (not just
   the header) — it must never cover the rail. */
.nav-region {
  position: relative;
  z-index: 10;
}

/* Header */
.header {
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
}

.brand {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.75rem;
}

.brand__mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(34, 31, 27, 0.25);
  font-size: 0.875rem;
  color: var(--ink);
}

.brand__lockup {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.brand__tagline {
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-text);
}

.nav__item a {
  display: inline-block;
  border-radius: 2px;
  padding: 0.25rem 0.5rem;
  transition: color 150ms ease;
}

.nav__item a:hover {
  color: var(--ink);
}

.nav__dot {
  color: #c9c0aa;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .header__actions {
    gap: 1rem;
  }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: var(--stone-text);
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.icon-btn svg {
  width: 1rem;
  height: 1rem;
}

.icon-btn:hover {
  background-color: #f1ebdd;
  color: var(--ink);
}

.nav__item a:focus-visible,
.icon-btn:focus-visible,
.cta__link:focus-visible,
.nav__menu-btn:focus-visible,
.nav__menu a:focus-visible,
.button:focus-visible,
.rail:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
  border-radius: 4px;
}

/* "Curated Edits" moves into the mobile/tablet menu below `lg` (1024px) —
   it only stays in the header once there's room for the full nav beside
   it. Scoped as `.button.header__cta` (specificity 0,0,2,0) rather than
   bare `.header__cta` (0,0,1,0): the base `.button { display: inline-flex; }`
   rule below shares this element and has equal specificity, so a bare
   `.header__cta { display: none; }` only wins by accident of source order —
   this makes it win unconditionally. */
.button.header__cta {
  display: none;
}

/* Mobile/tablet menu — the `.nav` links (and, below `lg`, `.header__cta`)
   replacement, so collapsing to icon-only navigation never leaves those
   items with no way to reach them. Anchored to `.nav-region` (header +
   rail), so it opens directly below the rail rather than covering it. */
.nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  color: var(--stone-text);
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.nav__menu-btn:hover {
  background-color: #f1ebdd;
  color: var(--ink);
}

.nav__menu-btn svg {
  width: 1rem;
  height: 1rem;
}

.nav__menu-btn .icon-close {
  display: none;
}

.nav__menu-btn.is-open .icon-menu {
  display: none;
}

.nav__menu-btn.is-open .icon-close {
  display: block;
}

.nav__menu {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  z-index: 20;
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(34, 31, 27, 0.15);
}

.nav__menu[hidden] {
  display: none;
}

.nav__menu-inner {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
}

.nav__menu-inner a {
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--stone-text);
  transition:
    background-color 150ms ease,
    color 150ms ease;
}

.nav__menu-inner a:hover {
  background-color: #f1ebdd;
  color: var(--ink);
}

/* Scoped as `.nav__menu-inner a.nav__menu-cta` (specificity 0,0,2,1) rather
   than bare `.nav__menu-cta` (0,0,1,0): the sibling rule
   `.nav__menu-inner a` above already sets `color`, and at equal specificity
   that would have won by source order alone — this makes the CTA's own
   background/text color win unconditionally, with no `!important` needed. */
.nav__menu-inner a.nav__menu-cta {
  margin-top: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--ink);
  color: var(--white);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

.nav__menu-inner a.nav__menu-cta:hover {
  background-color: var(--ink-soft);
  color: var(--white);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  transition: background-color 150ms ease;
}

.button--dark {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--ink);
}

@media (min-width: 640px) {
  .button--dark {
    padding: 0.5rem 1.25rem;
  }
}

.button--dark:hover {
  background-color: var(--ink-soft);
}

/* Announcement rail */
.rail {
  display: block;
  background-color: var(--sage);
  transition: background-color 150ms ease;
}

.rail:hover {
  background-color: var(--sage-dark);
}

.rail__text {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 80rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--rail-text);
}

.arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform 200ms ease;
  color: currentColor;
}

.cta__link:hover .arrow {
  transform: translateX(6px);
}

/* Introduction */
.intro {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.intro__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(3rem, 2.3rem + 2.6vw, 4rem) clamp(1rem, 0.3rem + 3vw, 2rem) clamp(2.5rem, 1.8rem + 2.6vw, 3.5rem);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

.heading {
  margin: 1.25rem 0 0;
  font-weight: 400;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.rule {
  display: block;
  margin-top: 1.5rem;
  width: 3rem;
  height: 1px;
  background-color: var(--sage);
}

.description {
  margin: 1.5rem 0 0;
  max-width: 26rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--stone-text);
}

.cta {
  margin-top: 2.25rem;
}

.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.cta__text {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(34, 31, 27, 0.4);
  transition: border-color 150ms ease;
}

.cta__link:hover .cta__text {
  border-color: var(--ink);
}

.photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--line);
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

/* Structural breakpoints — reserved for layout changes that genuinely need
   to happen, not ordinary proportional scaling (handled above via clamp). */
@media (min-width: 640px) {
  .photo {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }

  .button.header__cta {
    display: inline-flex;
  }

  /* Full nav links (and the header's own "Curated Edits") are visible from
     here up, so the mobile/tablet menu trigger and its panel have nothing
     left to replace. */
  .nav__menu-btn {
    display: none;
  }

  .nav__menu {
    display: none !important;
  }

  .intro {
    flex-direction: row;
    align-items: stretch;
    min-height: 34rem;
  }

  .intro__content {
    width: 42%;
    flex-shrink: 0;
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .photo {
    width: auto;
    flex: 1;
    aspect-ratio: auto;
  }
}

@media (min-width: 1280px) {
  .intro {
    min-height: 38rem;
  }

  .intro__content {
    width: 38%;
  }
}
