:root {
  --paper: #FAF6EF;
  --white: #FFFFFF;
  --blush: #F5E1E1;
  --ink: #24301F;
  --ash: #646157;
  --rose: #A3465D;
  --rose-d: #87374B;
  --stamen: #E38B2C;
  --leaf: #55704A;
  --line: rgba(36, 48, 31, 0.16);
  --on-dark-2: #C9CBBE;
  --on-dark-rose: #F0B7C2;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 76px;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
a { color: inherit; }

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

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#band path, #band circle, #petal { vector-effect: non-scaling-stroke; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Type ---------- */
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 16px;
  line-height: 1.4;
}

.h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 136px);
  line-height: 0.94;
  letter-spacing: -0.03em;
}

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.025em;
}

.h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
}

.small { font-size: 15px; line-height: 1.55; color: var(--ash); }

.caption {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- Buttons & links ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 240ms ease, transform 160ms ease;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--rose-d); }
.btn-primary:active { transform: scale(0.98); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 240ms ease;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.text-link:hover { color: var(--rose); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  min-height: 44px;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-sub {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

.menu-btn {
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  color: var(--ink);
}
.menu-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 240ms ease;
}
.menu-btn[aria-expanded="true"] .menu-line:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-line:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.site-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 24px;
}
.site-nav.is-open { display: block; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 240ms ease;
}
.site-nav a:last-child { border-bottom: 0; }
.site-nav a:hover { color: var(--rose); }

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: var(--section-y);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 32px;
}
.hero-grid > * { min-width: 0; }

.hero-figure { margin: 0 -24px; }
.hero-figure .caption { padding: 0 24px; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
}

.lead { max-width: 34em; }

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 24px;
  row-gap: 0;
}

.band { display: block; color: var(--ink); }
.band-hero {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-top: 40px;
}

/* ---------- Tiles ---------- */
.tile { margin: 0; min-width: 0; }
.frame { overflow: hidden; }
.tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0;
  transition: transform 600ms ease;
}
.tile:hover img { transform: scale(1.03); }

/* ---------- Manifesto ---------- */
.manifesto-band {
  background: var(--blush);
  padding: var(--section-y) 0;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.manifesto-grid > * { min-width: 0; }
.manifesto-label { color: var(--ink); opacity: 0.8; }
.manifesto {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 68px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.manifesto em { font-style: italic; color: var(--rose); }

.divider { padding: 8px 0; }
.divider svg {
  display: block;
  width: 100%;
  max-width: 600px;
  height: 40px;
  margin: 0 auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linecap: round;
}
.divider line { vector-effect: non-scaling-stroke; }
.manifesto-divider { margin-top: 56px; }

/* ---------- Flowers ---------- */
.flowers-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 24px;
  margin-bottom: 56px;
}
.flowers-head > * { min-width: 0; }
.flowers-intro p { margin-bottom: 4px; }

.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 40px;
}

/* ---------- Uses ---------- */
.uses-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 40px;
}
.uses-grid > * { min-width: 0; }

.uses-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.uses-list li:last-child { border-bottom: 1px solid var(--line); }
.uses-list li > div { min-width: 0; }
.uses-list p { color: var(--ash); margin-top: 8px; }
.petal-mark {
  width: 20px;
  height: 30px;
  margin-top: -2px;
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.25;
}
.uses-note { margin-top: 24px; }

/* ---------- Order (dark) ---------- */
.dark { background: var(--ink); color: var(--paper); }
.dark .label { color: var(--on-dark-2); }
.dark .caption { color: var(--on-dark-2); }
.dark .text-link { color: var(--paper); }
.dark .text-link:hover { color: var(--on-dark-rose); }

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 40px;
}
.order-grid > * { min-width: 0; }

.check-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(250, 246, 239, 0.16);
}
.check-list li:last-child { border-bottom: 1px solid rgba(250, 246, 239, 0.16); }
.check-list span { min-width: 0; }
.leaf-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 27px;
  margin-top: 0;
  fill: var(--leaf);
  stroke: var(--paper);
  stroke-width: 1;
}

.price-note { margin-top: 24px; color: var(--on-dark-2); }

.alert {
  margin: 32px 0 16px;
  padding: 20px 22px;
  background: var(--blush);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.alert-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--rose);
}

/* ---------- Enquire ---------- */
.enquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 56px;
}
.enquire-grid > * { min-width: 0; }
.enquire-lead { margin-top: 24px; color: var(--ash); }

.contact-list { margin-top: 40px; }
.contact-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 1px solid var(--line); }
.contact-row dt {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}
.contact-row dd { min-width: 0; }
.plain-value { display: inline-flex; align-items: center; min-height: 44px; }

