@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital,wght@0,400;1,400&display=swap');

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

body {
  background: #FAF7F2;
  font-family: 'IM Fell English', serif;
  color: #000;
  min-height: 100vh;
}

/* ── Topbar ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 1.6rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  background: #FAF7F2;
  border-bottom: 1px solid #000;
}

.brand {
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.topbar-right .season {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.38;
  font-style: normal;
}

.topbar-right a {
  font-size: 1.6rem;
  font-style: italic;
  color: #000;
  text-decoration: none;
  opacity: 0.5;
}
.topbar-right a:hover { opacity: 1; }
.topbar-right a.active { opacity: 1; font-weight: 700; }

.get-some-btn {
  background: #000;
  color: #FAF7F2;
  font-family: 'IM Fell English', serif;
  font-size: 1.6rem;
  font-style: italic;
  border: none;
  padding: 0.6rem 1.8rem;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.get-some-btn:hover { opacity: 0.82; }

/* ── Page shell ── */
.page { padding-top: 5.5rem; }

/* ── Section ── */
.section { padding: 1.5rem 3rem 2rem 3rem; }

.section-header { display: none; }

/* ── Garments list ── */
.garments { display: flex; flex-direction: column; gap: 0; }

/* ── Garment block ── */
.garment-block { padding: 0 0 2.5rem 0; position: relative; }

/* Rotated season label on left margin */
.garment-block .season-tag {
  position: absolute;
  left: -2.8rem;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.2;
  white-space: nowrap;
  transform-origin: center center;
}

/* Piece number + material divider */
.garment-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

.garment-divider .piece-num {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.5;
}

.garment-divider .material-tag {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.5;
  letter-spacing: 0.06em;
}

/* ── Photo + info grid ── */
.garment {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

/* layout-a: big left, two stacked right, info far right */
.garment.layout-a {
  grid-template-columns: 1fr 0.43fr 360px;
  grid-template-rows: auto auto;
}
.garment.layout-a .photo-main   { grid-column: 1; grid-row: 1 / 3; }
.garment.layout-a .photo-side-1 { grid-column: 2; grid-row: 1; }
.garment.layout-a .photo-side-2 { grid-column: 2; grid-row: 2; }
.garment.layout-a .garment-info { grid-column: 3; grid-row: 1 / 3; align-self: start; padding-bottom: 0; }

/* layout-b: wide banner top, two below + info col */
.garment.layout-b {
  grid-template-columns: 1fr 1fr 360px;
  grid-template-rows: auto auto;
}
.garment.layout-b .photo-main   { grid-column: 1 / 3; grid-row: 1; }
.garment.layout-b .photo-side-1 { grid-column: 1; grid-row: 2; }
.garment.layout-b .photo-side-2 { grid-column: 2; grid-row: 2; }
.garment.layout-b .garment-info { grid-column: 3; grid-row: 1 / 3; align-self: start; padding-bottom: 0; }

/* layout-c: offset centre, info right */
.garment.layout-c {
  grid-template-columns: 0.43fr 1fr 360px;
  grid-template-rows: auto auto;
  align-items: start;
}
.garment.layout-c .photo-main   { grid-column: 2; grid-row: 1 / 3; }
.garment.layout-c .photo-side-1 { grid-column: 1; grid-row: 1; }
.garment.layout-c .photo-side-2 { grid-column: 1; grid-row: 2; }
.garment.layout-c .garment-info { grid-column: 3; grid-row: 1 / 3; align-self: start; padding-bottom: 0; }

/* ── Garment info panel ── */
.garment-info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.4rem;
  padding-left: 0.5rem;
}

.garment-info .g-name {
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

.garment-info .g-material {
  font-size: 1.05rem;
  letter-spacing: 0.07em;
  opacity: 0.55;
  line-height: 1.9;
  font-style: normal;
}

.garment-info .g-note {
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.75;
  opacity: 0.65;
  position: relative;
  cursor: default;
}

.garment-info .g-note .tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  background: #000;
  color: #FAF7F2;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  white-space: nowrap;
  font-style: italic;
  z-index: 10;
}

.garment-info .g-note:hover .tooltip { display: block; }

.garment-info .g-made {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  opacity: 0.38;
  text-transform: uppercase;
}

/* ── Photo cell ── */
.photo-cell {
  position: relative;
  background: #E8E4DE;
  overflow: hidden;
  cursor: pointer;
}

