/* NELLEA home: a soft fashion-magazine front page.
   Always in NELLEA's own palette (paper, blush, rose, wine), whatever colour an article's own cover has. */
.home-page main.home { max-width: 1240px; margin: 0 auto; padding: 104px clamp(1rem, 4vw, 3rem) 0; }
.home .kicker { font-size: .68rem; }
.home .motif * { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.home .motif .dot { fill: currentColor; stroke: none; opacity: .5; }

/* Cover story */
.home-cover {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 1rem;
  min-height: 540px; overflow: hidden; border-radius: 4px; color: var(--ink);
  background: radial-gradient(circle at 85% 15%, rgba(214, 160, 174, .45), transparent 45%), linear-gradient(160deg, #f6e4e8, #fbf5f2);
}
.home-cover > .motif { position: absolute; left: 30%; bottom: -12%; width: 42%; height: auto; color: var(--rose); opacity: .45; pointer-events: none; }
.home-cover-text { position: relative; z-index: 1; padding: clamp(1.75rem, 5vw, 3.75rem); }
.home-cover h1 { margin: .8rem 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: .98; }
.home-cover-text > p:not(.kicker) { max-width: 30rem; margin: 0 0 1.4rem; font-size: 1.08rem; line-height: 1.55; }
.home-button { display: inline-block; padding: .8rem 1.25rem; border-radius: 99px; background: var(--rose); color: #fff; font-size: .9rem; font-weight: 650; text-decoration: none; }
.home-button:hover { background: var(--wine); }
.home-button-light { background: var(--white); color: var(--wine); }
.home-button-light:hover { background: var(--blush); }
.home-button-line { background: transparent; border: 1px solid currentColor; color: inherit; }
.home-button-line:hover { background: rgba(255, 255, 255, .12); }

.cover-look {
  position: relative; z-index: 1; display: block; margin: clamp(1rem, 3vw, 2rem); padding: 1.25rem;
  border-radius: 22px; background: rgba(255, 253, 252, .92); box-shadow: 0 20px 60px rgba(91, 38, 54, .14);
  color: inherit; text-decoration: none;
}
.cover-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .8rem 0; }
.cover-tiles img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 10px; background: #fff; }
.cover-tiles.pieces-3 { grid-template-columns: repeat(3, 1fr); }
.cover-look-names { margin: 0; font-size: .88rem; color: var(--muted); }
.cover-look-price { margin: .35rem 0 0; font-size: .92rem; }

/* Trends */
.home-trends { display: flex; flex-wrap: wrap; gap: .5rem; padding: 1.4rem 0 0; }
.home-trends a { padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 99px; background: var(--white); font-size: .82rem; text-decoration: none; }
.home-trends a:hover { border-color: var(--rose); color: var(--rose); }

/* Sections */
.home-section { padding-top: clamp(2.2rem, 5vw, 3.4rem); }
.home-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.home-section-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.6rem); }

/* Looks of the week: the real product photos of each look */
.look-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.look-card { display: block; padding: .75rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.look-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(91, 38, 54, .1); }
.look-card h3 { margin: .25rem 0 0; font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.look-price { margin: .3rem 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.outfit-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; aspect-ratio: 4 / 5; margin-bottom: .7rem; padding: 8px; border-radius: 12px; background: #fff; }
.outfit-grid img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 8px; background: #fff; }
.outfit-grid.pieces-3 img:first-child { grid-row: span 2; }
.outfit-grid.pieces-2 { grid-template-rows: 1fr; }
.outfit-grid.pieces-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }

/* From the journal: covers in NELLEA tones */
.home-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 4 / 5; padding: 1.1rem; overflow: hidden; border-radius: 4px; text-decoration: none; transition: transform .2s ease; }
.home-story:hover { transform: translateY(-3px); }
.home-story .motif { position: absolute; right: -8%; top: 12%; width: 72%; height: auto; opacity: .45; pointer-events: none; }
.home-story small { position: relative; font-size: .64rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.home-story b { position: relative; max-width: 14ch; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 2.4vw, 1.75rem); line-height: 1.05; }
.tone-wine { background: linear-gradient(165deg, #6b2d40, #3d1824); color: #f8f4f2; }
.tone-wine .motif { color: var(--rose-light); }
.tone-blush { background: linear-gradient(165deg, #ecd3d9, #f7e9ec); color: #3f1d29; }
.tone-blush .motif { color: var(--rose); }
.tone-rose { background: linear-gradient(165deg, #c98595, #e3b7c3); color: #3f1d29; }
.tone-rose .motif { color: var(--wine); }

/* Founder */
.home-founder { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; margin-top: clamp(2.2rem, 5vw, 3.4rem); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 22px; background: linear-gradient(160deg, #fdf8f9, #fbf1f3); color: inherit; text-decoration: none; }
.home-founder .portrait-large { width: clamp(5.5rem, 10vw, 7rem); height: clamp(5.5rem, 10vw, 7rem); font-size: 2.6rem; }
.home-founder blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.35; }
.home-founder cite { display: block; margin-top: .6rem; font-family: var(--sans); font-style: normal; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }

/* App */
.home-app { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; margin: clamp(2.2rem, 5vw, 3.4rem) 0 clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 4vw, 2.4rem); border-radius: 22px; background: var(--wine); color: #f8f4f2; }
.home-app .kicker { color: var(--rose-light); }
.home-app h2 { margin: .4rem 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.home-app p:not(.kicker) { max-width: 34rem; margin: 0; opacity: .82; }
.home-app-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

@media (max-width: 900px) {
  .home-cover { grid-template-columns: 1fr; min-height: 0; }
  .home-cover > .motif { left: auto; right: -10%; top: 4%; bottom: auto; width: 60%; opacity: .3; }
  .look-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-stories { grid-template-columns: 1fr; }
  .home-story { aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .home-page main.home { padding-top: 84px; }
  .look-rail { gap: .6rem; }
  .look-card { padding: .5rem; }
  .look-card h3 { font-size: 1.1rem; }
  .home-founder { grid-template-columns: 1fr; }
}
