/* Shop Fia's looks. Sand / linen / terracotta / sea, mobile-first. */
:root {
  --sand: #f3ebe0;
  --sand-deep: #e8dccb;
  --stage: #e7d8c4;
  --paper: #faf6f0;
  --mat: #f4ece1;
  --ink: #2c241c;
  --muted: #6f6256;
  --line: #d7cbb8;
  --copper: #8c4a32;
  --copper-hover: #733c28;
  --khaki: #c4a574;
  --gold: #b08a56;
  --gold-soft: #c4a574;
  --sea: #6a8386;
  --badge: #efe4d2;
  --shadow: 0 14px 32px rgba(44, 36, 28, 0.1);
  --shadow-lift: 0 22px 44px rgba(44, 36, 28, 0.16);
  --journal-shadow: 0 18px 50px rgba(44, 36, 28, 0.14), 0 2px 8px rgba(44, 36, 28, 0.06);
  --radius: 14px;
  --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.17  0 0 0 0 0.14  0 0 0 0 0.11  0 0 0 0.35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1000px 500px at 8% -10%, rgba(140, 74, 50, 0.1), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(106, 131, 134, 0.1), transparent 50%),
    var(--stage);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

body.lightbox-open { overflow: hidden; }

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.85rem 0.7rem 1.4rem;
}

.journal {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--gold);
  border-radius: 10px;
  box-shadow:
    0 0 0 4px var(--paper),
    0 0 0 5px var(--gold),
    var(--journal-shadow);
}

.journal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--grain);
  opacity: 0.1;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.journal > * {
  position: relative;
  z-index: 1;
}

.journal-corners {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.corner {
  position: absolute;
  width: 46px;
  height: 46px;
  color: var(--gold);
}

.corner-tl { top: -3px; left: -3px; }
.corner-tr { top: -3px; right: -3px; transform: scaleX(-1); }
.corner-bl { bottom: -3px; left: -3px; transform: scaleY(-1); }
.corner-br { bottom: -3px; right: -3px; transform: scale(-1); }

.page {
  width: 100%;
  margin: 0 auto;
  padding: 0.15rem 0.85rem 1.35rem;
}

header.site {
  position: relative;
  text-align: center;
  padding: 1.7rem 1rem 1.35rem;
  overflow: hidden;
  background:
    radial-gradient(800px 280px at 12% -40%, rgba(140, 74, 50, 0.08), transparent 60%),
    radial-gradient(640px 240px at 92% -20%, rgba(106, 131, 134, 0.1), transparent 55%),
    linear-gradient(180deg, #fbf6ee 0%, #f7f0e6 70%, var(--paper) 100%);
  border-radius: 10px 10px 0 0;
}

header.site::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  top: 0.7rem;
  height: 0;
  border-top: 1px solid rgba(176, 138, 86, 0.45);
  box-shadow: 0 3px 0 var(--paper), 0 4px 0 rgba(176, 138, 86, 0.3);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding-top: 0.55rem;
}

.flourish {
  display: flex;
  justify-content: center;
  margin-bottom: 0.85rem;
  color: var(--copper);
}

.compass { display: block; opacity: 0.88; }

.brand {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.15rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.tagline {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--muted);
}

.wave {
  display: block;
  margin: 0.7rem auto 0;
  color: var(--khaki);
  opacity: 0.95;
}

.handle {
  display: inline-block;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro {
  margin: 0.8rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-rule {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: calc(100% - 2rem);
  max-width: 36rem;
  margin: 0.15rem auto 1.1rem;
  color: var(--gold);
}

.section-rule-line {
  display: block;
  flex: 1;
  height: 0;
  border-top: 1px solid var(--gold-soft);
  opacity: 0.85;
  box-shadow: 0 2px 0 var(--paper), 0 3px 0 rgba(196, 165, 116, 0.45);
}

.section-rule-mark {
  flex: 0 0 auto;
  display: block;
  opacity: 0.9;
}

.section-rule-slim {
  max-width: 16rem;
  margin: 1.35rem auto 0.15rem;
}

.section-rule-slim .section-rule-line {
  box-shadow: none;
  opacity: 0.65;
}

.looks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: start;
}

article.look {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 253, 249, 0.8);
}

article.look.is-coming-soon {
  position: relative;
}

.look-image {
  position: relative;
  margin: 0.55rem 0.55rem 0;
  padding: 6px;
  overflow: visible;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: var(--mat);
  box-shadow: 0 1px 3px rgba(44, 36, 28, 0.06);
}

.look-open {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(44, 36, 28, 0.2);
  border-radius: 1px;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
}

.look-open:focus {
  outline: none;
}

.look-open:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

.look-open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
}

