/* Marest Lilled — Website #96
   Boutique florist × petal-label minimalism
   Fully offline. HTML + CSS only. */

:root {
  --cream: #f8f2eb;
  --paper: #fdf8f2;
  --plum: #5f304d;
  --plum-soft: #7f4d6d;
  --rose: #c9959f;
  --rose-soft: #ead0d4;
  --sage: #9ca78f;
  --sage-soft: #dce2d5;
  --peach: #e9c6b4;
  --charcoal: #30302e;
  --line: rgba(48, 48, 46, 0.14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --mono: "Courier New", Courier, monospace;
  --shadow: 0 18px 44px rgba(73, 50, 62, 0.09);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--charcoal);
  background:
    linear-gradient(180deg, rgba(201,149,159,0.05), transparent 18rem),
    var(--cream);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  padding: 0.7rem 1rem;
  background: var(--plum);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
  scroll-margin-top: 7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(248,242,235,0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1.05;
}

.brand-main {
  font-family: var(--serif);
  font-size: 1.3rem;
}

.brand-sub {
  margin-top: 0.2rem;
  color: var(--plum-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.main-nav,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.main-nav a,
.footer-nav a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.main-nav a {
  padding: 0.45rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--plum);
  border-color: currentColor;
}

.hero {
  padding: 4.6rem 0 5.4rem;
  scroll-margin-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--plum);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.micro-label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
  max-width: 550px;
  margin-bottom: 1.15rem;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
}

.micro-rule {
  height: 1px;
  background: var(--line);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  line-height: 0.97;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  line-height: 1.03;
}

p {
  margin-top: 0;
  color: #5c5958;
}

.hero-text {
  max-width: 630px;
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--plum);
  background: var(--plum);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(95,48,77,0.18);
}

.hero-note {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.9rem;
  max-width: 520px;
  margin-top: 2rem;
}

.note-stem {
  position: relative;
  width: 1px;
  height: 54px;
  margin-left: 11px;
  background: var(--sage);
}

.note-stem::before,
.note-stem::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 8px;
  border: 1px solid var(--sage);
  border-radius: 80% 20% 80% 20%;
}

.note-stem::before {
  left: 2px;
  top: 12px;
  transform: rotate(-28deg);
}

.note-stem::after {
  right: 2px;
  top: 30px;
  transform: rotate(28deg) scaleX(-1);
}

.hero-note p {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: 0.96rem;
}

.hero-art {
  position: relative;
  min-height: 510px;
}

.art-panel {
  position: absolute;
  border: 1px solid rgba(48,48,46,0.13);
  box-shadow: var(--shadow);
}

.art-back {
  inset: 34px 0 0 56px;
  background: var(--rose-soft);
  transform: rotate(2.2deg);
}

.art-front {
  inset: 0 30px 26px 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(233,198,180,0.10), transparent 55%),
    var(--paper);
}

.ribbon-frame {
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(95,48,77,0.17);
}

.ribbon-frame::before,
.ribbon-frame::after {
  content: "";
  position: absolute;
  background: var(--plum);
}

.ribbon-frame::before {
  left: -1px;
  top: 46px;
  width: 68%;
  height: 5px;
}

.ribbon-frame::after {
  right: 54px;
  top: -1px;
  width: 5px;
  height: 36%;
}

.petal-form {
  position: absolute;
  width: 150px;
  height: 150px;
}

.petal-one {
  left: 18%;
  top: 28%;
}

.petal-two {
  width: 104px;
  height: 104px;
  right: 12%;
  bottom: 20%;
  transform: rotate(18deg);
}

.petal-form span,
.petal-form i {
  position: absolute;
  left: 50%;
  top: 50%;
}

