/* Carraig Cost website stylesheet. Mobile-first; wider layouts at 720px and 1000px.
   Layout: navy header, dark grid "drawing sheet" hero, light content bands, navy footer.
   Single deliberate light look (no dark mode). */
:root {
  --navy: #181E27;        /* brand primary */
  --deep: #14252D;        /* teal-navy from the LinkedIn banner */
  --gold: #F5A94F;        /* brand accent: use on dark backgrounds or as fills */
  --gold-dark: #9A5F14;   /* accent for text on light backgrounds (passes contrast) */
  --grey: #7F7F7F;        /* brand secondary: labels and large text only */
  --grey-text: #565C66;   /* secondary body text on light backgrounds */
  --cream: #F3EEE4;       /* text on dark */
  --paper: #FBFAF8;       /* page background */
  --stone: #F0EEEA;       /* alternate band */
  --line: #DEDBD5;
  --ink: #181E27;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 5vw, 3.1rem);

  --gutter: 16px;
  --max: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); font-weight: 700; }
h2 { font-size: var(--step-2); font-weight: 650; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0; }
a { color: var(--navy); text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--gold-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 20; background: var(--gold); color: var(--navy); padding: 8px 12px; }
.tbc { background: #FFE6B8; color: #5A3A00; padding: 0 4px; border-radius: 2px; }

/* Header */
.site-header { background: var(--navy); color: var(--cream); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand-logo { height: 40px; width: auto; }
@media (min-width: 720px) { .brand-logo { height: 52px; } }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-tag { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-nav a { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.98rem; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }

/* Hero: dark sheet with a faint grid, like squared measurement paper */
.hero {
  background-color: var(--deep);
  background-image:
    linear-gradient(rgba(243,238,228,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,238,228,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--cream);
}
/* Photo hero: remove the hero-photo class and style attribute from a page to go back to the plain grid */
.hero-photo {
  --hero-shade: linear-gradient(rgba(20,37,45,0.78), rgba(20,37,45,0.78));
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
@media (min-width: 720px) {
  .hero-photo { --hero-shade: linear-gradient(90deg, rgba(20,37,45,0.88) 0%, rgba(20,37,45,0.72) 50%, rgba(20,37,45,0.38) 100%); }
}
.hero .wrap { padding-block: 56px 60px; display: grid; gap: 20px; }
.hero h1 { max-width: 20ch; }
.hero .lede { font-size: var(--step-1); max-width: 40em; color: var(--cream); opacity: 0.92; }
.eyebrow { font-family: var(--font-head); font-size: var(--step--1); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); }
.hero .eyebrow, .band-dark .eyebrow { color: var(--gold); }
.page-hero .wrap { padding-block: 44px 44px; }
.page-hero h1 { max-width: 22ch; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-block; font-weight: 700; text-decoration: none; padding: 12px 20px; border: 2px solid var(--gold); border-radius: 3px; font-size: 1rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #F8BC73; color: var(--navy); }
.btn-line { color: var(--cream); }
.btn-line:hover { background: rgba(245,169,79,0.12); color: var(--cream); }

/* Credentials strip */
.creds { background: var(--navy); color: var(--cream); border-top: 1px solid rgba(243,238,228,0.12); }
.creds-list { list-style: none; margin-block: 0; display: grid; gap: 18px; padding-block: 24px; }
.creds-list li { display: grid; gap: 2px; align-content: start; }
.creds-list strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--gold); font-weight: 700; }
.creds-list span { font-size: 0.95rem; opacity: 0.9; }

/* Content bands */
.band { padding-block: 56px; }
.band-stone { background: var(--stone); }
.band-dark { background: var(--navy); color: var(--cream); }
.band-dark a { color: var(--cream); }
.band .wrap { display: grid; gap: 28px; }
.section-head { display: grid; gap: 10px; max-width: 44em; }
.section-head p { color: var(--grey-text); }
.band-dark .section-head p { color: var(--cream); opacity: 0.88; }
.prose { display: grid; gap: 16px; max-width: 40em; }
.more { font-weight: 700; }

/* Service list on home */
.service-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-grid li { border-bottom: 1px solid var(--line); padding-block: 16px; display: grid; gap: 4px; }
.service-grid a { font-family: var(--font-head); font-weight: 650; font-size: 1.12rem; text-decoration: none; }
.service-grid a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.service-grid p { color: var(--grey-text); font-size: 0.98rem; }

/* Who I work with */
.clients { display: grid; gap: 20px; }
.client { display: grid; gap: 6px; padding-top: 14px; border-top: 3px solid var(--gold); }
.client p { color: var(--grey-text); }

/* Experience table */
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-head); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--grey-text); font-weight: 600; }
td.num, th.num { text-align: right; padding-right: 20px; }
.band-dark th, .band-dark td { border-color: rgba(243,238,228,0.16); }
.band-dark th { color: var(--gold); }