.look-pin {
  position: absolute;
  left: calc(6px + 0.4rem);
  bottom: calc(6px + 0.4rem);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.22rem 0.5rem 0.22rem 0.4rem;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.92);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(44, 36, 28, 0.16);
  pointer-events: none;
}

.pin-icon {
  flex: 0 0 auto;
  color: var(--copper);
}

.look-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.7rem 0.7rem 0.85rem;
}

.look-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--badge);
  color: var(--copper);
  letter-spacing: 0.12em;
  font-size: 0.6rem;
  font-weight: 500;
}

.look-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.02rem, 3.2vw, 1.35rem);
  line-height: 1.2;
}

.look-dek {
  margin: 0.25rem 0 0.55rem;
  color: var(--muted);
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.86rem;
  line-height: 1.35;
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.item-link {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.4rem 0.6rem 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fffdf9;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

.item-link .icon-arrow {
  flex: 0 0 auto;
  margin-top: 0.12em;
  color: var(--copper);
}

.item-link:hover,
.item-link:focus-visible {
  background: var(--copper);
  border-color: var(--copper);
  color: #faf6f0;
  outline: none;
}

.item-link:hover .icon-arrow,
.item-link:focus-visible .icon-arrow {
  color: #faf6f0;
}

.follow {
  margin-top: 0.15rem;
  padding-top: 0.15rem;
  text-align: center;
}

.follow-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.follow-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
}

.follow-link:hover,
.follow-link:focus-visible {
  background: var(--copper);
  border-color: var(--copper);
  color: #faf6f0;
  outline: none;
}

footer.site {
  margin-top: 0.15rem;
  padding-top: 0.85rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

footer.site p { margin: 0.15rem 0; }

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 28, 0.78);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(920px, 100%);
  max-height: 100%;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 2.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(20, 14, 10, 0.45);
  background: var(--sand-deep);
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.92);
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44, 36, 28, 0.18);
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fff;
  color: var(--copper);
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}

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

  article.look {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.7s ease var(--delay, 0ms),
      transform 0.7s ease var(--delay, 0ms),
      box-shadow 0.28s ease;
  }

  article.look.is-visible {
    opacity: 1;
    transform: none;
  }

  article.look.is-visible:hover,
  article.look.is-visible:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
  }

  .look-open img {
    transition: transform 0.55s ease;
  }

  article.look:hover .look-open img,
  article.look:focus-within .look-open img {
    transform: scale(1.05);
  }

  .item-link,
  .follow-link {
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  }

  .item-link .icon-arrow {
    transition: transform 0.18s ease, color 0.18s ease;
  }

  .item-link:hover .icon-arrow,
  .item-link:focus-visible .icon-arrow {
    transform: translateX(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  article.look {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .stage {
    padding: 1.75rem 1.5rem 2.4rem;
  }

  .journal {
    border-radius: 12px;
    box-shadow:
      0 0 0 6px var(--paper),
      0 0 0 7px var(--gold),
      var(--journal-shadow);
  }

  .corner {
    width: 64px;
    height: 64px;
  }

  .corner-tl { top: -5px; left: -5px; }
  .corner-tr { top: -5px; right: -5px; }
  .corner-bl { bottom: -5px; left: -5px; }
  .corner-br { bottom: -5px; right: -5px; }

  header.site {
    padding: 2.4rem 2.25rem 1.7rem;
    border-radius: 12px 12px 0 0;
  }

  header.site::after {
    left: 2rem;
    right: 2rem;
    top: 0.95rem;
  }

  .page {
    padding: 0.2rem 2.25rem 2rem;
  }

  .section-rule {
    width: calc(100% - 4rem);
    max-width: 42rem;
    margin: 0.1rem auto 1.5rem;
  }

  .looks {
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    justify-content: center;
    gap: 1.6rem;
  }

  .look-image {
    margin: 0.75rem 0.75rem 0;
    padding: 9px;
  }

  .look-pin {
    left: calc(9px + 0.45rem);
    bottom: calc(9px + 0.45rem);
    font-size: 0.68rem;
    padding: 0.26rem 0.58rem 0.26rem 0.45rem;
  }

  .look-body {
    padding: 0.9rem 0.95rem 1.1rem;
  }

  .look-title {
    font-size: 1.35rem;
  }

  .look-dek {
    font-size: 0.95rem;
  }

  .item-link {
    font-size: 0.78rem;
    padding: 0.46rem 0.7rem 0.46rem 0.8rem;
  }
}

@media (min-width: 1100px) {
  .stage {
    padding: 2rem 1.25rem 2.75rem;
  }

  .looks {
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    gap: 2rem;
  }
}
