/* laurascotten.com — editorial magazine: cream paper, serif display, yellow accent */
:root {
  --paper: #F7F2E9;
  --card: #FFFDF7;
  --ink: #1C1A16;
  --muted: #6E665A;
  --line: #E4DCCB;
  --accent: #FFD200;
  --accent-soft: #FFF3BF;
  --radius: 1.1rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 24px; }

/* One consistent measure: every section shares the same left edge,
   body text sits in a comfortable column inside it. */
.how .wrap > *, .work .wrap > p, .resume .wrap > *, .contact .wrap > * { max-width: 47.5rem; }
.case > p, .case > h4, .case > .chart, .case > .angle-grid, .case > .media { max-width: 47.5rem; }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.015em; }
h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(2.8rem, 7vw, 5rem); margin: 0.2em 0 0.35em; }
h2.section-title { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 0.4em; }
h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 1.5rem; margin: 0.3em 0 0.6em; }
h4 { font-size: 0.85rem; margin: 2.2em 0 0.8em; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 500; }

p { margin: 0 0 1.1em; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
img { max-width: 100%; height: auto; display: block; border-radius: 1rem; }

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--accent);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin: 0 0 1.4rem;
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
  flex-wrap: wrap; gap: 0.6rem;
}
.brand { font-family: "Fraunces", Georgia, serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.site-nav a:hover { color: var(--ink); }

/* hero */
.hero { padding: 110px 0 80px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: 1rem; font-weight: 600;
  text-decoration: none; letter-spacing: -0.01em;
}
.btn:hover { background: #000; color: var(--paper); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--accent-soft); }

/* how i work */
.how { padding: 48px 0 88px; }
.limits {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 22px 26px;
  border-radius: var(--radius);
}

/* work */
.work { padding: 88px 0; border-top: 1px solid var(--line); }
.section-sub { color: var(--muted); margin-top: -0.6em; margin-bottom: 3em; }
.case { padding: 64px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: none; padding-top: 0; }
.case-kicker {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem;
  color: var(--muted); margin: 0 0 0.8em; font-weight: 700;
}
.case h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.caveat { font-style: italic; color: var(--muted); }
.credit { font-style: italic; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 0.9rem; }

/* media */
.media { margin: 2.2em 0; }
/* single-image figures: half-width image with the caption beside it on desktop,
   full-width image stacked above the caption on mobile */
.media:has(> img) { display: flex; gap: 32px; align-items: flex-start; }
.media:has(> img) > img { width: 50%; flex: none; border: 1px solid var(--line); }
.media:has(> img) > figcaption { margin-top: 0; padding-top: 2px; font-size: 1rem; }
.media figcaption, .angle figcaption {
  font-size: 0.92rem; color: var(--muted); margin-top: 10px; line-height: 1.5;
}
.angle figcaption strong { color: var(--ink); font-weight: 600; }
.angle-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 2.2em 0;
}
.angle-grid.two-up { grid-template-columns: repeat(2, 1fr); }
.angle {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem;
}
.angle img { border: none; }
/* embedded video players (YouTube Shorts are vertical 9:16) */
.angle .video-embed { position: relative; aspect-ratio: 9 / 16; border: 1px solid var(--line); background: #000; border-radius: 0.75rem; overflow: hidden; }
.angle .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.template-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

/* charts */
.chart { margin: 2.4em 0; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.chart figcaption {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 26px;
}
.bar-row {
  display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto;
  gap: 14px; align-items: center; margin-bottom: 12px;
}
.bar-row + .bar-row { margin-top: 40px; }
.chart .bar-row:first-of-type { margin-top: 14px; }
.bar-label { font-size: 0.92rem; color: var(--muted); line-height: 1.35; }
.bar-track { position: relative; height: 24px; background: #ECE5D3; border-radius: 999px; }
.bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--ink); border-radius: 999px; min-width: 4px;
}
.bar-win { background: var(--accent); border: 0.5px solid var(--ink); }
.bar-down { background: #B4AB99; }
.tick {
  position: absolute; top: -4px; bottom: -4px; width: 2px;
  background: var(--muted); border-radius: 2px; transform: translateX(-50%);
}
.tick::after {
  content: "before"; position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; color: var(--muted); white-space: nowrap;
}
.bar-value {
  font-family: "Fraunces", Georgia, serif; font-weight: 700;
  font-size: 1.05rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink);
}
.chart-note { font-size: 0.9rem; color: var(--muted); margin: 14px 0 0; }

/* resume */
.resume { padding: 88px 0; border-top: 1px solid var(--line); background: #EFE8D6; }
.resume-actions { margin-bottom: 2em; }
.resume-head h3 { font-size: 2rem; margin-bottom: 0.1em; }
.resume-tag { color: var(--muted); margin-bottom: 0.3em; }
.resume-links { font-size: 0.95rem; }
.resume-summary { font-size: 1.05rem; }
.job { margin-bottom: 2em; }
.job-head { margin-bottom: 0.15em; font-size: 1.08rem; }
.job-dates { color: var(--muted); font-weight: 400; font-size: 0.95rem; margin-left: 8px; }
.job-title { font-style: italic; color: var(--muted); margin-bottom: 0.7em; }
.job ul, .plain-list { padding-left: 1.3em; }
.job li, .plain-list li { margin-bottom: 0.7em; }
.resume h4 { color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 8px; }

/* contact */
.contact { padding: 88px 0 100px; border-top: 1px solid var(--line); }
.contact-lines { font-size: 1.25rem; line-height: 2; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.site-footer p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* responsive */
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero { padding: 72px 0 56px; }
  .angle-grid, .angle-grid.two-up, .template-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .bar-row { grid-template-columns: 1fr; gap: 6px; }
  .bar-value { justify-self: start; }
  .media:has(> img) { display: block; }
  .media:has(> img) > img { width: 100%; }
  .media:has(> img) > figcaption { margin-top: 10px; }
}

/* Embedded chat previews can force the host app's theme colors onto the
   page. These hardened rules keep the intended palette intact there. */
html[data-theme] body { color: #1C1A16 !important; background: #F7F2E9 !important; }
html[data-theme] body h1,
html[data-theme] body h2,
html[data-theme] body h3,
html[data-theme] body h4 { color: #1C1A16 !important; }
html[data-theme] body a:not(.btn) { color: #1C1A16 !important; }
html[data-theme] .chart,
html[data-theme] .limits,
html[data-theme] .angle { background: #FFFDF7 !important; color: #1C1A16 !important; }
html[data-theme] .resume { background: #EFE8D6 !important; }

/* print: resume only */
@media print {
  body.printing-resume .site-header,
  body.printing-resume .hero,
  body.printing-resume .how,
  body.printing-resume #work,
  body.printing-resume #contact,
  body.printing-resume .site-footer,
  body.printing-resume .resume-actions { display: none !important; }
  body.printing-resume .resume { background: #fff; border: none; padding: 0; }
  body { font-size: 12px; background: #fff; }
  a { color: var(--ink); text-decoration: none; }
}
