/* KELLY LIN — shared stylesheet */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
  font-family: 'Inter', 'Noto Serif TC', serif;
  color: #2a2724; background: #f4ece1;
  -webkit-font-smoothing: antialiased; line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 48px;
  background: rgba(244,236,225,0.85); backdrop-filter: blur(10px);
  z-index: 100; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav .brand { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: 6px; font-weight: 500; }
.nav ul { list-style: none; display: flex; gap: 38px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.nav ul a { transition: opacity .2s; }
.nav ul a:hover { opacity: 0.5; }
.nav ul .active { border-bottom: 1px solid #2a2724; }

/* ---------- HOME: intro ---------- */
.intro {
  position: relative;
  padding: 140px 8% 80px;
  background: linear-gradient(180deg, #f4ece1 0%, #f4ece1 60%, #7d3535 60%, #7d3535 100%);
}
.intro-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 40px; border-bottom: 1px solid #cdbfae;
}
.intro-header .eyebrow { font-size: 11px; letter-spacing: 4px; color: #8a7e6e; text-transform: uppercase; }
.intro-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 82px); font-weight: 400;
  letter-spacing: 3px; line-height: 1; margin-top: 8px;
}
.intro-header .season { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: #5a5247; }

.intro-hero { margin-top: 60px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.ed-card { position: relative; background: #7d3535; padding: 40px 40px 60px; color: #f4ece1; max-width: 520px; box-shadow: 0 40px 60px rgba(0,0,0,0.15); }
.ed-oval { width: 100%; aspect-ratio: 3/4; border-radius: 50% / 40%; overflow: hidden; background: #1b1b1b; }
.ed-oval img { width: 100%; height: 100%; object-fit: cover; }
.ed-card .quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; text-align: center; margin-top: 28px; }
.ed-card h2 { font-family: 'Great Vibes', cursive; font-size: 78px; text-align: center; line-height: 1; margin: 8px 0 20px; font-weight: 400; }
.ed-card .meta { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 3px; border-top: 1px solid rgba(244,236,225,0.35); padding-top: 20px; text-transform: uppercase; }
.intro-text { color: #f4ece1; padding: 40px 20px; }
.intro-text p { font-family: 'Noto Serif TC', serif; font-size: 15px; line-height: 2.1; max-width: 420px; }
.intro-text .sign { font-family: 'Great Vibes', cursive; font-size: 48px; margin-top: 24px; }

/* ---------- HOME: collection grid ---------- */
.collection { padding: 100px 6% 120px; background: #f4ece1; }
.section-title { text-align: center; margin-bottom: 80px; }
.section-title .small { font-size: 11px; letter-spacing: 4px; color: #8a7e6e; text-transform: uppercase; }
.section-title h3 { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 48px; font-weight: 400; margin-top: 8px; letter-spacing: 2px; }
.section-title p { margin-top: 16px; font-size: 13px; color: #5a5247; font-family: 'Noto Serif TC', serif; }

.outfits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; max-width: 1160px; margin: 0 auto; }
.outfit { position: relative; display: block; transition: transform .35s ease; }
.outfit:hover { transform: translateY(-6px); }
.outfit:nth-child(3n+1) { margin-top: 0; }
.outfit:nth-child(3n+2) { margin-top: 60px; }
.outfit:nth-child(3n+3) { margin-top: 24px; }

.polaroid { background: #fff; padding: 14px 14px 60px; box-shadow: 0 10px 22px rgba(0,0,0,0.08); position: relative; }
.polaroid .img-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; background: #efe5d7; }
.polaroid .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.outfit:hover .polaroid .img-wrap img { transform: scale(1.04); }
.polaroid .num { position: absolute; top: 22px; right: 22px; background: rgba(244,236,225,0.92); font-family: 'Cormorant Garamond', serif; font-size: 18px; letter-spacing: 2px; padding: 4px 10px; color: #2a2724; }
.polaroid .label { margin-top: 20px; text-align: center; }
.polaroid .label .en { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; letter-spacing: 1px; color: #2a2724; }
.polaroid .label .zh { font-family: 'Noto Serif TC', serif; font-size: 12px; color: #5a5247; margin-top: 4px; letter-spacing: 2px; }
.polaroid .tape { position: absolute; width: 80px; height: 22px; background: rgba(125,53,53,0.18); top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg); }
.outfit:nth-child(even) .polaroid .tape { transform: translateX(-50%) rotate(3deg); }
.script-overlay { position: absolute; font-family: 'Great Vibes', cursive; font-size: 60px; color: #7d3535; right: -10px; bottom: 20px; transform: rotate(-6deg); pointer-events: none; opacity: 0; transition: opacity .35s ease; }
.outfit:hover .script-overlay { opacity: 1; }

/* ---------- OUTFIT PAGE ---------- */
.head-strip {
  padding: 140px 8% 40px;
  display: flex; justify-content: space-between; align-items: flex-end;
  border-bottom: 1px solid #cdbfae;
}
.head-strip .num { font-family: 'Cormorant Garamond', serif; font-size: 100px; font-weight: 300; color: #cdbfae; line-height: 1; }
.head-strip .title-block { text-align: center; }
.head-strip .title-block .eyebrow { font-size: 11px; letter-spacing: 4px; color: #8a7e6e; text-transform: uppercase; }
.head-strip .title-block h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 5vw, 64px); font-weight: 400; letter-spacing: 3px; margin-top: 6px; line-height: 1.1; }
.head-strip .title-block .zh { font-family: 'Noto Serif TC', serif; font-size: 14px; color: #5a5247; margin-top: 10px; letter-spacing: 3px; }
.head-strip .side { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: #5a5247; }

.main { display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; padding: 70px 8% 60px; align-items: start; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery.single { grid-template-columns: 1fr; max-width: 640px; }
.gallery .cell { position: relative; background: #fff; padding: 12px 12px 16px; box-shadow: 0 10px 24px rgba(0,0,0,0.08); cursor: zoom-in; transition: transform .3s ease; }
.gallery .cell:hover { transform: translateY(-4px); }
.gallery .cell img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #efe5d7; }
.gallery .cell .cap { margin-top: 10px; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13px; color: #5a5247; letter-spacing: 2px; }
.gallery .cell:first-child { grid-column: 1 / -1; }
.gallery.single .cell:first-child { grid-column: auto; }

.desc-panel { position: sticky; top: 100px; background: #fff; padding: 40px 36px 44px; border: 1px solid #e5dccb; box-shadow: 0 14px 28px rgba(0,0,0,0.05); }
.desc-panel .eyebrow { font-size: 10px; letter-spacing: 4px; color: #8a7e6e; text-transform: uppercase; }
.desc-panel h2 { font-family: 'Great Vibes', cursive; font-size: 42px; color: #7d3535; font-weight: 400; margin: 6px 0 20px; }
.desc-panel .divider { width: 40px; height: 1px; background: #7d3535; margin-bottom: 24px; }
.desc-panel .label { font-size: 10px; letter-spacing: 3px; color: #8a7e6e; text-transform: uppercase; margin: 22px 0 8px; }
.desc-panel .value { font-family: 'Noto Serif TC', serif; font-size: 14px; color: #2a2724; white-space: pre-line; line-height: 1.9; min-height: 40px; padding: 6px 0; border-bottom: 1px dashed #e5dccb; }
.desc-panel .value.long { min-height: 110px; }
.contact-btn { display: inline-block; margin-top: 24px; padding: 12px 28px; border: 1px solid #2a2724; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; text-align: center; transition: all .25s; }
.contact-btn:hover { background: #2a2724; color: #f4ece1; }

.back-bar { display: flex; justify-content: space-between; align-items: center; padding: 40px 8% 80px; border-top: 1px solid #cdbfae; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
.back-bar a { transition: opacity .2s; }
.back-bar a:hover { opacity: 0.55; }

/* ---------- LIGHTBOX ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(20,15,12,0.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 40px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.lightbox .close { position: absolute; top: 24px; right: 30px; color: #f4ece1; font-size: 32px; font-weight: 300; cursor: pointer; line-height: 1; background: none; border: 0; }
.lightbox .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(244,236,225,0.1); border: 1px solid rgba(244,236,225,0.4); color: #f4ece1; width: 48px; height: 48px; cursor: pointer; font-size: 22px; transition: background .2s; }
.lightbox .nav-btn:hover { background: rgba(244,236,225,0.25); }
.lightbox .prev { left: 30px; }
.lightbox .next { right: 30px; }
.lightbox .counter { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: #f4ece1; font-size: 12px; letter-spacing: 3px; }

/* ---------- CLOSING / FOOTER ---------- */
.closing { padding: 120px 8%; text-align: center; background: #f4ece1; border-top: 1px solid #cdbfae; }
.closing h4 { font-family: 'Great Vibes', cursive; font-size: 68px; color: #7d3535; font-weight: 400; margin-bottom: 24px; }
.closing p { font-family: 'Noto Serif TC', serif; font-size: 14px; color: #5a5247; max-width: 520px; margin: 0 auto; line-height: 2; }
.closing .btn { display: inline-block; margin-top: 40px; padding: 14px 44px; border: 1px solid #2a2724; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; transition: all .25s; }
.closing .btn:hover { background: #2a2724; color: #f4ece1; }

footer { text-align: center; padding: 40px 20px; font-size: 11px; letter-spacing: 2px; color: #8a7e6e; background: #efe5d7; }
footer .brand-mark { font-family: 'Cormorant Garamond', serif; font-size: 26px; letter-spacing: 8px; color: #2a2724; margin-bottom: 10px; }
footer a { color: #5a5247; text-decoration: underline; }

/* ---------- LOOKBOOK ---------- */
.lookbook { padding: 140px 8% 80px; }
.lookbook-title { text-align: center; margin-bottom: 60px; }
.lookbook-title h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(42px, 6vw, 72px); font-weight: 400; letter-spacing: 3px; }
.lookbook-title p { margin-top: 10px; color: #5a5247; font-size: 13px; letter-spacing: 2px; }
.lookbook-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1160px; margin: 0 auto; }
.lookbook-grid .cell { display: block; background: #fff; padding: 10px 10px 14px; box-shadow: 0 8px 18px rgba(0,0,0,0.08); transition: transform .3s; }
.lookbook-grid .cell:hover { transform: translateY(-4px); }
.lookbook-grid img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #efe5d7; }
.lookbook-grid .cap { margin-top: 8px; text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 13px; color: #5a5247; letter-spacing: 2px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav ul { display: none; }
  .intro { padding: 120px 5% 40px; background: linear-gradient(180deg, #f4ece1 0%, #f4ece1 72%, #7d3535 72%, #7d3535 100%); }
  .intro-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .intro-hero { grid-template-columns: 1fr; gap: 30px; }
  .ed-card h2 { font-size: 54px; }
  .outfits { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .outfit:nth-child(3n+1), .outfit:nth-child(3n+2), .outfit:nth-child(3n+3) { margin-top: 0; }
  .outfit:nth-child(even) { margin-top: 24px; }
  .closing { padding: 80px 5%; }
  .closing h4 { font-size: 48px; }
  .head-strip { flex-direction: column; gap: 14px; padding: 120px 5% 30px; }
  .head-strip .num { font-size: 64px; }
  .main { grid-template-columns: 1fr; padding: 40px 5% 40px; gap: 36px; }
  .desc-panel { position: static; padding: 30px 24px; }
  .gallery { gap: 14px; }
  .back-bar { padding: 30px 5% 60px; flex-direction: column; gap: 14px; }
  .lightbox .nav-btn { width: 40px; height: 40px; }
  .lightbox .prev { left: 10px; } .lightbox .next { right: 10px; }
  .lookbook-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .outfits { grid-template-columns: 1fr; }
  .outfit:nth-child(even) { margin-top: 0; }
  .lookbook-grid { grid-template-columns: 1fr; }
}

/* ---------- ADMIN ---------- */
.admin-body { padding: 20px; font-family: 'Inter', 'Noto Serif TC', sans-serif; background: #f4ece1; min-height: 100vh; }
.admin-wrap { max-width: 1100px; margin: 0 auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 28px; border-bottom: 1px solid #cdbfae; margin-bottom: 28px; }
.admin-header h1 { font-family: 'Cormorant Garamond', serif; font-size: 30px; letter-spacing: 4px; font-weight: 400; }
.admin-header .actions { display: flex; gap: 12px; }
.admin-header a, .admin-header button {
  font: inherit; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid #2a2724; background: transparent; color: #2a2724;
  cursor: pointer; transition: all .2s;
}
.admin-header a:hover, .admin-header button:hover { background: #2a2724; color: #f4ece1; }

.flash { padding: 12px 16px; margin-bottom: 20px; border-left: 3px solid #7d3535; background: #fff; font-size: 13px; }
.flash.error { border-left-color: #b04040; color: #7a1a1a; }

.outfit-list { display: grid; gap: 12px; }
.outfit-row { display: grid; grid-template-columns: 40px 80px 1fr auto auto auto; gap: 14px; align-items: center;
  background: #fff; padding: 12px 16px; border: 1px solid #e5dccb; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
.outfit-row.hidden-outfit { opacity: 0.45; }
.outfit-row .drag { cursor: grab; font-size: 18px; color: #8a7e6e; text-align: center; user-select: none; }
.outfit-row img { width: 80px; aspect-ratio: 3/4; object-fit: cover; background: #efe5d7; }
.outfit-row .info .num { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #8a7e6e; letter-spacing: 2px; }
.outfit-row .info .title { font-family: 'Cormorant Garamond', serif; font-size: 20px; letter-spacing: 1px; }
.outfit-row .info .zh { font-size: 12px; color: #5a5247; margin-top: 3px; }
.outfit-row .btn-small { padding: 6px 14px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid #2a2724; background: transparent; color: #2a2724; cursor: pointer; text-decoration: none; display: inline-block; }
.outfit-row .btn-small:hover { background: #2a2724; color: #f4ece1; }
.outfit-row .btn-small.danger { border-color: #b04040; color: #b04040; }
.outfit-row .btn-small.danger:hover { background: #b04040; color: #fff; }

/* edit form */
.edit-form { background: #fff; padding: 30px 36px; border: 1px solid #e5dccb; box-shadow: 0 10px 24px rgba(0,0,0,0.06); }
.edit-form h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; margin-bottom: 20px; letter-spacing: 2px; font-weight: 400; }
.edit-form .row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px dashed #e5dccb; align-items: center; }
.edit-form label { font-size: 11px; letter-spacing: 2px; color: #8a7e6e; text-transform: uppercase; }
.edit-form input[type=text], .edit-form input[type=number], .edit-form textarea {
  font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid #cdbfae; background: #fff9f0;
  width: 100%; color: #2a2724;
}
.edit-form input:focus, .edit-form textarea:focus { outline: none; border-color: #7d3535; background: #fff; }
.edit-form textarea { min-height: 90px; resize: vertical; font-family: 'Noto Serif TC', serif; }
.edit-form .submit-row { margin-top: 24px; display: flex; gap: 12px; }
.edit-form .submit-row button, .edit-form .submit-row a {
  padding: 12px 28px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid #2a2724; background: #2a2724; color: #f4ece1;
  cursor: pointer; text-decoration: none; font-family: inherit;
}
.edit-form .submit-row .cancel { background: transparent; color: #2a2724; }

.photos-block { margin-top: 28px; padding-top: 20px; border-top: 1px solid #cdbfae; }
.photos-block h3 { font-family: 'Cormorant Garamond', serif; font-size: 20px; margin-bottom: 14px; font-weight: 400; letter-spacing: 2px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.photo-item { position: relative; background: #fff; padding: 6px 6px 8px; border: 1px solid #e5dccb; cursor: grab; }
.photo-item.dragging { opacity: 0.5; }
.photo-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #efe5d7; }
.photo-item .name { font-size: 10px; color: #8a7e6e; text-align: center; margin-top: 4px; word-break: break-all; }
.photo-item .remove { position: absolute; top: 4px; right: 4px; background: rgba(176,64,64,0.9); color: #fff;
  border: 0; width: 22px; height: 22px; cursor: pointer; font-size: 14px; line-height: 1; }

.upload-box { padding: 18px; border: 2px dashed #cdbfae; background: #fff9f0; text-align: center; margin-top: 14px; }
.upload-box input[type=file] { margin: 10px 0; }
.upload-box button { padding: 10px 24px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid #2a2724; background: #2a2724; color: #f4ece1; cursor: pointer; }

.library { margin-top: 18px; padding: 14px; background: #f4ece1; border: 1px solid #cdbfae; }
.library h4 { font-size: 12px; letter-spacing: 2px; color: #8a7e6e; text-transform: uppercase; margin-bottom: 10px; }
.library .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; }
.library form { display: contents; }
.library button { background: #fff; border: 1px solid #e5dccb; padding: 4px; cursor: pointer; }
.library button img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.library button:hover { border-color: #7d3535; }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f4ece1; }
.login-card { background: #fff; padding: 48px 56px; border: 1px solid #e5dccb; box-shadow: 0 20px 40px rgba(0,0,0,0.1); width: 100%; max-width: 380px; }
.login-card h1 { font-family: 'Cormorant Garamond', serif; font-size: 28px; letter-spacing: 4px; text-align: center; margin-bottom: 24px; font-weight: 400; }
.login-card input { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; border: 1px solid #cdbfae; background: #fff9f0; }
.login-card button { width: 100%; margin-top: 14px; padding: 12px; font: inherit; font-size: 12px; letter-spacing: 3px;
  text-transform: uppercase; background: #2a2724; color: #f4ece1; border: 0; cursor: pointer; }
.login-card .err { color: #b04040; font-size: 12px; margin-top: 10px; text-align: center; }

@media (max-width: 720px) {
  .outfit-row { grid-template-columns: 30px 60px 1fr; grid-auto-flow: row; }
  .outfit-row > *:nth-child(n+4) { grid-column: span 3; }
  .edit-form .row { grid-template-columns: 1fr; }
}