.petal-form span {
  width: 44px;
  height: 74px;
  margin: -37px 0 0 -22px;
  border-radius: 70% 70% 55% 55%;
  background: linear-gradient(180deg, #ddb5bd, var(--rose));
  transform-origin: 50% 37px;
}

.petal-form span:nth-child(1) { transform: rotate(0deg) translateY(-36px); }
.petal-form span:nth-child(2) { transform: rotate(90deg) translateY(-36px); }
.petal-form span:nth-child(3) { transform: rotate(180deg) translateY(-36px); }
.petal-form span:nth-child(4) { transform: rotate(270deg) translateY(-36px); }

.petal-form i {
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border-radius: 50%;
  background: var(--peach);
}

.petal-two span {
  width: 30px;
  height: 52px;
  margin: -26px 0 0 -15px;
  transform-origin: 50% 26px;
  background: linear-gradient(180deg, #bbc4b1, var(--sage));
}

.petal-two span:nth-child(1) { transform: rotate(0deg) translateY(-26px); }
.petal-two span:nth-child(2) { transform: rotate(90deg) translateY(-26px); }
.petal-two span:nth-child(3) { transform: rotate(180deg) translateY(-26px); }
.petal-two span:nth-child(4) { transform: rotate(270deg) translateY(-26px); }

.stem-line {
  position: absolute;
  width: 1px;
  background: var(--sage);
  transform-origin: bottom;
}

.stem-one {
  left: 42%;
  top: 45%;
  height: 168px;
  transform: rotate(-12deg);
}

.stem-two {
  right: 30%;
  top: 53%;
  height: 125px;
  transform: rotate(14deg);
}

.leaf {
  position: absolute;
  width: 42px;
  height: 20px;
  border-radius: 85% 15% 85% 15%;
  background: var(--sage-soft);
  border: 1px solid rgba(156,167,143,0.45);
}

.leaf-a {
  left: 35%;
  top: 58%;
  transform: rotate(-24deg);
}

.leaf-b {
  left: 44%;
  top: 66%;
  transform: rotate(24deg) scaleX(-1);
}

.leaf-c {
  right: 23%;
  top: 68%;
  transform: rotate(22deg);
}

.florist-tag {
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 220px;
  padding: 1rem 1.15rem;
  border: 1px solid var(--plum);
  background: rgba(253,248,242,0.92);
}

.florist-tag::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--plum);
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.florist-tag span,
.florist-tag strong {
  display: block;
}

.tag-kicker {
  color: var(--plum);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.florist-tag strong {
  margin: 0.25rem 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
}

.florist-tag > span:last-child {
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.corner-code {
  position: absolute;
  left: 34px;
  bottom: 28px;
  color: var(--plum-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.about-section {
  background:
    linear-gradient(90deg, rgba(156,167,143,0.08), transparent 32%),
    #fcf8f4;
}

.about-grid {
  display: grid;
  grid-template-columns: 70px 0.9fr 1.1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  align-items: start;
}

.section-index {
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.about-copy {
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.about-copy p {
  font-size: 1.03rem;
}

.section-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  margin-bottom: 2rem;
}

.label-list {
  border-top: 1px solid var(--line);
}

.floral-label {
  display: grid;
  grid-template-columns: 52px 78px 1fr auto;
  gap: 1.25rem;
  align-items: stretch;
  min-height: 142px;
  border-bottom: 1px solid var(--line);
}

.label-number {
  align-self: center;
  color: var(--plum);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.label-color {
  min-height: 142px;
}

.block-plum { background: var(--plum); }
.block-rose { background: var(--rose); }
.block-sage { background: var(--sage); }

.label-copy {
  align-self: center;
  padding: 1.2rem 0;
}

.label-title {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.label-copy p {
  margin-bottom: 0;
}

.label-ref {
  align-self: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.6rem;
  white-space: nowrap;
}

.studio-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.studio-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid rgba(48,48,46,0.13);
  background:
    linear-gradient(90deg, rgba(95,48,77,0.025) 1px, transparent 1px) 0 0 / 42px 100%,
    linear-gradient(180deg, rgba(201,149,159,0.08), transparent 72%),
    #eee6e0;
}

.studio-heading {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: clamp(1.8rem, 4vw, 4rem);
  max-width: 820px;
  margin-bottom: 3rem;
}

.studio-heading p:last-child {
  max-width: 650px;
}

.sequence-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.sequence-card {
  position: relative;
  min-height: 180px;
  padding: 1.2rem;
  border: 1px solid rgba(48,48,46,0.12);
  background: rgba(253,248,242,0.76);
}

.sequence-num {
  display: block;
  margin-bottom: 2rem;
  color: var(--plum);
  font-family: var(--mono);
  font-size: 0.66rem;
}

.sequence-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
}

.sequence-petal {
  display: block;
  width: 28px;
  height: 46px;
  margin-top: 0.8rem;
  border-radius: 70% 70% 55% 55%;
  background: var(--rose-soft);
  transform: rotate(24deg);
}

.sequence-card:nth-child(2) .sequence-petal {
  background: var(--sage-soft);
}

.sequence-card:nth-child(3) .sequence-petal {
  background: var(--peach);
}

.sequence-card:nth-child(4) .sequence-petal {
  background: #e5d9e4;
}

.sequence-card small {
  position: absolute;
  left: 1.2rem;
  bottom: 1rem;
  color: var(--sage);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.studio-ribbon {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 42%;
  height: 5px;
  background: var(--plum);
  opacity: 0.35;
}

.studio-ribbon::before {
  content: "";
  position: absolute;
  right: 64px;
  bottom: 0;
  width: 5px;
  height: 120px;
  background: var(--plum);
}

.studio-tag {
  position: absolute;
  right: 4%;
  top: 9%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  border: 1px solid rgba(95,48,77,0.20);
  border-radius: 50%;
  color: rgba(95,48,77,0.34);
  font-family: var(--mono);
  font-size: 0.6rem;
  text-align: center;
  transform: rotate(-8deg);
}

.studio-tag strong {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
}

.closing-section {
  background: #f3e9e5;
}

.closing-grid {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.closing-copy {
  max-width: 700px;
}

.closing-art {
  position: relative;
  min-height: 275px;
  overflow: hidden;
  border: 1px solid rgba(48,48,46,0.13);
  background: var(--paper);
}

.closing-label {
  position: absolute;
  left: 32px;
  top: 32px;
  width: 228px;
  padding: 1rem;
  border: 1px solid var(--plum);
  background: var(--cream);
}

.closing-label span,
.closing-label strong {
  display: block;
}

.closing-kicker,
.closing-label > span:last-child {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.closing-kicker {
  color: var(--plum);
}

.closing-label strong {
  margin: 0.25rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.closing-petal {
  position: absolute;
  width: 46px;
  height: 78px;
  border-radius: 70% 70% 55% 55%;
  background: var(--rose-soft);
}

.cp1 {
  right: 68px;
  top: 54px;
  transform: rotate(22deg);
}

.cp2 {
  right: 112px;
  top: 100px;
  background: var(--sage-soft);
  transform: rotate(-26deg);
}

.cp3 {
  right: 48px;
  top: 136px;
  background: var(--peach);
  transform: rotate(48deg);
}

.closing-stem {
  position: absolute;
  right: 95px;
  top: 78px;
  width: 1px;
  height: 155px;
  background: var(--sage);
  transform: rotate(-12deg);
}

.closing-ribbon {
  position: absolute;
  right: 0;
  bottom: 38px;
  width: 58%;
  height: 5px;
  background: var(--plum);
  opacity: 0.5;
}

.legal-section {
  background: #e8deda;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.legal-card {
  padding: 2rem;
  border: 1px solid rgba(48,48,46,0.12);
  background: rgba(253,248,242,0.62);
}

.legal-card h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid rgba(48,48,46,0.12);
  background: #e8deda;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

.footer-brand {
  display: grid;
  gap: 0.15rem;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
}

.footer-brand span {
  color: var(--plum-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

@media (max-width: 960px) {
  .header-inner {
    min-height: auto;
    padding: 1rem 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .hero-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 430px;
  }

  .about-grid {
    grid-template-columns: 56px 1fr;
  }

  .about-copy {
    grid-column: 2;
  }

  .floral-label {
    grid-template-columns: 44px 62px 1fr;
  }

  .label-ref {
    grid-column: 3;
    justify-self: start;
    margin-bottom: 1rem;
  }

  .sequence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 4rem 0;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2.1rem, 10vw, 3.1rem);
  }

  .hero {
    padding-top: 3rem;
  }

  .micro-label {
    grid-template-columns: 1fr;
  }

  .micro-rule {
    display: none;
  }

  .hero-art {
    min-height: 360px;
  }

  .art-back {
    inset: 22px 0 0 34px;
  }

  .art-front {
    inset: 0 20px 18px 0;
  }

  .petal-one {
    left: 10%;
    top: 25%;
    transform: scale(0.8);
  }

  .petal-two {
    right: 6%;
    bottom: 16%;
    transform: rotate(18deg) scale(0.82);
  }

  .florist-tag {
    right: 22px;
    bottom: 22px;
    width: 190px;
  }

  .about-grid,
  .section-heading,
  .studio-heading {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .about-copy {
    grid-column: auto;
  }

  .floral-label {
    grid-template-columns: 34px 50px 1fr;
    gap: 0.8rem;
  }

  .sequence-grid {
    grid-template-columns: 1fr;
  }

  .sequence-card {
    min-height: 138px;
  }

  .studio-tag {
    right: -22px;
    top: 16px;
    transform: rotate(-8deg) scale(0.78);
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .main-nav {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 0.55rem 1rem;
  }

  .main-nav a {
    font-size: 0.74rem;
  }

  .hero-art {
    min-height: 330px;
  }

  .florist-tag {
    max-width: 68%;
    padding: 0.8rem 0.9rem;
  }

  .label-title {
    font-size: 1.45rem;
  }

  .closing-label {
    left: 20px;
    top: 20px;
    max-width: 68%;
  }

  .legal-card,
  .studio-panel {
    padding: 1.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
