/* ericazucco.com, 2026 redesign
   Classic layout with a scrapbook finish. Colors and fonts chosen by Erica. */
:root {
  --cream: #F7EFDF;
  --card: #FCF6EA;
  --line: #E2D6BF;
  --ink: #212E21;
  --ink-soft: #4A5A4A;
  --sapphire: #172F7C;
  --raspberry: #A8235A;
  --emerald: #0C6A47;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
a:focus-visible, .sticker:focus-visible, .pill:focus-visible { outline: 3px solid var(--sapphire); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 94%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 28px; padding-block: 18px; }
.name { font-family: var(--sans); font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -.01em; text-decoration: none; }
.name .first { color: var(--sapphire); }
.name .last { color: var(--raspberry); }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: var(--emerald); }

/* Sections */
section { padding-block: 54px; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.sec-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.sec-title h2 { font-size: clamp(38px, 5vw, 52px); }
.sec-title small { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.intro { margin-bottom: 30px; }

/* Video frames */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 6px; overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.yt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt .play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--raspberry); box-shadow: 0 6px 18px rgba(33, 46, 33, .3); transition: transform .15s, filter .15s;
}
.yt .play::after {
  content: ""; position: absolute; left: 30px; top: 23px;
  border-left: 24px solid var(--cream); border-top: 15px solid transparent; border-bottom: 15px solid transparent;
}
.yt:hover .play { transform: scale(1.08); filter: brightness(1.15); }
.yt:focus-visible { outline: 3px solid var(--sapphire); outline-offset: -3px; }
.card .yt .play { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.card .yt .play::after { left: 23px; top: 17px; border-left-width: 18px; border-top-width: 12px; border-bottom-width: 12px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about h1 { font-size: clamp(30px, 3.6vw, 40px); margin-bottom: 12px; }
.about h1 em { color: var(--emerald); }
.pills { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: var(--cream); text-decoration: none;
  transition: transform .15s, filter .15s;
}
.pill:hover { transform: translateY(-2px); filter: brightness(1.15); }
.pill.blue { background: var(--sapphire); }
.pill.pink { background: var(--raspberry); }

/* Strategy */
.strat-list { margin: 20px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.strat-list li::marker { color: var(--emerald); }

/* Storytelling cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.card h3 { font-size: 24px; }
.card p { font-size: 16px; line-height: 1.38; }
.card > img { display: block; width: 100%; height: auto; border-radius: 4px; }
.writing { gap: 0; }
.w-label { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--emerald); margin-bottom: 10px; }
.writing a { display: grid; gap: 3px; padding-block: 12px; border-top: 1px solid var(--line); text-decoration: none; font-size: 16px; line-height: 1.38; }
.writing a span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--raspberry); }
.writing a:hover { color: var(--sapphire); text-decoration: underline; text-underline-offset: 3px; }

/* Off Deadline */
.off { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.collage { position: relative; width: 100%; aspect-ratio: 1 / .72; }
.snap {
  position: absolute; margin: 0; background: #FFFDF8; padding: 7px; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(33, 46, 33, .18), 0 10px 22px rgba(33, 46, 33, .14);
  transform: rotate(var(--r, 0deg)); transition: transform .2s;
}
.snap:hover { transform: rotate(0deg) scale(1.08); z-index: 5; }
.snap img { display: block; width: 100%; height: auto; border-radius: 1px; }
.snap.tape::before {
  content: ""; position: absolute; top: -11px; left: 50%; width: 44%; height: 20px;
  transform: translateX(-50%) rotate(-4deg); background: var(--t); opacity: .55; border-radius: 1px;
}
.play { display: grid; gap: 14px; min-width: 0; }
.ear { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 10px; }
.stickers { display: flex; flex-wrap: wrap; gap: 14px; }
.sticker {
  width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  padding: 12px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.25;
  color: var(--cream); text-decoration: none; transition: transform .2s, filter .2s;
}
.sticker:nth-child(1) { background: var(--emerald); transform: rotate(-6deg); }
.sticker:nth-child(2) { background: var(--raspberry); transform: rotate(-8deg); }
.sticker:nth-child(3) { background: var(--sapphire); transform: rotate(6deg); }
.sticker:hover { transform: rotate(0deg) scale(1.06); filter: brightness(1.15); }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; font-size: 14px; color: var(--ink-soft); }

/* Phones and small tablets */
@media (max-width: 760px) {
  body { font-size: 17px; }
  section { padding-block: 40px; }
  .about, .off { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .collage { aspect-ratio: 1 / .8; }
  .snap { padding: 4px; }
  .sticker { width: 104px; height: 104px; font-size: 11px; }
  .top .wrap { padding-block: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .snap, .sticker, .pill { transition: none; }
}
