/* ==========================================================
   Y Lash Studio, London
   ========================================================== */

:root {
  --yl-bone: #F5EFE6;
  --yl-sand: #E9DDCB;
  --yl-travertine: #D8C4A6;
  --yl-espresso: #2B1F18;
  --yl-espresso-hover: #46342A;
  --yl-cocoa: #4A3A30;
  --yl-taupe: #76675A;
  --yl-brass: #B08A4E;
  --yl-brass-deep: #7A5830;
  --yl-line: rgba(43, 31, 24, .16);
  --yl-bone-on-dark: #EDE4D6;

  --yl-serif: "Cormorant Garamond", "Playfair Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --yl-serif-roman: "Iowan Old Style", "Palatino Linotype", Palatino, "Playfair Display", Georgia, serif;
  --yl-sans: "Helvetica Neue", Helvetica, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --yl-ease: cubic-bezier(.22, 1, .36, 1);
  --yl-dur: 240ms;

  --yl-gutter: 48px;
  --yl-gap: 24px;
  --yl-section: 136px;
  --yl-head: 64px;
  --yl-head-small: 52px;
}

@media (max-width: 760px) {
  :root {
    --yl-gutter: 20px;
    --yl-gap: 16px;
    --yl-section: 72px;
  }
}

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

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

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

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

body {
  margin: 0;
  background: var(--yl-bone);
  color: var(--yl-cocoa);
  font-family: var(--yl-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@supports (overflow-x: clip) {
  body { overflow-x: clip; }
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; }

[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--yl-brass-deep);
  outline-offset: 2px;
}

main:focus { outline: none; }

.yl-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.yl-skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--yl-espresso);
  color: var(--yl-bone);
  font: 500 12px/1.3 var(--yl-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
}
.yl-skip:focus { top: 12px; }

section[id], article[id] { scroll-margin-top: var(--yl-head-small); }

/* ---------- Layout ---------- */

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

.yl-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--yl-gap);
}
.yl-grid > * { min-width: 0; }

@media (max-width: 760px) {
  .yl-grid { grid-template-columns: minmax(0, 1fr); }
  .yl-grid > * { grid-column: 1 / -1; }
}

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

/* ---------- Type ---------- */

.yl-label {
  font: 500 11px/1.5 var(--yl-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--yl-brass-deep);
}

.yl-h2 {
  margin-top: 18px;
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.025em;
  color: var(--yl-espresso);
  text-wrap: balance;
}

.yl-h3 {
  margin-top: 14px;
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.015em;
  color: var(--yl-espresso);
  text-wrap: balance;
}

.yl-lead {
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--yl-espresso);
  text-wrap: pretty;
}

.yl-body {
  margin-top: 22px;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.65;
  color: var(--yl-cocoa);
}

.yl-small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--yl-taupe);
}

.yl-subhead {
  margin-top: 32px;
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.1;
  color: var(--yl-espresso);
}

.yl-caption {
  margin-top: 12px;
  font: 400 11px/1.5 var(--yl-sans);
  letter-spacing: .08em;
  color: var(--yl-taupe);
}

/* ---------- Buttons & links ---------- */

.yl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border: 1px solid var(--yl-espresso);
  border-radius: 0;
  background: var(--yl-espresso);
  color: var(--yl-bone);
  font: 500 12px/1.35 var(--yl-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition:
    background-color var(--yl-dur) var(--yl-ease),
    border-color var(--yl-dur) var(--yl-ease),
    color var(--yl-dur) var(--yl-ease),
    transform var(--yl-dur) var(--yl-ease);
}
.yl-btn:hover { background: var(--yl-espresso-hover); border-color: var(--yl-espresso-hover); }
.yl-btn:active { transform: scale(.98); }

.yl-btn--ghost {
  background: transparent;
  color: var(--yl-espresso);
}
.yl-btn--ghost:hover {
  background: var(--yl-espresso);
  border-color: var(--yl-espresso);
  color: var(--yl-bone);
}

.yl-btn--sm { min-height: 40px; padding: 10px 22px; }

.yl-btn--case { text-transform: none; letter-spacing: .08em; font-size: 14px; }

.yl-id { text-transform: none; letter-spacing: .06em; }

.yl-tlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 12px/1.3 var(--yl-sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yl-espresso);
  text-decoration: none;
}
.yl-tlink::after {
  content: "";
  position: absolute;
  left: 0;
  right: .22em;
  bottom: 11px;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
}
.yl-tlink:hover::after { animation: yl-redraw 560ms var(--yl-ease); }