/* Call to action */
.cta .wrap { gap: 18px; }
.cta h2 { max-width: 22ch; }
.cta p { max-width: 38em; }

/* Services page */
.jump { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; font-weight: 600; }
.service { display: grid; gap: 14px; padding-block: 36px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.service:first-of-type { border-top: 0; }
.service .intro { max-width: 40em; }
.includes { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; max-width: 40em; }
.includes li::marker { color: var(--gold-dark); }
.label { font-family: var(--font-head); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey); font-weight: 600; }

/* Projects page */
.project-grid { display: grid; gap: 28px; }
.project { display: grid; gap: 10px; align-content: start; min-width: 0; }
.photo-slot {
  aspect-ratio: 4 / 3; max-width: 100%;
  background-color: var(--stone);
  background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(24,30,39,0.05) 10px 11px);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--grey-text); font-size: var(--step--1);
}
.project-photo { aspect-ratio: 4 / 3; width: 100%; max-width: 100%; height: auto; object-fit: cover; border: 1px solid var(--line); }
.feature-photos { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.feature-photos .project-photo:first-child { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .project-feature { grid-column: 1 / -1; }
  .feature-photos { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .feature-photos .project-photo:first-child { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; height: 100%; }
}
@media (min-width: 1000px) { .project-feature { grid-column: span 2; } }
.project-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.project-photos .project-photo:first-child { grid-column: 1 / -1; }
.project-photos.photos-5 { grid-template-columns: repeat(4, 1fr); }
.project .where { font-size: var(--step--1); color: var(--grey-text); letter-spacing: 0.04em; }
.status { display: inline-block; margin-left: 6px; padding: 1px 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); background: var(--gold); border-radius: 2px; vertical-align: 1px; }
.status-pre { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--gold-dark); }
.project .what { color: var(--gold-dark); font-weight: 700; font-size: 0.95rem; }

/* About page */
.about-grid { display: grid; gap: 32px; }
.headshot { aspect-ratio: 4 / 5; max-width: 320px; width: 100%; height: auto; object-fit: cover; border-bottom: 4px solid var(--gold); }
.timeline { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.timeline div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.timeline dt { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--gold-dark); font-size: 0.95rem; }
.timeline dd { margin: 0; }
.timeline dd span { color: var(--grey-text); }
.quals { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* Contact page */
.contact-grid { display: grid; gap: 32px; }
.contact-list { margin: 0; display: grid; gap: 18px; }
.contact-list dt { font-family: var(--font-head); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-text); font-weight: 600; }
.contact-list dd { margin: 0; font-size: 1.3rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-list dd.small { font-size: 1.05rem; font-weight: 400; }
.checklist { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.panel { background: var(--stone); padding: 24px; border-left: 4px solid var(--gold); display: grid; gap: 14px; min-width: 0; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); font-size: 0.95rem; }
.site-footer a { color: var(--cream); text-decoration-color: rgba(245,169,79,0.6); }
.site-footer a:hover { color: var(--gold); }
.footer-inner { display: grid; gap: 24px; padding-block: 40px 28px; }
.footer-col { display: grid; gap: 8px; align-content: start; }
.footer-name { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.footer-label { font-family: var(--font-head); font-size: var(--step--1); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.footer-legal { border-top: 1px solid rgba(243,238,228,0.14); padding-block: 18px 26px; font-size: 0.85rem; opacity: 0.85; }

@media (min-width: 720px) {
  :root { --gutter: 28px; }
  .hero .wrap { padding-block: 84px 88px; }
  .creds-list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .service-grid { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .clients { grid-template-columns: 1fr 1fr; gap: 28px 40px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 2fr 1.4fr 1fr; }
  .timeline div { grid-template-columns: 8.5em 1fr; gap: 16px; }
  .service { grid-template-columns: 1fr 1fr; column-gap: 48px; align-items: start; }
  .service h2 { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .band { padding-block: 72px; }
  .clients { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr 2fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
