/* mylesweissleder.com · shared site styles · 2026-08-06 */

:root {
  --bg: #FAF6EF;
  --bg-alt: #F3EDE0;
  --ink: #2A2422;
  --body: #5A4A38;
  --muted: #7A6852;
  --accent: #A85A2E;
  --accent-bright: #C97B4A;
  --rule: #E8DFD0;
  --white: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.serif { font-family: 'Fraunces', Georgia, serif; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-bright); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 20px; }
}

/* ── NAV ──────────────────────────────────────────────────────── */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
nav.top .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
nav.top .brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; font-size: 18px;
  color: var(--ink); letter-spacing: -0.01em;
}
nav.top .brand:hover { color: var(--accent); }
nav.top ul { display: flex; gap: 32px; list-style: none; }
nav.top ul a {
  color: var(--muted); font-size: 14px; font-weight: 500;
}
nav.top ul a:hover, nav.top ul a.active { color: var(--ink); }
@media (max-width: 640px) {
  nav.top ul { gap: 20px; }
  nav.top ul a { font-size: 13px; }
}

/* ── HERO ─────────────────────────────────────────────────────── */
.hero { padding: 140px 0 100px; }
.hero .eyebrow, .section-label, .case-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--accent); font-weight: 500; margin-bottom: 20px;
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 6.5vw, 76px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink); max-width: 22ch;
  margin-bottom: 32px;
}
.hero .deck {
  font-size: 15px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.15em;
  margin-bottom: 32px; font-weight: 500;
}
.hero .lead {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.45; color: var(--body);
  max-width: 42ch;
  margin-bottom: 48px;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
  border: 1px solid var(--rule);
  background: var(--white); color: var(--ink);
  transition: all .2s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn.primary {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── SECTIONS ────────────────────────────────────────────────── */
.section { padding: 100px 0; border-top: 1px solid var(--rule); }
.section h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 48px;
  max-width: 24ch;
}

/* ── FEATURED WORK GRID ──────────────────────────────────────── */
.work-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 40px;
}
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  display: flex; flex-direction: column;
  padding: 32px; border: 1px solid var(--rule);
  background: var(--white); border-radius: 20px;
  color: inherit; transition: all .25s;
  min-height: 260px;
}
.work-card:hover { border-color: var(--accent); transform: translateY(-3px); color: inherit; }
.work-card .tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--accent); font-weight: 500; margin-bottom: 16px;
}
.work-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink); margin-bottom: 12px;
}
.work-card p {
  font-size: 14px; line-height: 1.55; color: var(--body);
  flex: 1;
}
.work-card .link {
  margin-top: 20px; font-size: 13px; font-weight: 500;
  color: var(--accent); display: inline-flex; align-items: center; gap: 6px;
}
.work-card:hover .link { color: var(--accent-bright); }
.work-card.stub .link { color: var(--muted); }
.work-card.stub { cursor: default; }
.work-card.stub:hover { border-color: var(--rule); transform: none; }

.see-all { font-size: 14px; font-weight: 500; color: var(--muted); }

/* ── ALSO BUILDING STRIP ──────────────────────────────────────── */
.also {
  padding: 60px 0; border-top: 1px solid var(--rule);
  background: var(--bg-alt);
}
.also .row {
  display: flex; align-items: baseline; gap: 32px; flex-wrap: wrap;
}
.also .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.3em;
  color: var(--accent); font-weight: 500;
}
.also .items {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 20px; color: var(--ink);
  line-height: 1.5;
}
.also .items a { color: var(--ink); border-bottom: 1px solid transparent; transition: border-color .2s; }
.also .items a:hover { border-color: var(--accent); color: var(--accent); }
.also .items .dot { color: var(--muted); margin: 0 10px; font-weight: 400; }