@keyframes yl-redraw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------- Lash arc & number ---------- */

.yl-arc {
  display: block;
  width: 56px;
  height: 24px;
  color: var(--yl-brass);
  overflow: visible;
  flex-shrink: 0;
}

.yl-num {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 22px;
}
.yl-num__digits {
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.2rem, 5vw, 4.6rem);
  line-height: .8;
  letter-spacing: -.02em;
  color: var(--yl-brass);
}
.yl-num .yl-arc { margin-bottom: 6px; }

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

.yl-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--yl-head);
  border-bottom: 1px solid transparent;
  background: transparent;
  transition:
    height var(--yl-dur) var(--yl-ease),
    background-color var(--yl-dur) var(--yl-ease),
    border-color var(--yl-dur) var(--yl-ease);
}
.yl-head.is-scrolled {
  height: var(--yl-head-small);
  background: rgb(245, 239, 230);
  border-bottom-color: var(--yl-line);
}

.yl-head__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.yl-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  color: var(--yl-espresso);
  text-decoration: none;
  flex-shrink: 0;
}
.yl-logo__name {
  font-family: var(--yl-serif-roman);
  font-style: normal;
  font-weight: 400;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .22em;
  margin-right: -.22em;
}
.yl-logo__city {
  margin-top: 5px;
  font: 500 9px/1 var(--yl-sans);
  letter-spacing: .4em;
  margin-right: -.4em;
  color: var(--yl-taupe);
}

.yl-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  min-width: 0;
}
.yl-nav__list { display: flex; gap: 32px; }
.yl-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font: 500 12px/1 var(--yl-sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yl-espresso);
  text-decoration: none;
}
.yl-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: .2em;
  bottom: 10px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--yl-dur) var(--yl-ease);
}
.yl-nav__link:hover::after { transform: scaleX(1); }

.yl-burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yl-espresso);
  cursor: pointer;
}
.yl-burger__line {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: currentColor;
}
.yl-burger__line:first-child { top: 18px; }
.yl-burger__line:last-child { top: 26px; left: 17px; }

@media (max-width: 760px) {
  .yl-nav { display: none; }
  .yl-burger { display: block; }
}

/* ---------- Mobile menu ---------- */

.yl-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 0 var(--yl-gutter) 40px;
  background: var(--yl-bone);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.yl-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--yl-head);
}
.yl-menu__close {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--yl-espresso);
  cursor: pointer;
}
.yl-menu__x::before,
.yl-menu__x::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 22px;
  height: 1px;
  background: currentColor;
}
.yl-menu__x::before { transform: rotate(45deg); }
.yl-menu__x::after { transform: rotate(-45deg); }

.yl-menu__list { margin-top: 32px; border-bottom: 1px solid var(--yl-line); }
.yl-menu__list li { border-top: 1px solid var(--yl-line); }
.yl-menu__link {
  display: flex;
  align-items: center;
  min-height: 72px;
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--yl-espresso);
  text-decoration: none;
}
.yl-menu__link--book { color: var(--yl-brass-deep); }

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

.yl-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  max-height: 900px;
  overflow: hidden;
  background: var(--yl-travertine);
}
.yl-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 68%;
}
.yl-hero__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 62% 70% at 18% 62%, rgba(245, 239, 230, .62) 0%, rgba(245, 239, 230, .28) 55%, rgba(245, 239, 230, 0) 100%),
    linear-gradient(20deg, rgba(245, 239, 230, .78) 0%, rgba(245, 239, 230, 0) 58%);
  pointer-events: none;
}
.yl-hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: 72px;
}

@media (min-width: 761px) {
  .yl-hero__text { grid-column: 1 / span 8; }
}

.yl-hero__title {
  margin-top: 22px;
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3.6rem, 12vw, 10.5rem);
  line-height: .88;
  letter-spacing: -.03em;
  color: var(--yl-espresso);
}
.yl-hero__line { display: block; }
.yl-hero__line--accent { padding-left: .3em; color: var(--yl-brass); }

.yl-hero__body {
  margin-top: 28px;
  max-width: 28em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--yl-espresso);
}
.yl-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.yl-hero__scroll {
  position: absolute;
  right: var(--yl-gutter);
  bottom: 72px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font: 500 11px/1 var(--yl-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--yl-espresso);
}
.yl-hero__scroll-line {
  display: block;
  width: 1px;
  height: 64px;
  background: rgba(43, 31, 24, .45);
}

