/* ========================================================================== 
   DAVE GUIDO — SHARED STYLES
   Both websites use this file. The <html data-site="personal|portfolio">
   attribute selects a fixed palette; the visitor's OS theme does not override it.

   Contents: 1 Fonts / 2 Design settings / 3 Base & accessibility / 4 Header
             5 Hero / 6 Content / 7 Projects / 8 Contact / 9 Stories
             10 Responsive adjustments / 11 Print & user preferences
   ========================================================================== */

/* 1. LOCAL FONTS — no Google Fonts request is made by a visitor's browser.
   These WOFF2 files include Latin text and punctuation. See fonts/OFL.txt.
   Add another character subset here if you later translate the websites. */
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/noto-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Noto Serif";
  src: url("../fonts/noto-serif-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* 2. DESIGN SETTINGS — the main place to adjust color, size, and spacing.
   Palette: Flexoki by Steph Ango, https://stephango.com/flexoki.
   Secondary text and cyan retain readable contrast against their backgrounds. */
:root {
  color-scheme: light;
  --paper: #fffcf0;
  --ink: #100f0f;
  --background: var(--paper);
  --text: var(--ink);
  --muted: #575653;
  --accent: #176b68;
  --accent-hover: #124f4d;
  --rule: #dad8ce;
  --panel: #1c2522;
  --font-body: "Noto Sans", system-ui, sans-serif;
  --font-display: "Noto Serif", Georgia, serif;
  --content-width: 64.5rem;
  --gutter: clamp(1.5rem, 7vw, 5.25rem);
  --section-space: 2.5rem;
  --body-size: 1.1875rem;
  --body-leading: 1.45;
  --heading-size: clamp(1.875rem, 3.84vw, 2.875rem);
  --hero-size: clamp(3rem, 8.85vw, 6.625rem);
  --hero-serif-size: clamp(2rem, 5.84vw, 4.375rem);
}

/* Fixed dark mode for every portfolio page. Never add a system-theme override. */
html[data-site="portfolio"] {
  color-scheme: dark;
  --background: var(--ink);
  --text: var(--paper);
  --muted: #b7b5ac;
  --accent: #3aa99f;
  --accent-hover: #87d3c3;
  --rule: #343331;
}

/* 3. BASE & ACCESSIBILITY — content is ordinary HTML and works without JS. */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  font: 400 var(--body-size)/var(--body-leading) var(--font-body);
  -webkit-text-size-adjust: 100%;
}

/* Never hide horizontal overflow to conceal a layout problem. Long email
   addresses, future project names, and enlarged text may wrap naturally. */
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
p { color: var(--muted); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }
a:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
  border-radius: 2px;
}
::selection { color: var(--background); background: var(--accent); }
[id] { scroll-margin-top: 1.5rem; }
.container { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* The first keyboard stop bypasses repeated navigation. It becomes visible
   on focus, including in high-contrast mode. */
.skip-link {
  position: absolute; z-index: 10; top: .75rem; left: 1rem;
  padding: .75rem 1rem; color: var(--background); background: var(--text);
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); color: var(--background); }

/* Shared small labels: visually restrained, but larger than the tiny labels
   in the static concept so they remain useful on a real display. */
.eyebrow {
  color: var(--accent); font-size: .75rem; font-weight: 700;
  line-height: 1.5; letter-spacing: .025em; text-transform: uppercase;
}
.section-heading { font: 400 var(--heading-size)/1.28 var(--font-display); }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: 1rem; }
.prose { max-width: 52rem; }

/* 4. HEADER — the same names and typographic treatment on both sites.
   Navigation stays visible at every width; no hamburger or JS dependency. */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.brand { color: var(--text); font: 400 1.5rem/1.4 var(--font-display); text-decoration: none; }
.brand:hover { color: var(--text); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; padding: 0; margin: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); font-size: .875rem; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* 5. HERO — explicit line break after Thoughtful preserves the approved
   composition. All sizes remain fluid and use rem-based minimums. */
.hero { padding-top: 3.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--rule); }
.hero .eyebrow { margin-bottom: 1.75rem; }
.hero-title { font-weight: 400; }
.hero-title__strong { display: block; font: 700 var(--hero-size)/1.08 var(--font-body); letter-spacing: -.015em; }
.hero-title__soft { display: block; margin-top: .375rem; color: var(--accent); font: 400 var(--hero-serif-size)/1.23 var(--font-display); letter-spacing: -.02em; }
.hero-intro { max-width: 49rem; margin-top: 2rem; font-size: 1.4375rem; line-height: 1.45; }
.hero-scope { max-width: 52rem; margin-top: 1.25rem; font-size: 1rem; }
.hero .text-link { margin-top: 1rem; }

/* 6. PERSONAL CONTENT & PORTFOLIO LEADERSHIP */
.section { padding-block: var(--section-space); }
.section > .eyebrow { margin-bottom: 1rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; margin-top: 1.75rem; }
.personal-exploration { padding-top: .75rem; padding-bottom: 2.75rem; }
.personal-exploration .section-heading { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.personal-exploration .prose { margin-top: 1.25rem; }
.leadership { border-bottom: 1px solid var(--rule); }
.leadership .prose { margin-top: 1.5rem; }

/* 7. PROJECT ROWS — the DOM order is also the mobile and keyboard order:
   project text, link, then illustration. Desktop simply adds a right column. */
.selected-work { padding-top: 1.75rem; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 30%); align-items: center; gap: 2.5rem; padding-block: 2.5rem; border-bottom: 1px solid var(--rule); }
.project:first-of-type { padding-top: 1.25rem; }
.project .eyebrow { margin-bottom: .75rem; }
.project-title { font: 700 clamp(1.75rem, 3.8vw, 2.875rem)/1.2 var(--font-body); letter-spacing: -.015em; }
.project-summary { margin-top: 1.25rem; font-size: 1.25rem; }
.project-role { margin-top: 1rem; font-size: .875rem; }
.project .text-link { margin-top: .5rem; }

