/*
 * MELISARA HILLS · site styles
 * Palette from 02-plan-logouri.md (forest, cream, charcoal, matte brass).
 * Text colours are paired for WCAG AA (>= 4.5:1); plain brass is decorative only.
 */

/* ---------- Fonts (self-hosted, OFL-1.1, via @fontsource-variable) ---------- */
/* Only the latin + latin-ext subsets are shipped: they cover ă â î ș ț and „ ”. */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-wght-normal.cfa9a397d8.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/cormorant-garamond-latin-wght-normal.d80df8ff5a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/cormorant-garamond-latin-ext-wght-italic.cd5bf126b2.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url("/assets/fonts/cormorant-garamond-latin-wght-italic.6f2f5c3b1a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/fonts/mulish-latin-ext-wght-normal.e1ccc8579a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Mulish";
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url("/assets/fonts/mulish-latin-wght-normal.8d1d33d6be.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;

  --forest: #243d32;
  --forest-deep: #1b2e26;
  --forest-soft: #2f4d40;
  --cream: #f3eee4;
  --paper: #faf7f1;
  --charcoal: #292724;
  --muted: #5c574f;          /* 6.2:1 on cream */
  --brass: #a58b60;          /* decorative only */
  --brass-ink: #7a6440;      /* 4.9:1 on cream */
  --brass-light: #cdb78c;    /* 6.0:1 on forest */
  --on-forest-muted: #c9d3cc; /* 7.6:1 on forest */
  --line: rgb(41 39 36 / 0.14);
  --line-on-forest: rgb(243 238 228 / 0.18);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1.25rem, 5vw, 3rem);
  --max: 72rem;
  --section-y: clamp(4.5rem, 11vw, 8.5rem);
  --radius: 2px;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1.1em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

.on-forest :focus-visible {
  outline-color: var(--brass-light);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--cream);
  color: var(--forest);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared pieces ---------- */

.on-forest {
  background: var(--forest);
  color: var(--cream);
}

.eyebrow {
  display: block;
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

.on-forest .eyebrow {
  color: var(--brass-light);
}

.section {
  padding-block: var(--section-y);
}

.section-title {
  font-size: clamp(2.1rem, 5.2vw, 3.4rem);
}

.lead {
  font-size: clamp(1.125rem, 2.2vw, 1.3rem);
  line-height: 1.65;
}

/* A quiet geometric rhythm: rhombi echo the custom M of the A1 wordmark. */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 9rem;
  margin: 0 0 2rem;
  color: var(--brass);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.ornament span {
  width: 0.5rem;
  height: 0.5rem;
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.ornament span + span {
  margin-left: -0.35rem;
  background: currentColor;
}

.ornament--center {
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.6rem;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button--solid {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--forest);
}

.button--solid:hover {
  background: var(--paper);
}

.button--ghost {
  color: var(--cream);
  border-color: rgb(243 238 228 / 0.5);
}

.button--ghost:hover {
  background: rgb(243 238 228 / 0.08);
  border-color: var(--cream);
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 2;
  padding-block: 1.25rem;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark img {
  width: 2.25rem;
  height: auto;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-forest-muted);
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--cream);
  text-decoration: underline;
}

/* Small screens: the one-page anchors collapse to the single Contact link. */
@media (max-width: 47.99rem) {
  .site-nav li:not(:last-child) {
    display: none;
  }

  .site-nav a {
    padding: 0.55rem 1rem;
    border: 1px solid var(--line-on-forest);
    border-radius: var(--radius);
    color: var(--cream);
  }
}

/* ---------- Hero ---------- */

.top {
  background:
    radial-gradient(120% 70% at 50% 0%, rgb(255 255 255 / 0.06), transparent 60%),
    var(--forest);
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(2.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(9rem, 22vw, 16rem);
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 2.25rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line-on-forest);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.hero__status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  background: var(--brass-light);
  transform: rotate(45deg);
}

.hero__logo {
  width: min(34rem, 86%);
  height: auto;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}

.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.2rem, 6.4vw, 4.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
}

.hero__lead {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--on-forest-muted);
}