@media (min-width: 1329px) {
  .yl-hero__scroll { right: calc((100vw - 1200px) / 2); }
}

@media (max-width: 760px) {
  .yl-hero { min-height: 560px; max-height: none; }
  .yl-hero__veil {
    background: linear-gradient(0deg, rgba(245, 239, 230, .9) 0%, rgba(245, 239, 230, .72) 40%, rgba(245, 239, 230, .3) 62%, rgba(245, 239, 230, 0) 80%);
  }
  .yl-hero__content { padding-bottom: 36px; }
  .yl-hero__title { margin-top: 16px; }
  .yl-hero__body { margin-top: 20px; font-size: 16px; }
  .yl-hero__actions { flex-direction: column; margin-top: 26px; }
  .yl-hero__actions .yl-btn { width: 100%; }
  .yl-hero__scroll { display: none; }
}

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

.yl-offer {
  background: var(--yl-sand);
  border-bottom: 1px solid var(--yl-line);
}
.yl-offer__in {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding-block: 16px;
}
.yl-offer__label { flex-shrink: 0; }
.yl-offer__text { flex: 1 1 auto; min-width: 0; }
.yl-offer__line {
  font-size: 15px;
  line-height: 1.5;
  color: var(--yl-espresso);
}
.yl-offer__text .yl-small { margin-top: 2px; }
.yl-offer__link { flex-shrink: 0; }

@media (max-width: 760px) {
  .yl-offer__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-block: 28px 20px;
  }
  .yl-offer__link { margin-top: 2px; }
}

/* ---------- Intro ---------- */

.yl-intro { padding-bottom: 0; }
.yl-intro__arc {
  justify-self: end;
  margin-top: .5em;
}

@media (min-width: 761px) {
  .yl-intro__arc { grid-column: 1 / span 2; }
  .yl-intro__lead { grid-column: 3 / span 9; }
}

@media (max-width: 760px) {
  .yl-intro__arc { justify-self: start; margin: 0 0 20px; }
}

/* ---------- Section heads ---------- */

.yl-sechead {
  border-top: 1px solid var(--yl-line);
  padding-top: 28px;
}

/* ---------- Photo frames ---------- */

.yl-frame {
  position: relative;
  overflow: hidden;
  background: var(--yl-travertine);
  aspect-ratio: 4 / 5;
}
.yl-frame--square { aspect-ratio: 1 / 1; }
.yl-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--yl-ease);
}

@media (hover: hover) and (min-width: 761px) {
  .yl-frame:hover img { transform: scale(1.03); }
}

/* ---------- Services ---------- */

.yl-services .yl-sechead { margin-bottom: 96px; }

.yl-svc { align-items: start; }
.yl-svc + .yl-svc { margin-top: 160px; }
.yl-svc__media, .yl-svc__body { align-self: start; }

.yl-svc__note { margin-top: 20px; }
.yl-svc__body .yl-tlink { margin-top: 14px; }

.yl-facts { margin-top: 28px; border-bottom: 1px solid var(--yl-line); }
.yl-subhead + .yl-facts { margin-top: 14px; }
.yl-facts li {
  position: relative;
  padding: 13px 0 13px 28px;
  border-top: 1px solid var(--yl-line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--yl-cocoa);
}
.yl-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 12px;
  height: 1px;
  background: var(--yl-brass);
}

