/* Dawn Walter portfolio — shared styles */

:root {
  --bg: #FAFAF7;
  --bg-band: #F0EFEA;
  --bg-panel: #EFEEE9;
  --surface: #FFFFFF;
  --ink: #17171A;
  --ink-2: #3A3A42;
  --muted: #5C5C66;
  --line: #E4E3DE;
  --line-strong: #D6D5CF;
  --accent: #2D5B88;        /* Denim */
  --accent-hover: #1F4566;
  --accent-tint: #E6EEF5;
  --font-body: Inter, system-ui, sans-serif;
  --font-head: 'Schibsted Grotesk', system-ui, sans-serif;
  --max: 1200px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Header and footer */
.site-header { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.site-name { font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.site-nav a:hover { color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 32px; padding-bottom: 32px; color: var(--muted); font-size: 15px; }
.site-footer a { color: var(--muted); padding: 10px 0; }

/* Type */
.eyebrow { margin: 0 0 16px; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.h-section { margin: 0 0 32px; font-family: var(--font-head); font-size: 40px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.label { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.muted { color: var(--muted); }

/* Pills and tags */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 15px; }
.pill--white { background: var(--surface); border-color: var(--line); }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 13px; font-weight: 600; }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 48px; }
.hero h1 { margin: 0; max-width: 980px; font-family: var(--font-head); font-weight: 600; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.05; letter-spacing: -0.02em; }
.hero .intro { margin: 28px 0 0; max-width: 700px; font-size: 20px; color: var(--ink-2); }
.hero-eyebrow { margin-bottom: 20px; }
.focus { padding-bottom: 112px; }

/* Highlights */
.highlights { padding-bottom: 128px; }
.highlight-grid { display: flex; flex-wrap: wrap; gap: 0 40px; border-top: 2px solid var(--ink); }
.highlight { flex: 1 1 320px; padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.highlight .figure { margin: 0 0 12px; font-family: var(--font-head); font-size: 48px; font-weight: 600; line-height: 1; color: var(--accent); }
.highlight p { margin: 0; color: var(--ink-2); }

/* Case study cards (homepage) */
.work { padding-bottom: 128px; }
.cards { display: flex; flex-direction: column; gap: 24px; }
.case-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; display: flex; flex-wrap: wrap; }
.case-card:hover { border-color: var(--line-strong); }
.case-card__text { flex: 1 1 480px; min-width: 0; padding: 44px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.case-card__product { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.case-card__title { margin: 0; font-family: var(--font-head); font-size: 32px; font-weight: 600; line-height: 1.2; }
.case-card__outcome { margin: 6px 0 20px; color: var(--muted); }
.case-card__cta { font-weight: 500; color: var(--accent); }
.case-card__visual { flex: 1 1 420px; min-height: 340px; position: relative; overflow: hidden; background: var(--bg-panel); }
.case-card__visual img { position: absolute; top: 56px; left: 56px; width: 720px; max-width: none; height: auto; border-radius: 12px 0 0 0; box-shadow: 0 8px 28px rgba(23,23,26,0.12); }
.case-card__visual img.small { width: 640px; }

/* Testimonials */
.testimonials { background: var(--bg-band); padding: 112px 0; }
.testimonials .h-section { margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter { min-height: 44px; padding: 10px 20px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; border: 1px solid #C9C8C1; background: transparent; color: var(--ink); }
.filter[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.quotes { display: flex; flex-wrap: wrap; gap: 20px; }
.quote { flex: 1 1 340px; margin: 0; padding: 30px; background: var(--surface); border-radius: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote[hidden] { display: none; }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.quote figcaption { display: flex; align-items: center; gap: 14px; }
.quote figcaption img { display: block; width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; }
.quote__who { display: flex; flex-direction: column; line-height: 1.35; }
.quote__name { font-weight: 600; }
.quote__role { font-size: 15px; color: var(--muted); }
.testimonials .more { margin: 32px 0 0; }

/* About */
.about { padding-top: 112px; padding-bottom: 48px; display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 40px 64px; }
.about__text { flex: 999 1 560px; min-width: 0; }
.about__text .h-section { margin-bottom: 24px; }
.about__text p { margin: 0; max-width: 820px; font-size: 21px; line-height: 1.55; }
.about__photo { flex: none; display: block; width: 260px; height: 260px; border-radius: 50%; object-fit: cover; object-position: center 35%; }

/* Labelled rows: label column left, content right (About subsections and case studies) */
.row { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.row > .label { flex: 1 1 240px; }
.row__body { flex: 999 1 600px; min-width: 0; }
.row--ruled { border-top: 1px solid var(--line); }
.list-rows { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.list-rows > li { padding: 20px 0; border-top: 1px solid var(--line); }
.item-title { margin: 0; font-size: 19px; font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.item-meta { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.skills { display: flex; flex-direction: column; gap: 24px; border-top: 1px solid var(--line); padding-top: 24px; }
.skills .tools-label { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); }

/* Experience */
.experience { padding-top: 48px; padding-bottom: 48px; }
.experience > .label { margin-bottom: 24px; }
.job { border-top: 1px solid var(--line); padding: 40px 0 44px; display: flex; flex-wrap: wrap; gap: 28px 48px; }
.job__meta { flex: 1 1 280px; max-width: 380px; }
.job__logo { display: block; height: 44px; width: auto; margin-bottom: 24px; }
.job__logo--tall { height: 60px; }
.job__title { margin: 0 0 10px; font-family: var(--font-head); font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--accent); }
.job__dates { margin: 0 0 12px; font-size: 17px; color: var(--ink); }
.job__company { margin: 0; font-size: 16px; color: var(--muted); }
.job ul { flex: 999 1 520px; min-width: 0; margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.experience .more { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); }

/* Languages */
.lang { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 18px 0 !important; }
.lang__name { font-size: 19px; font-weight: 500; }
.flags { display: inline-flex; flex: none; }
.flag { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.flag + .flag { margin-left: -8px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line); }
.languages { padding-bottom: 128px; }

/* Case study pages */
.cs-head { padding-top: 64px; padding-bottom: 48px; }
.back { display: inline-block; padding: 10px 0; margin-bottom: 24px; font-size: 15px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }
.cs-logo { display: block; height: 40px; width: auto; margin: 0 0 28px; }
.cs-head h1 { margin: 0; max-width: 980px; font-family: var(--font-head); font-weight: 600; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -0.02em; }
.cs-hero { margin: 0 auto; padding-bottom: 80px; }
.cs-hero__panel { border-radius: 18px; background: var(--bg-panel); padding: clamp(20px, 4vw, 56px); display: flex; justify-content: center; }
.cs-hero__panel img { display: block; width: 100%; max-width: 1040px; height: auto; border-radius: 12px; box-shadow: 0 1px 2px rgba(23,23,26,0.06), 0 8px 24px rgba(23,23,26,0.08); }
.cs-hero__panel img.low-detail { max-width: 560px; border-radius: 10px; background: #FFFFFF; }
.cs-hero figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.cs .row > .label { flex: 1 1 260px; }
.cs .row__body { flex: 999 1 560px; }
.cs .row__body > p { margin: 0 0 16px; }
.cs .row__body > p:last-child { margin-bottom: 0; }
.cs .row--last { padding-bottom: 112px; }
.project-name { font-family: var(--font-head); font-size: 19px; font-weight: 500; line-height: 1.35; }
.pull { font-family: var(--font-head); font-size: 24px; font-weight: 500; line-height: 1.35; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 20px; }
.steps .n { flex: none; font-family: var(--font-head); font-weight: 600; color: var(--accent); }
.bullets { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.inline-figure { margin: 32px 0 0; max-width: 704px; }
.inline-figure img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; }
.inline-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

.next { background: var(--bg-band); border-top: 1px solid var(--line); }
.next a { display: block; padding-top: 80px; padding-bottom: 80px; color: var(--ink); text-decoration: none; }
.next .eyebrow { margin-bottom: 12px; }
.next__title { margin: 0; font-family: var(--font-head); font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; line-height: 1.15; }
.next a:hover .next__title { color: var(--accent); }