.form-col { padding-right: 10px; }
.form-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--rose-d);
  padding: 28px 22px;
}
.form-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 24px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid rgba(36, 48, 31, 0.4);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  transition: border-color 240ms ease;
}
.field textarea {
  padding: 12px 16px;
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2324301F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field ::placeholder { color: var(--ash); opacity: 1; }

.form-small { margin: 4px 0 20px; }
.btn-submit { width: 100%; }

.form-notice:empty { display: none; }
.form-notice {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--blush);
  border: 1.5px solid var(--ink);
}
.form-notice p { margin-bottom: 8px; }
.form-notice .notice-links { display: flex; flex-wrap: wrap; column-gap: 24px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-y) 0 40px;
}
.band-footer {
  color: var(--paper);
  width: 100%;
  height: auto;
}
.footer-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 11vw, 150px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(250, 246, 239, 0.16);
}
.footer-grid > * { min-width: 0; }
.footer-line { font-size: 17px; }
.footer-small { color: var(--on-dark-2); margin-top: 8px; }
.footer-links .text-link { color: var(--paper); }
.footer-links .text-link:hover { color: var(--on-dark-rose); }
.copyright {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* ---------- Mobile contact bar ---------- */
.contact-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: 60px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px 0 20px;
}
.btn-bar { min-height: 44px; padding: 0 20px; }

/* ================= Larger screens ================= */

@media (min-width: 480px) {
  body { font-size: 18px; }
  .field input, .field select, .field textarea { font-size: 17px; }
  .form-card { padding: 32px 28px; }
}

@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .contact-bar { display: none; }
  .brand-sub { display: inline; }

  .hero-figure { margin: 0; }
  .hero-figure .caption { padding: 0; }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 40px;
  }
  .gallery .g2, .gallery .g4 { margin-top: 64px; }

  .contact-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    column-gap: 16px;
  }
  .form-card { padding: 40px; }
}

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 32px;
  }
  .site-nav a { min-height: 44px; border-bottom: 0; }

  .hero-grid,
  .manifesto-grid,
  .flowers-head,
  .gallery,
  .uses-grid,
  .order-grid,
  .enquire-grid,
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 24px;
  }

  /* Hero */
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-grid { row-gap: 0; align-items: start; }
  .hero-head { grid-column: 1 / 7; grid-row: 1; align-self: end; padding-top: 24px; }
  .hero-head .label { margin-bottom: 40px; }
  .hero-body { grid-column: 1 / 7; grid-row: 2; padding-top: 40px; }
  .hero-figure { grid-column: 7 / 13; grid-row: 1 / 3; }
  .hero-figure img { max-height: 84vh; }
  .lead { font-size: 20px; }

  /* Manifesto */
  .manifesto-label { grid-column: 1 / 3; padding-top: 0.9em; }
  .manifesto { grid-column: 3 / 12; }
  .manifesto-divider { grid-column: 1 / 13; margin-top: 72px; }

  /* Flowers */
  .flowers-head { align-items: end; margin-bottom: 96px; }
  .flowers-title { grid-column: 1 / 8; }
  .flowers-intro { grid-column: 9 / 13; }
  .gallery { row-gap: 64px; align-items: start; }
  .gallery .g1 { grid-column: 1 / 8; margin-top: 0; }
  .gallery .g2 { grid-column: 9 / 13; margin-top: 120px; }
  .gallery .g3 { grid-column: 2 / 6; margin-top: 40px; }
  .gallery .g4 { grid-column: 7 / 13; margin-top: 0; }

  /* Uses */
  .uses-grid { align-items: start; }
  .uses-head { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 40px); }
  .uses-body { grid-column: 7 / 13; }

  /* Order */
  .order-grid { row-gap: 0; align-items: start; }
  .order-figure { grid-column: 1 / 6; grid-row: 1 / 3; }
  .order-head { grid-column: 7 / 13; grid-row: 1; margin-bottom: 40px; }
  .order-body { grid-column: 7 / 13; grid-row: 2; }

  /* Enquire */
  .enquire-grid { align-items: start; }
  .enquire-info { grid-column: 1 / 6; }
  .form-col { grid-column: 7 / 13; }

  /* Footer */
  .footer-left { grid-column: 1 / 7; }
  .footer-links { grid-column: 9 / 13; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .tile:hover img { transform: none; }
}

/* 사진 판 고르기용 감싸개 (optimize_images.py): 배치에 끼지 않음 */
picture{display:contents}