/* 휴대폰: 옆으로 넘기는 슬라이드 (다음 장이 살짝 보임). 761px부터는 예전 지그재그 */
.yl-svc-track {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0 calc(var(--yl-gutter) * -1);
  padding: 0 var(--yl-gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--yl-gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.yl-svc-track::-webkit-scrollbar { display: none; }
.yl-svc-track > .yl-svc {
  flex: 0 0 84%;
  scroll-snap-align: start;
}
.yl-svc-track > .yl-svc + .yl-svc { margin-top: 0; }
.yl-svc-track .yl-svc__body { margin-top: 24px; }
.yl-svc-track .yl-frame { aspect-ratio: 4 / 3; }
/* 좁은 장에서 링크가 두 줄이 돼도 밑줄이 글자를 긋지 않게 */
.yl-svc-track .yl-tlink {
  text-decoration: underline 1px;
  text-underline-offset: 6px;
}
.yl-svc-track .yl-tlink::after { display: none; }
/* 옆에 있는 장은 화면에 안 들어와도 글이 보이게 */
.yl-motion .yl-svc-track [data-reveal]:not(.is-in) .yl-rv { opacity: 1; transform: none; }
.yl-svc-count {
  margin-top: 24px;
  font: 500 11px/1.5 var(--yl-sans);
  letter-spacing: .3em;
  color: var(--yl-brass-deep);
}

@media (min-width: 761px) {
  .yl-svc-track {
    display: block;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .yl-svc-track > .yl-svc + .yl-svc { margin-top: 160px; }
  .yl-svc-track .yl-svc__body { margin-top: 0; }
  .yl-svc-track .yl-frame { aspect-ratio: 4 / 5; }
  .yl-svc-track .yl-frame--square { aspect-ratio: 1 / 1; }
  .yl-svc-track .yl-tlink { text-decoration: none; }
  .yl-svc-track .yl-tlink::after { display: block; }
  .yl-motion .yl-svc-track [data-reveal]:not(.is-in) .yl-rv { opacity: 0; transform: translateY(12px); }
  .yl-svc-count { display: none; }

  .yl-svc > * { grid-row: 1; }

  .yl-svc--1 .yl-svc__media { grid-column: 1 / span 5; }
  .yl-svc--1 .yl-svc__body { grid-column: 7 / span 6; padding-top: 96px; }

  .yl-svc--2 .yl-svc__media { grid-column: 7 / span 6; margin-top: -64px; }
  .yl-svc--2 .yl-svc__body { grid-column: 1 / span 5; padding-top: 24px; }

  .yl-svc--3 .yl-svc__media { grid-column: 2 / span 5; }
  .yl-svc--3 .yl-svc__body { grid-column: 8 / span 5; padding-top: 72px; }
}

@media (max-width: 760px) {
  .yl-services .yl-sechead { margin-bottom: 48px; }
  .yl-svc + .yl-svc { margin-top: 72px; }
  .yl-svc__body { margin-top: 32px; }
}

/* ---------- Lash menu ---------- */

.yl-lashmenu {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--yl-sand);
}
.yl-lashmenu::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 34% 24% at 16% 28%, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 28% 20% at 82% 74%, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(ellipse 20% 14% at 58% 16%, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 70%);
}

@media (min-width: 761px) {
  .yl-lashmenu__intro { grid-column: 1 / span 4; }
  .yl-lashmenu__rows { grid-column: 6 / span 7; }
}

.yl-opt {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding-block: 24px;
  border-top: 1px solid var(--yl-line);
}
.yl-opt > * { min-width: 0; }
.yl-opt:last-of-type { border-bottom: 1px solid var(--yl-line); }

.yl-opt__title {
  padding-top: 6px;
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--yl-espresso);
}

.yl-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.yl-chip {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--yl-line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  color: var(--yl-espresso);
  white-space: nowrap;
}

.yl-lashmenu__cta { margin-top: 40px; }

@media (max-width: 760px) {
  .yl-lashmenu__rows { margin-top: 40px; }
  .yl-opt { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 20px; }
  .yl-opt__title { padding-top: 0; font-size: 1.6rem; }
  .yl-lashmenu__cta .yl-btn { width: 100%; }
}

/* ---------- Recent work ---------- */

.yl-work .yl-grid { align-items: center; }
.yl-work__media { width: 100%; max-width: 400px; }
.yl-work__body .yl-btn { margin-top: 32px; }

@media (min-width: 761px) {
  .yl-work__media { grid-column: 2 / span 4; }
  .yl-work__body { grid-column: 7 / span 6; }
}

@media (max-width: 760px) {
  .yl-work__media { width: 78%; max-width: 400px; margin-left: auto; }
  .yl-work__body { margin-top: 36px; }
}

/* ---------- Book ---------- */

.yl-book { border-top: 1px solid var(--yl-line); }
.yl-book .yl-grid { align-items: start; }

@media (min-width: 761px) {
  .yl-book__media { grid-column: 1 / span 5; }
  .yl-book__body { grid-column: 7 / span 6; }
}

.yl-form { margin-top: 24px; }

.yl-field {
  display: flex;
  flex-direction: column;
  margin-top: 28px;
  min-width: 0;
}
.yl-field__label {
  font: 500 11px/1.5 var(--yl-sans);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--yl-espresso);
}

.yl-input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--yl-espresso);
  border-radius: 0;
  background: transparent;
  color: var(--yl-espresso);
  font: 400 16px/1.4 var(--yl-sans);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--yl-dur) var(--yl-ease);
}
.yl-input:focus { border-bottom-color: var(--yl-brass-deep); }
.yl-input[aria-invalid="true"] {
  border-bottom: 2px solid var(--yl-brass-deep);
}

