/* Shaun Burley portfolio. One stylesheet, no build step. */

:root {
  --bg: #faf8f4;
  --surface: #f2eee6;
  --text: #1d1c1a;
  --muted: #57534c;
  --rule: #ddd6c9;
  --accent: #0d5c57;
  --accent-soft: #e3efed;
  --focus: #b4440e;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 40rem;
  --wide: 68rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --surface: #211f1d;
    --text: #efebe4;
    --muted: #b3ada3;
    --rule: #3a3632;
    --accent: #7cc7bf;
    --accent-soft: #1f302e;
    --focus: #f0a46a;
    color-scheme: dark;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--measure); }

/* Header */

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.site-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.site-nav ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover,
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Type */

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 3.5rem 0 1rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
p { margin: 0 0 1.1rem; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.lede { font-size: 1.25rem; line-height: 1.55; color: var(--muted); }

/* Home */

.hero { padding: 4.5rem 0 3rem; }
.hero h1 { max-width: 16ch; }
.hero .lede { max-width: 36rem; }
.hero .intro { max-width: var(--measure); margin-top: 1.5rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}
.button.primary { background: var(--accent); color: var(--bg); }

.section { padding: 1rem 0 2rem; }
.section > h2:first-child { margin-top: 2rem; }

.work-list { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
.work-card {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: 14px;
}
@media (min-width: 52rem) {
  .work-card { grid-template-columns: 1.1fr 1fr; padding: 2rem; }
}
.work-card h3 { margin-top: 0; font-size: 1.6rem; }
.work-card h3 a { color: var(--text); text-decoration: none; }
.work-card h3 a:hover { text-decoration: underline; }
.work-card .media { background: var(--bg); border-radius: 10px; overflow: hidden; }
.work-card .media img { width: 100%; max-height: 22rem; object-fit: cover; object-position: top; }
.tags { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  font-size: 0.8rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
}

.principles { list-style: none; counter-reset: p; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .principles { grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; } }
.principles li { counter-increment: p; border-top: 1px solid var(--rule); padding-top: 1rem; }
.principles li::before {
  content: counter(p, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.principles h3 { margin: 0.3rem 0 0.4rem; font-size: 1.25rem; }
.principles p { color: var(--muted); margin: 0; }

/* Case studies */

.breadcrumb { font-size: 0.9rem; color: var(--muted); padding-top: 1.5rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.4rem; color: var(--rule); }

.case-header { padding: 2rem 0 1.5rem; }
.case-header h1 { max-width: 20ch; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem 2rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.facts dt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; }

.case-body h2 { border-top: 1px solid var(--rule); padding-top: 2rem; }
.decision { margin: 2rem 0; }
.decision h3 { margin-top: 0; }
.tradeoff {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
}
.tradeoff strong { font-weight: 600; }

figure { margin: 2rem 0 2.5rem; }
figure.wide { max-width: var(--wide); }
figure .frame { background: var(--surface); border-radius: 12px; padding: clamp(0.75rem, 3vw, 2rem); }
figure .frame img { margin: 0 auto; border-radius: 4px; }
figure.small .frame img { width: auto; }
figure.tall .frame img { max-height: 46rem; width: auto; }
figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; max-width: var(--measure); }
.scroll-x { overflow-x: auto; }
.scroll-x img { min-width: 56rem; }

.links-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }

.next-case {
  margin: 4rem 0 0;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
}
.next-case a { font-family: var(--serif); font-size: 1.6rem; color: var(--text); }

/* About + CV */

.about-list { padding-left: 1.2rem; }
.about-list li { margin-bottom: 0.75rem; }

.cv h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 2.5rem 0 1rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem; }
.cv h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 0.1rem; }
.cv .role-meta { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.5rem; }
.cv ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.cv li { margin-bottom: 0.35rem; }
.cv-contact { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0.5rem 0 0; }

/* Footer */

.site-footer { border-top: 1px solid var(--rule); margin-top: 5rem; padding: 2.5rem 0 3rem; }
.site-footer h2 { margin-top: 0; font-size: 1.6rem; }
.contact-links { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; }
.site-footer small { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; line-height: 1.45; }
  a { color: #000; text-decoration: none; }
  .wrap { max-width: none; padding: 0; }
  .cv h1 { font-size: 22pt; margin-bottom: 2pt; }
  .cv h2 { color: #000; margin: 14pt 0 6pt; border-color: #999; }
  .cv h3 { margin-top: 8pt; }
  .cv li, .cv h3 { break-inside: avoid; }
  @page { margin: 0.6in; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