.hero__place {
  margin: 1.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

.hero__hills {
  position: absolute;
  inset: auto 0 -1px 0;
  width: 100%;
  height: clamp(8rem, 20vw, 15rem);
}

/* ---------- Concept ---------- */

.concept__grid {
  display: grid;
  gap: 2.5rem;
}

.concept__body {
  max-width: 38rem;
}

@media (min-width: 56rem) {
  .concept__grid {
    grid-template-columns: 5fr 6fr;
    gap: 5rem;
    align-items: start;
  }
}

.signature {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--forest);
}

/* ---------- Offer ---------- */

.offer {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.offer__head {
  max-width: 40rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.offer__head p {
  margin-top: 1.25rem;
  color: var(--muted);
}

.cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.card {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--cream);
  border: 1px solid var(--line);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 3.5rem;
  height: 2px;
  background: var(--brass);
}

.card__index {
  display: block;
  margin-bottom: 1.25rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--brass-ink);
}

.card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.6vw, 2.25rem);
}

.card p {
  color: var(--muted);
}

.card .note {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Audience ---------- */

.audience {
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 56rem) {
  .audience__grid {
    grid-template-columns: 4fr 7fr;
    gap: 5rem;
    align-items: end;
  }
}

.audience__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .audience__list {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.audience__list li {
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-on-forest);
}

.audience__list h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.audience__list p {
  color: var(--on-forest-muted);
}

/* ---------- Materials ---------- */

.materials__head {
  max-width: 42rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.materials__head p {
  margin-top: 1.25rem;
  color: var(--muted);
}

.materials__list {
  display: grid;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 44rem) {
  .materials__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.swatch {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  background-color: var(--paper);
  background-size: 480px 480px;
}

@media (min-width: 44rem) {
  .swatch {
    aspect-ratio: 3 / 4;
  }
}

.swatch--wood {
  background-image: url("/assets/textures/wood.d02914a5c1.svg");
}

.swatch--stone {
  background-image: url("/assets/textures/stone.dc36ccb981.svg");
  background-size: 400px 400px;
}

.swatch--metal {
  background-image: url("/assets/textures/metal.aab1b04704.svg");
}

.materials__list h3 {
  margin-bottom: 0.5rem;
  font-size: 1.85rem;
}

.materials__list p {
  color: var(--muted);
}

.materials__foot {
  max-width: 40rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Place ---------- */

.place {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.place__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .place__grid {
    grid-template-columns: 6fr 5fr;
    gap: 5rem;
  }
}

.place__address {
  margin: 1.75rem 0 0;
  font-style: normal;
}

.place__address strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--forest);
}

.place__address span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
}

.place__art {
  max-width: 30rem;
  color: var(--forest);
}

.place__art svg {
  width: 100%;
  height: auto;
}

.place__note {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact {
  text-align: center;
}

.contact .section-title {
  margin-inline: auto;
  max-width: 20ch;
}

.contact__lead {
  max-width: 36rem;
  margin: 1.5rem auto 0;
  color: var(--on-forest-muted);
}

.contact__panel {
  max-width: 34rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line-on-forest);
}

.contact__soon {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
}

.contact__soon + p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--on-forest-muted);
}

.contact-list {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  text-align: left;
}

.contact-list div {
  display: grid;
  gap: 0.15rem;
}

.contact-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-light);
}

.contact-list dd {
  margin: 0;
  font-size: 1.125rem;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--brass-light);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: clamp(3.5rem, 8vw, 5rem) 2rem;
  background: var(--forest-deep);
  color: var(--on-forest-muted);
  font-size: 0.875rem;
}

.site-footer__top {
  display: grid;
  gap: 2rem;
  justify-items: center;
  text-align: center;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-on-forest);
}

.site-footer__logo {
  width: min(16rem, 70%);
  height: auto;
}

.site-footer__tagline {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--cream);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  padding: var(--gutter);
  text-align: center;
}

.not-found img {
  width: min(20rem, 80vw);
  height: auto;
  margin-bottom: 1rem;
}

.not-found h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

.not-found p {
  color: var(--muted);
}

.not-found a {
  color: var(--forest);
  font-weight: 700;
}