.yl-select {
  padding-right: 28px;
  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='%232B1F18' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  background-size: 12px 8px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.yl-select::-ms-expand { display: none; }

input[type="date"].yl-input { line-height: 52px; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }

.yl-textarea {
  height: auto;
  min-height: 112px;
  padding: 14px 0;
  resize: vertical;
  line-height: 1.6;
}

.yl-field__err {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--yl-brass-deep);
}

.yl-ext {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
}
.yl-ext > * { min-width: 0; }

.yl-form__submit { margin-top: 44px; }
.yl-form__note { margin-top: 16px; }

.yl-notice {
  margin-top: 32px;
  padding: 32px;
  background: var(--yl-sand);
}
.yl-notice:focus { outline: none; }
.yl-notice:focus-visible { outline: 2px solid var(--yl-brass-deep); outline-offset: 2px; }
.yl-notice__title {
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  color: var(--yl-espresso);
}
.yl-notice .yl-body { margin-top: 12px; }
.yl-notice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 760px) {
  .yl-frame--about { aspect-ratio: 3 / 2; }
  .yl-frame--about img { object-position: 30% 62%; }
  .yl-book__body { margin-top: 36px; }
  .yl-ext { grid-template-columns: minmax(0, 1fr); }
  .yl-form__submit { width: 100%; }
  .yl-notice { padding: 24px 20px; }
  .yl-notice__actions { flex-direction: column; }
  .yl-notice__actions .yl-btn { width: 100%; }
}

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

.yl-contact__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
  border-top: 1px solid var(--yl-line);
  border-bottom: 1px solid var(--yl-line);
}
.yl-contact__col {
  min-width: 0;
  padding: 40px 32px;
}
.yl-contact__col:first-child { padding-left: 0; }
.yl-contact__col:last-child { padding-right: 0; }
.yl-contact__col + .yl-contact__col { border-left: 1px solid var(--yl-line); }

.yl-contact__big {
  margin: 14px 0 26px;
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.1;
  color: var(--yl-espresso);
  overflow-wrap: anywhere;
}
.yl-contact__hint { margin-top: 14px; }
.yl-contact__based { margin-top: 24px; }

@media (max-width: 760px) {
  .yl-contact__cols { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
  .yl-contact__col { padding: 32px 0; }
  .yl-contact__col + .yl-contact__col { border-left: 0; border-top: 1px solid var(--yl-line); }
  .yl-contact__col .yl-btn { width: 100%; }
}

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

.yl-foot {
  overflow: hidden;
  padding: 96px 0 36px;
  background: var(--yl-espresso);
  color: var(--yl-bone-on-dark);
}
.yl-foot :focus-visible { outline-color: var(--yl-bone-on-dark); }

.yl-foot__mark {
  margin-bottom: 56px;
  font-family: var(--yl-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 9rem);
  line-height: .9;
  letter-spacing: -.03em;
  color: rgba(237, 228, 214, .22);
  user-select: none;
}

.yl-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(237, 228, 214, .16);
}
.yl-foot__row > * { min-width: 0; }
.yl-foot__name {
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--yl-bone-on-dark);
}
.yl-foot__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.yl-foot .yl-tlink { color: var(--yl-bone-on-dark); }

.yl-foot__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
}
.yl-foot__small {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(237, 228, 214, .64);
}

@media (max-width: 760px) {
  .yl-foot { padding-top: 72px; }
  .yl-foot__mark { margin-bottom: 40px; }
  .yl-foot__row { flex-direction: column; align-items: flex-start; }
  .yl-foot__links { gap: 0 22px; }
  .yl-foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Motion (only with .yl-motion from JS; text blocks only) ---------- */

.yl-motion .yl-rv {
  transition:
    opacity 600ms var(--yl-ease),
    transform 600ms var(--yl-ease);
}
.yl-motion [data-reveal]:not(.is-in) .yl-rv {
  opacity: 0;
  transform: translateY(12px);
}

.yl-motion .yl-hero__title { animation: yl-rise 900ms var(--yl-ease) both; }

@keyframes yl-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { --yl-dur: 120ms; }
  .yl-frame img { transition: none; }
  .yl-frame:hover img { transform: none; }
  .yl-tlink:hover::after { animation: none; }
  .yl-hero__title { animation: none; }
  .yl-rv { opacity: 1; transform: none; }
}

@media print {
  .yl-head, .yl-burger, .yl-menu, .yl-hero__scroll { display: none !important; }
  .yl-rv { opacity: 1 !important; transform: none !important; }
}

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