/* Homepage: hero, a bit about Connor, then the archive of lead magnets.
   The shared system is in /shared/styles.css. Unlike opt-in pages, the homepage may link out. */

.brandbar__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topnav { display: flex; gap: 28px; font-size: 15.5px; font-weight: 500; }
.topnav a { text-decoration: none; color: var(--ink-soft); }
.topnav a:hover { color: var(--ink); }

.btn { text-decoration: none; }
.textlink { font-size: 16px; font-weight: 500; color: var(--ink); }

/* ---------- Hero ---------- */

.home-hero { padding-block: clamp(32px, 6vw, 72px) clamp(88px, 10vw, 140px); }
.home-hero__grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .home-hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 120px); } }
.home-hero__copy { max-width: 38rem; }
.home-hero h1.display { font-size: clamp(2.6rem, 1.4rem + 3.4vw, 4.6rem); }
.home-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }

.home-hero__photo { position: relative; width: 100%; max-width: 480px; justify-self: center; aspect-ratio: 1 / 1; background: var(--lime); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--e3); }
.home-hero__photo img { position: absolute; left: 5%; bottom: -1%; width: 90%; height: auto; }

/* ---------- About ---------- */

.about { padding-top: 0; }
.about__grid { display: grid; gap: 24px; padding-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .about__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 120px); } }
.about__copy p { margin: 0 0 18px; font-size: 19px; line-height: 1.6; color: var(--ink-soft); max-width: 34em; text-wrap: pretty; }

/* ---------- Guides archive ---------- */

.guides { padding-top: 0; }
.guides__head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .guides__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 7vw, 120px); align-items: end; } }
.guides__head p { margin: 0; font-size: 18px; color: var(--ink-soft); max-width: 30em; }

.guides__grid { display: grid; gap: clamp(20px, 2.5vw, 32px); }
@media (min-width: 760px) { .guides__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.guide {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  color: inherit; text-decoration: none;
  box-shadow: var(--e1);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
a.guide:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  a.guide:hover { transform: translateY(-3px); box-shadow: var(--e2); }
  a.guide:hover .guide__cta { background: #c9f81c; }
}

/* Cover: the magnet's real stills, composed like the opt-in page hero. */
.guide__cover { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.guide__wide { position: absolute; left: 7%; top: 10%; width: 72%; aspect-ratio: 16 / 9; box-shadow: var(--e2); }
.guide__tall { position: absolute; right: 7%; top: 22%; width: 22%; aspect-ratio: 9 / 16; box-shadow: var(--e2); }
.guide__cover .frame { border-radius: 10px; }

.guide__body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 36px); }
.guide__body p { margin: 12px 0 0; font-size: 16.5px; color: var(--ink-soft); text-wrap: pretty; }
.guide__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.guide__tags li { padding: 3px 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.guide__title { margin: 0; font-family: var(--font-display); font-variation-settings: "wdth" 88; font-stretch: 88%; font-weight: 760; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.1; letter-spacing: -0.02em; }
.guide__cta { align-self: flex-start; margin-top: 24px; padding: 10px 16px; font-family: var(--font-display); font-variation-settings: "wdth" 95; font-stretch: 95%; font-weight: 740; font-size: 16px; color: var(--lime-ink); background: var(--lime); border-radius: var(--r-sm); transition: background-color 140ms var(--ease-out); }

.guide--next { background: transparent; border-style: dashed; border-color: var(--line-strong); box-shadow: none; justify-content: center; }
.guide--next .guide__body { justify-content: center; max-width: 26em; }
.guide__soon { margin: 0 0 12px !important; font-size: 14px !important; font-weight: 600; color: var(--ink) !important; }

@media (max-width: 560px) {
  .topnav { gap: 18px; font-size: 15px; }
}