/* These abstract SVGs are intentionally decorative, never product UI or
   performance evidence. Keep the visible caption if you replace the artwork
   with another concept illustration. Real evidence needs a factual caption. */
.concept-art { overflow: hidden; border-radius: .875rem; background: var(--panel); }
.concept-art img { width: 100%; aspect-ratio: 2.65; object-fit: contain; }
.concept-art figcaption { padding: .25rem .875rem .875rem; color: #b7b5ac; font-size: .75rem; line-height: 1.5; }
.fleet { border-bottom: 1px solid var(--rule); }
.fleet-heading { display: flex; align-items: baseline; gap: .875rem; font: 400 clamp(1.75rem, 3vw, 2.25rem)/1.3 var(--font-display); }
.fleet-heading svg { flex: 0 0 1.125rem; width: 1.125rem; height: 1.125rem; color: var(--accent); }
.fleet .prose { margin-top: 1.25rem; }
.fleet .text-link { margin-top: .75rem; }

/* 8. CONTACT & FOOTER — native mail and web links remain functional offline
   as browser actions. There is no form, data collection, or analytics. */
.contact { border-top: 1px solid var(--rule); padding-block: 2.5rem 1.75rem; }
html[data-site="portfolio"] .contact { border-top: 0; }
.contact .section-heading { font-size: clamp(2rem, 4vw, 3.25rem); }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; margin-top: 1.25rem; }
.email-link { max-width: 100%; min-height: 2.75rem; display: inline-flex; align-items: center; font-size: 1.375rem; overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--rule); padding-block: 1.75rem 2.75rem; }
.footer-name { color: var(--text); font: 400 1.25rem/1.5 var(--font-display); }
.attribution { margin-top: .875rem; font-size: .75rem; }
.attribution a { color: inherit; }
.personal-backlink { margin-top: .375rem; font-size: .875rem; }

/* 9. STORY STARTERS — intentionally simple editorial pages. Add approved
   project details directly in each HTML file; there is no content framework. */
.story-header { padding-block: 3rem 2.5rem; border-bottom: 1px solid var(--rule); }
.story-header .eyebrow { margin-top: 2rem; margin-bottom: 1rem; }
.story-title { font: 700 clamp(2.5rem, 6.5vw, 5rem)/1.12 var(--font-body); letter-spacing: -.025em; }
.story-deck { max-width: 45rem; margin-top: 1.5rem; font-size: 1.375rem; }
.story-body { max-width: 48rem; padding-block: 2.5rem; }
.story-body section + section { margin-top: 2.5rem; }
.story-body h2 { font: 400 clamp(1.75rem, 3vw, 2.5rem)/1.3 var(--font-display); margin-bottom: 1rem; }
.story-body p + p { margin-top: 1rem; }
.story-body .concept-art { max-width: 30rem; margin-block: 2rem; }

/* 10. RESPONSIVE COMPOSITION — the desktop columns collapse before their
   text becomes cramped. At 390px the layout follows the supplied mobile art. */
@media (max-width: 47.99rem) {
  :root { --gutter: 1.5rem; --body-size: 1.0625rem; --section-space: 2.25rem; --hero-size: clamp(2.5rem, 12.56vw, 3.75rem); --hero-serif-size: clamp(1.875rem, 8.97vw, 2.5rem); }
  .site-header { flex-direction: column; align-items: flex-start; gap: .75rem; padding-top: 1.75rem; padding-bottom: .5rem; }
  .hero { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .hero .eyebrow { margin-bottom: 1.5rem; }
  .hero-intro { margin-top: 1.75rem; font-size: 1.125rem; }
  .hero-scope { font-size: .875rem; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
  .personal-exploration { padding-top: .25rem; padding-bottom: 2.5rem; }
  .project { grid-template-columns: minmax(0, 1fr); gap: .5rem; padding-block: 2rem; }
  .project-title { font-size: 1.875rem; }
  /* Keep the product's two-word name together in the intended mobile wrap. */
  .project-title__line { display: block; }
  .project-summary { margin-top: 1rem; font-size: 1.125rem; }
  .concept-art img { aspect-ratio: 3.5; }
  .contact { padding-block: 2.25rem 1.5rem; }
  .email-link { font-size: 1.125rem; }
  .site-footer { padding-bottom: 2.5rem; }
  .story-header { padding-top: 1.5rem; }
}

/* 11. USER PREFERENCES & PRINT — no entrance effects hide content.
   Smooth anchor movement is the only motion, and is disabled when requested. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (forced-colors: active) {
  a:focus-visible, [tabindex="-1"]:focus-visible { outline-color: Highlight; }
  .concept-art { border: 1px solid CanvasText; }
}
@media print {
  :root, html[data-site="portfolio"] { color-scheme: light; --background: #fff; --text: #000; --muted: #333; --accent: #124f4d; --rule: #aaa; }
  .container { width: 100%; }
  .site-nav, .skip-link { display: none; }
  .hero { padding-top: 1rem; }
  .hero-title__strong { font-size: 3rem; }
  .hero-title__soft { font-size: 2rem; }
  .project, .contact, .story-body section { break-inside: avoid; }
  .concept-art { display: none; }
}
