/* Imagefactory.io archive page — colours from the original site (pink logo, "atoll" teal, "bali-hai" grey-blue) */
:root {
  --paper: #ffffff;
  --tint: #f3f7f9;
  --ink: #383838;
  --muted: #6b8794;
  --line: #dde7ec;
  --pink: #e858bf;
  --pink-ink: #c0329a; /* darker pink for text on white (contrast) */
  --teal: #0a5472;
  --sans: 'Montserrat', system-ui, sans-serif;
  --serif: 'Libre Baskerville', Georgia, serif;
  --pad: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15px/1.7 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--pink-ink); }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 24px; padding: 24px var(--pad) 16px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo img { width: 120px; height: auto; }
/* Back link sits on its own row; the logo and the menu share the row below so they line up */
.brand { display: contents; }
.back { grid-column: 1 / -1; grid-row: 1; justify-self: start; font-size: 13px; color: var(--muted); } /* same as the footer's ← Alex Hammond link */
.logo { grid-column: 1; grid-row: 2; }
.top nav { grid-column: 2; grid-row: 2; justify-self: end; display: flex; gap: 4px 18px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; font-weight: 700; color: var(--teal); }
.top nav a { text-decoration: none; }
.menu-btn { display: none; }
/* Phones: the menu won't fit beside the logo, so it folds into a hamburger */
@media (max-width: 760px) {
  .menu-btn { grid-column: 2; grid-row: 2; justify-self: end; display: grid; gap: 5px; width: 40px; height: 40px; place-content: center; padding: 0; border: 0; background: none; cursor: pointer; }
  .menu-btn span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--teal); transition: transform 0.2s, opacity 0.2s; }
  .top.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .top.open .menu-btn span:nth-child(2) { opacity: 0; }
  .top.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .top nav { display: none; }
  .top.open nav { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; display: flex; flex-direction: column; gap: 0; font-size: 16px; }
  .top.open nav a { padding: 12px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .menu-btn span { transition: none; } }

/* Hero */
.hero { max-width: 1400px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--pad) 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-ink); }
/* A note added after the fact — styled as an annotation on top of the archived page */
.postscript { position: relative; max-width: 34em; margin: 0 0 clamp(36px, 6vw, 64px); padding: 18px 22px 16px; background: #fdf2fa; border-left: 3px solid var(--pink); border-radius: 0 6px 6px 0; transform: rotate(-0.4deg); }
.postscript p { font: italic 400 16px/1.6 var(--serif); }
.postscript .ps-label { margin-bottom: 8px; font: 700 11px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--pink-ink); }
.postscript .ps-sign { margin-top: 8px; font-size: 14px; color: var(--muted); }
.hero h1 { margin-top: 12px; font: 800 clamp(40px, 7.5vw, 104px)/0.98 var(--sans); letter-spacing: -0.035em; color: var(--teal); max-width: 11em; }
.sub { margin-top: 18px; font: 400 clamp(19px, 2vw, 26px)/1.4 var(--serif); }
.hero-media { margin-top: clamp(28px, 5vw, 56px); max-width: 720px; }
.hero-media video { width: 100%; aspect-ratio: 600 / 338; object-fit: cover; border-radius: 6px; background: var(--tint); }

/* Sections */
.section { max-width: 1400px; margin: clamp(72px, 10vw, 130px) auto 0; padding: 0 var(--pad); }
.head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; border-top: 2px solid var(--teal); padding-top: 14px; margin-bottom: 28px; }
.head .n { font-size: 13px; font-weight: 700; color: var(--pink-ink); }
.head h2 { font: 800 clamp(26px, 3.4vw, 44px)/1.1 var(--sans); letter-spacing: -0.025em; color: var(--teal); }
.head p { flex-basis: 100%; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) { .head p { flex-basis: auto; margin-left: auto; } }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: 10px; }
.prose { display: grid; gap: 14px; max-width: 44em; }
.prose h3, .cards h3 { font-size: 16px; font-weight: 700; color: var(--teal); }
.prose h3 { margin-top: 10px; }
.lede { font: 400 clamp(18px, 1.8vw, 22px)/1.5 var(--serif); }
.note { color: var(--muted); margin: -10px 0 24px; max-width: 44em; }
@media (min-width: 900px) {
  .split { display: grid; grid-template-columns: 1fr 2fr; column-gap: clamp(24px, 4vw, 64px); }
  .split > .head { grid-column: 1 / -1; }
  .split > :not(.head) { grid-column: 2; }
}