/* ── ABOUT ────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
}
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-item .q {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 14px;
}
.about-item .a {
  font-size: 15px; line-height: 1.65; color: var(--body);
}

/* ── CASE STUDY PAGE ──────────────────────────────────────────── */
.case-hero { padding: 100px 0 60px; }
.case-hero .back {
  font-size: 13px; color: var(--muted); margin-bottom: 32px;
  display: inline-flex; align-items: center; gap: 6px;
}
.case-hero .back:hover { color: var(--accent); }
.case-brand {
  height: 40px; width: auto; max-width: 200px; margin-bottom: 24px;
  opacity: 0.9; display: block;
  mix-blend-mode: multiply; /* makes any light/white logo background blend into the cream page */
}
.case-hero-img {
  width: 100%; max-width: 1120px; margin: 0 auto 60px;
  padding: 0 32px;
}
.case-hero-img img {
  width: 100%; height: auto; display: block;
  border-radius: 20px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (max-width: 640px) {
  .case-hero-img { padding: 0 20px; margin-bottom: 40px; }
  .case-hero-img img { aspect-ratio: 4 / 3; border-radius: 14px; }
}
.case-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 20px;
  max-width: 20ch;
}
.case-hero .case-sub {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--body); line-height: 1.4;
  max-width: 42ch; margin-bottom: 24px;
}
.case-hero .case-meta {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted); font-weight: 500;
}
.case-hero .case-meta span { margin: 0 8px; color: var(--rule); }

.case-body { padding: 40px 0 100px; border-top: 1px solid var(--rule); }
.case-body h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15; letter-spacing: -0.015em;
  color: var(--ink); margin: 48px 0 20px;
  max-width: 24ch;
}
.case-body h2:first-child { margin-top: 0; }
.case-body p {
  font-size: 17px; line-height: 1.7; color: var(--body);
  margin-bottom: 18px;
}
.case-body p.pull {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink); line-height: 1.4;
  margin: 32px 0;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}
.case-body ul { margin: 12px 0 24px 24px; }
.case-body li {
  font-size: 16px; line-height: 1.65; color: var(--body); margin-bottom: 8px;
}
.case-body strong { color: var(--ink); font-weight: 600; }
.case-body a { border-bottom: 1px solid transparent; transition: border-color .2s; }
.case-body a:hover { border-color: var(--accent-bright); }

.case-facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin: 40px 0;
  padding: 32px; border: 1px solid var(--rule); border-radius: 20px;
  background: var(--white);
}
@media (max-width: 720px) { .case-facts { grid-template-columns: repeat(2, 1fr); } }
.case-facts .k {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.25em;
  color: var(--accent); font-weight: 500; margin-bottom: 8px;
}
.case-facts .v { font-size: 15px; color: var(--ink); font-weight: 500; }
.case-facts .v span { color: var(--muted); font-weight: 400; font-size: 13px; display: block; margin-top: 2px; }

.case-nav {
  padding: 60px 0; border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.case-nav a {
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.case-nav a:hover { color: var(--accent); }
.case-nav .next {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; color: var(--ink); font-size: 20px;
}

/* ── CTA STRIP ────────────────────────────────────────────────── */
.cta-strip {
  padding: 100px 0; border-top: 1px solid var(--rule);
  background: var(--ink); color: var(--white);
}
.cta-strip h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cta-strip p {
  color: rgba(255,255,255,0.7);
  font-size: 16px; margin-bottom: 32px; max-width: 40ch;
}
.cta-strip .btn {
  background: transparent; color: var(--white); border-color: rgba(255,255,255,0.2);
}
.cta-strip .btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-strip .btn.primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.cta-strip .btn.primary:hover { background: var(--accent-bright); color: var(--white); border-color: var(--accent-bright); }

/* ── FOOTER ───────────────────────────────────────────────────── */
footer {
  padding: 48px 0; border-top: 1px solid var(--rule);
  background: var(--bg);
}
footer .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
footer .brand-mark {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500; color: var(--ink); font-size: 16px;
}
footer .socials { display: flex; gap: 20px; align-items: center; }
footer .socials a {
  color: var(--muted); font-size: 13px; font-weight: 500;
}
footer .socials a:hover { color: var(--accent); }
footer .copy { color: var(--muted); font-size: 12px; }
