/* Tim Danielson — photography-led clear water
   Single stylesheet. One web font (Fraunces, loaded in each HTML <head>).
   Edit the tokens at the top of :root if you want to tweak colors or spacing. */

:root {
  /* Colors */
  --sea-deep: #0a3a4a;     /* deep ocean shadow */
  --sea-mid:  #1a6b7e;     /* mid turquoise */
  --sea-light:#6bc9cc;     /* bright turquoise highlight */
  --sand:     #f4ede0;     /* warm off-white, body bg */
  --foam:     #ffffff;     /* pure white, text on photos */
  --ink:      #0b1f33;     /* dark navy, body text */
  --ink-soft: #4a5968;     /* secondary text */
  --rule:     #e4e0d6;     /* hairline dividers */

  /* Layout */
  --max:      1200px;
  --max-text: 680px;
  --pad:      clamp(1.25rem, 4vw, 2.5rem);

  /* Glass panel */
  --glass-bg:     rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-shadow: 0 20px 60px rgba(10, 58, 74, 0.25);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 300;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  line-height: 1.05;
  color: var(--ink);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: 1.25rem; font-weight: 400; line-height: 1.3; }

p { margin: 0 0 1em; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 150ms ease;
}

a:hover { color: var(--sea-mid); }

/* ============================================================
   TOP BAR — transparent, overlays hero photo
   ============================================================ */

.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem var(--pad);
  color: var(--foam);
}

.topbar .brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--foam);
  text-decoration: none;
  white-space: nowrap;
}

.topbar nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.topbar nav a {
  color: var(--foam);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.7;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: opacity 150ms ease, border-color 150ms ease;
}

.topbar nav a:hover { opacity: 1; }

.topbar nav a.active {
  opacity: 1;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.topbar .lang {
  gap: 0.6rem;
  font-size: 0.7rem;
}

.topbar .lang .divider {
  opacity: 0.35;
  padding-bottom: 2px;
}

/* ============================================================
   HERO — full-bleed photo, glass content panel
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 7rem var(--pad) 4rem;
  color: var(--foam);
  overflow: hidden;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 58, 74, 0.35) 0%, rgba(10, 58, 74, 0.10) 30%, rgba(10, 58, 74, 0.55) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.hero-tall { min-height: 100svh; }
.hero-short { min-height: 70svh; }

/* ============================================================
   GLASS PANEL
   ============================================================ */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(1.25);
  -webkit-backdrop-filter: blur(24px) saturate(1.25);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 560px;
  box-shadow: var(--glass-shadow);
  color: var(--foam);
}

.glass .kicker {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 1rem;
}

.glass h1,
.glass h2 { color: var(--foam); }

.glass p {
  color: var(--foam);
  opacity: 0.92;
}

.glass p.lead {
  font-size: 1.1rem;
  opacity: 1;
  margin-top: 0.5rem;
}

.glass a {
  color: var(--foam);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  transition: text-decoration-color 150ms ease;
}

.glass a:hover {
  color: var(--foam);
  text-decoration-color: var(--foam);
}

.glass .cta {
  margin-top: 1.75rem;
  margin-bottom: 0;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ============================================================
   CONTENT SECTION — sandy background below hero
   ============================================================ */

.content {
  background: var(--sand);
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
}

.content-inner {
  max-width: var(--max-text);
  margin: 0 auto;
}

.content h2 {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.content h3 {
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
}

.content p {
  color: var(--ink-soft);
  max-width: 60ch;
}

.content .section + .section {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--rule);
}

/* ============================================================
   PORTRAIT + BIO LAYOUT (About page)
   ============================================================ */

.portrait-bio {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .portrait-bio {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
}

.portrait {
  flex-shrink: 0;
  width: 220px;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--sea-light);
  box-shadow: 0 10px 30px rgba(10, 58, 74, 0.15);
}

@media (min-width: 720px) {
  .portrait { width: 260px; height: 260px; }
}

.portrait-bio .bio-text {
  flex: 1;
  min-width: 0;
}

.portrait-bio .bio-text h2 { margin-top: 0; }
.portrait-bio .bio-text p:last-child { margin-bottom: 0; }

/* ============================================================
   HIGHLIGHTS LIST (career highlights, on About page)
   ============================================================ */

.highlights ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.highlights li {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  flex-wrap: wrap;
}

.highlights li:last-child { border-bottom: none; }

.highlights li .role { font-weight: 400; }
.highlights li .where { color: var(--ink-soft); font-style: italic; }
.highlights li .years {
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */

.services-grid {
  display: grid;
  gap: 2.25rem 2.5rem;
  grid-template-columns: 1fr;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

.service h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.service p {
  margin: 0;
  font-size: 0.95rem;
  max-width: none;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  padding: 2.75rem var(--pad);
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--sand);
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
}

.footer a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer a:hover { color: var(--ink); }

/* ============================================================
   RESPONSIVE — small screens
   ============================================================ */

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding: 1.1rem var(--pad);
  }
  .topbar nav.primary {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 1.25rem;
  }
  .topbar .lang { margin-left: auto; }
  .hero { padding-top: 8rem; }
  .glass { padding: 1.5rem; }
}

::selection {
  background: var(--sea-light);
  color: var(--ink);
}
