/* ==========================================================================
   STYLE FILES — 設計系統（膠片復古 Warm Film）
   概念：舊時尚雜誌內頁 + 拍立得質感。米杏底色、鏽紅強調色，
   Lora 斜體襯線帶出手寫感的復古氣氛。
   Signature：頁面邊緣直式大字（雜誌書背裁切感）；
   Look 卡片微微傾斜，像隨手夾進相本的拍立得照片。
   ========================================================================== */

:root {
  --ink: #3a2e22;
  --ink-soft: #5a4a38;
  --paper: #f6efe4;
  --paper-2: #eadfcb;
  --line: #ddd0b8;
  --red: #b5502e;
  --grey: #8a7860;

  --serif: "Lora", "Noto Serif TC", serif;
  --sans: "Inter", "Noto Sans TC", -apple-system, sans-serif;

  --container: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- 頂部導覽 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.logo .dot {
  color: var(--red);
}

.nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
  color: var(--ink-soft);
}

.nav a.active,
.nav a:hover {
  color: var(--ink);
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--red);
}

/* ---------- Hero（首頁）---------- */

.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--grey);
}

.hero p.lede {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 18px;
  color: var(--ink-soft);
}

/* 邊緣直式大字（signature element） */

.spine-text {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  writing-mode: vertical-rl;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 15vw;
  line-height: 1;
  color: var(--paper-2);
  z-index: -1;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ---------- 首頁：三團磚 ---------- */

.group-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-top: 40px;
}

.group-tile {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.group-tile:hover {
  background: var(--paper-2);
}

.group-tile .num {
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.1em;
}

.group-tile h2 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  margin-top: 24px;
}

.group-tile p {
  color: var(--ink-soft);
  font-size: 14px;
  margin-top: 10px;
}

.group-tile .go {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.group-tile .go .arrow {
  transition: transform 0.2s ease;
}

.group-tile:hover .go .arrow {
  transform: translateX(4px);
}

/* ---------- 說明 / About 條列 ---------- */

.notice {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
}

.notice .label {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey);
  font-weight: 700;
}

.notice p {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- 團體頁 header ---------- */

.group-header {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.group-header .eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
}

.group-header h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 600;
  margin-top: 14px;
}

.group-header p {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- 成員區塊 ---------- */

.member-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.member-heading {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.member-heading h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 600;
}

.member-heading .tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  border: 1px solid var(--red);
  padding: 4px 10px;
  border-radius: 999px;
}

.look-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* ---------- Look 卡片 ---------- */

.look-card {
  border: 1px solid var(--line);
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  transform: rotate(-1.2deg);
  box-shadow: 0 10px 26px rgba(58, 46, 34, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.look-grid > .look-card:nth-child(even) {
  transform: rotate(1deg);
}

.look-card:hover {
  transform: rotate(0deg) translateY(-3px);
  box-shadow: 0 16px 32px rgba(58, 46, 34, 0.16);
}

.look-visual {
  aspect-ratio: 3 / 4;
  position: relative;
  background: repeating-linear-gradient(
    45deg,
    var(--paper-2) 0px,
    var(--paper-2) 1px,
    var(--paper) 1px,
    var(--paper) 10px
  );
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.look-visual .watermark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0.04em;
}

.look-visual .placeholder-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 3px 8px;
}

/* ---------- IG 嵌入區塊 ---------- */
/* 每張 Look 卡的照片位置：貼上該成員該套穿搭的 Instagram 貼文網址即可顯示真實照片。
   還沒貼連結之前，會顯示下面這個「待補照片」的提示畫面，不影響排版。 */

.look-visual.ig-embed-slot {
  align-items: stretch;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.ig-embed-slot .ig-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 16px;
}

.ig-embed-slot .ig-fallback .ig-fallback-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px dashed var(--line);
  padding: 3px 8px;
}

.ig-embed-slot .ig-fallback .watermark {
  margin-top: 4px;
}

.ig-embed-slot blockquote.instagram-media {
  margin: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.look-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.look-body .look-no {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--grey);
  font-weight: 700;
}

.look-body h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.item-list {
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.item-list li {
  display: flex;
  gap: 8px;
}

.item-list .k {
  color: var(--grey);
  min-width: 4.5em;
}

.look-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.look-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.look-link .arrow {
  transition: transform 0.15s ease;
}

.look-card:hover .look-link .arrow {
  transform: translateX(3px);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer p {
  font-size: 12.5px;
  color: var(--grey);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 響應式 ---------- */

@media (max-width: 860px) {
  .group-grid {
    grid-template-columns: 1fr;
  }
  .notice {
    grid-template-columns: 1fr;
  }
  .nav {
    gap: 18px;
  }
  .spine-text {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }
  .site-header .wrap {
    height: 64px;
  }
  .nav {
    font-size: 11px;
    gap: 14px;
  }
}