.intro .cols3 { display: grid; gap: 32px; }
@media (min-width: 900px) { .intro .cols3 { grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); } }
.intro .cols3 > div { display: grid; gap: 10px; align-content: start; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 8px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; }

/* One template, every name — two same-size tiles per design, never wider than the 580px source */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 580px)); gap: clamp(8px, 1.4vw, 16px); }
.pair + .pair { margin-top: clamp(8px, 1.4vw, 16px); }
.pair img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--tint); }

/* Examples grid */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(10px, 1.6vw, 20px); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.grid img { width: 100%; aspect-ratio: 389 / 202; object-fit: cover; border-radius: 4px; background: var(--tint); }
.grid figcaption { padding-top: 8px; font-size: 13px; font-weight: 600; }

/* Video & animation */
.reels-head { margin-top: clamp(40px, 6vw, 72px); }
.reels { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: clamp(10px, 1.6vw, 20px); }
@media (min-width: 640px) { .reels { grid-template-columns: repeat(2, 1fr); } }
.reels video { width: 100%; border-radius: 4px; background: var(--tint); object-fit: cover; aspect-ratio: 1200 / 676; }
.reels figcaption { padding-top: 8px; font-size: 13px; font-weight: 600; }

/* Email / billboards */
.email { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .email { grid-template-columns: 1fr 1fr; } }
.email img { width: 100%; border-radius: 6px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--tint); border-radius: 6px; }
.stat b { font-size: clamp(40px, 5vw, 60px); line-height: 1; font-weight: 800; color: var(--pink-ink); letter-spacing: -0.03em; }
.stat span { font-size: 14px; }
.cards { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.four { grid-template-columns: repeat(4, 1fr); } }
.cards.four { margin-top: 0; }
.cards li { display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: 6px; }
.cards .num { font-size: 28px; font-weight: 800; color: var(--pink); line-height: 1; }
/* The quote — given the whole width */
.pullquote { position: relative; margin: clamp(56px, 9vw, 120px) 0 0; padding: clamp(40px, 6vw, 72px) 0; border-top: 2px solid var(--teal); border-bottom: 2px solid var(--teal); text-align: center; }
.pullquote .qmark { display: block; height: 0.5em; font: 400 clamp(110px, 16vw, 220px)/1 var(--serif); color: var(--pink); }
.pullquote blockquote { margin: 0; }
.pullquote blockquote p { max-width: 14em; margin: 0 auto; font: italic 400 clamp(30px, 5.2vw, 72px)/1.15 var(--serif); letter-spacing: -0.02em; color: var(--teal); }

.checklist { display: grid; gap: 4px 24px; margin-top: 8px; }
@media (min-width: 640px) { .checklist { grid-template-columns: 9em 1fr; } }
.checklist dt { font-weight: 700; color: var(--teal); padding-top: 12px; }
.checklist dd { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .checklist dt { border-bottom: 1px solid var(--line); padding-bottom: 12px; } .checklist dd { padding-top: 12px; } }

/* FAQ + journal */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq summary { position: relative; padding: 16px 36px 16px 0; font-weight: 700; color: var(--teal); }
.faq summary::after, .post .more::after { content: '+'; position: absolute; right: 4px; top: 13px; font-size: 22px; font-weight: 400; color: var(--pink-ink); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; max-width: 44em; }

.posts { border-top: 1px solid var(--line); }
.post summary { display: grid; gap: 6px; padding: 22px 0; }
.post time { font-size: 12px; color: var(--muted); }
.post h3 { font: 400 clamp(20px, 2.2vw, 28px)/1.3 var(--serif); color: var(--teal); max-width: 30em; }
.post summary > p { color: var(--muted); max-width: 44em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .more { position: relative; width: max-content; padding-right: 22px; font-size: 13px; font-weight: 700; color: var(--pink-ink); }
.post .more::after { top: -6px; right: 0; }
.post[open] .more { display: none; }
.post[open] summary > p { display: none; }
.post-body { display: grid; gap: 14px; max-width: 42em; padding-bottom: 32px; }
.post-body h2, .post-body h3 { font-size: 17px; color: var(--teal); margin-top: 8px; }
.post-body p, .post-body ul, .post-body ol { margin: 0; }
.post-body strong { color: var(--teal); }


.foot { max-width: 1400px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 24px var(--pad) 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

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