.photo-cell.tall    { aspect-ratio: 3 / 4; }
.photo-cell.square  { aspect-ratio: 1 / 1; }
.photo-cell.portrait { aspect-ratio: 2 / 3; }
.photo-cell.banner  { aspect-ratio: 16 / 7; }

.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.photo-cell .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.photo-cell .ph svg { opacity: 0.1; }

.photo-cell .nav-arrows {
  position: absolute;
  bottom: 1rem; right: 1rem;
  display: flex; gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.photo-cell:hover .nav-arrows { opacity: 1; }

.photo-cell .nav-arrows button {
  background: #FAF7F2;
  border: 1px solid #000;
  font-family: 'IM Fell English', serif;
  font-size: 0.95rem;
  width: 1.9rem; height: 1.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.photo-cell .nav-arrows button:hover { background: #000; color: #FAF7F2; }

.photo-cell .counter {
  position: absolute;
  bottom: 1rem; left: 1rem;
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0;
  transition: opacity 0.2s;
  background: #FAF7F2;
  padding: 0.1rem 0.4rem;
}
.photo-cell:hover .counter { opacity: 0.65; }

/* ── Colophon ── */
.colophon {
  padding: 4rem 3rem;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.colophon-left {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.25;
  line-height: 2;
}

.colophon-right {
  font-size: 0.7rem;
  font-style: italic;
  opacity: 0.2;
  text-align: right;
  line-height: 2;
}

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.28);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal {
  background: #FAF7F2;
  width: 400px;
  max-width: 90%;
  position: relative;
}

.modal-top {
  border-bottom: 1px solid #000;
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-top span { font-style: italic; font-size: 0.9rem; opacity: 0.4; letter-spacing: 0.05em; }

.modal-close {
  background: none; border: none;
  font-family: 'IM Fell English', serif;
  font-size: 1.2rem; cursor: pointer; opacity: 0.35;
}
.modal-close:hover { opacity: 1; }

.modal-body { padding: 2rem 2rem 2.5rem; }

.modal-body p { font-size: 1.05rem; line-height: 1.85; margin-bottom: 1.8rem; }

.modal-divider {
  border: none;
  border-top: 1px solid #000;
  opacity: 0.12;
  margin-bottom: 1.4rem;
}

.modal-contact {
  font-style: italic;
  font-size: 0.88rem;
  opacity: 0.45;
  line-height: 2;
  letter-spacing: 0.03em;
}

/* ── Policy bar ── */
.policy-bar {
  padding: 2rem 3rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.policy-bar button {
  background: none;
  border: none;
  font-family: 'IM Fell English', serif;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.35;
  cursor: pointer;
  letter-spacing: 0.04em;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.policy-bar button:hover { opacity: 0.7; }

/* ── Policy modal ── */
.policy-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.22);
  z-index: 300;
  align-items: center;
  justify-content: center;
}
.policy-modal-overlay.open { display: flex; }

.policy-modal {
  background: #FAF7F2;
  width: 480px;
  max-width: 92%;
}

.policy-modal-top {
  border-bottom: 1px solid rgba(0,0,0,0.15);
  padding: 1.4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.policy-modal-top span {
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.03em;
}
.policy-modal-close {
  background: none; border: none;
  font-family: 'IM Fell English', serif;
  font-size: 1.2rem; cursor: pointer; opacity: 0.35;
}
.policy-modal-close:hover { opacity: 1; }

.policy-modal-body {
  padding: 2rem 2rem 2.5rem;
}
.policy-modal-body p {
  font-size: 1rem;
  line-height: 1.9;
  opacity: 0.7;
  margin-bottom: 1.4rem;
}
.policy-modal-body p:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .topbar { padding: 1.4rem 1.5rem; }
  .brand { font-size: 1.3rem; }
  .section { padding: 3rem 1.5rem 1rem; }
  .garment.layout-a,
  .garment.layout-b,
  .garment.layout-c { grid-template-columns: 1fr; grid-template-rows: auto; gap: 1.5rem; }
  .garment .photo-main,
  .garment .photo-side-1,
  .garment .photo-side-2,
  .garment .garment-info { grid-column: 1 !important; grid-row: auto !important; }
  .garment-block .season-tag { display: none; }
  .colophon { flex-direction: column; gap: 1rem; }
  .policy-bar { padding: 1.5rem; gap: 1.5rem; flex-wrap: wrap; }
}
