/* ===========================================================
   Portfolio — shared styles
   Field #17518C · white text · arch portrait
   Archivo (display) · Newsreader (body)
   =========================================================== */

:root {
  --field: #17518C;
  --field-deep: #113F6E;
  --paper: #FFFFFF;
  --soft: rgba(255, 255, 255, 0.78);
  --faint: rgba(255, 255, 255, 0.34);

  --page: 74rem;
  --measure: 32rem;
}

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

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

body {
  margin: 0;
  background: var(--field);
  color: var(--paper);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.75rem 1.5rem 5rem;
}

@media (min-width: 48rem) {
  .page { padding: 2.5rem 3rem 8rem; }
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5rem;
}

.masthead__name {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--paper);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 1.0625rem;
}

.nav a {
  color: var(--soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--paper); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 7rem;
}

@media (min-width: 52rem) {
  .hero {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 4rem;
  }
  .hero--full {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero--full .hero__statement { max-width: 24ch; }

.portrait {
  width: 100%;
  max-width: 15rem;
  aspect-ratio: 1 / 1;
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  overflow: hidden;
  background: #FFFFFF;
  display: block;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__statement {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.875rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 18ch;
}

.hero__subtitle {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.125rem;
  color: var(--soft);
  line-height: 1.6;
  margin: 1.25rem 0 0;
  max-width: 30ch;
}

/* ---------- labelled sections ---------- */

.block {
  display: grid;
  gap: 1rem;
  margin-bottom: 5.5rem;
}

@media (min-width: 52rem) {
  .block {
    grid-template-columns: 15rem 8rem minmax(0, 1fr);
    gap: 0 4rem;
    align-items: start;
  }
  .block--stacked {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .block--stacked .block__rule { display: none; }
}

.block__rule {
  display: none;
  height: 1px;
  background: var(--faint);
  margin-top: 0.9rem;
}

@media (min-width: 52rem) {
  .block__rule { display: block; }
}

.block__label {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 1.0625rem;
  margin: 0;
}

.block__body { margin: 0; }
.block__body > *:first-child { margin-top: 0; }
.block__body > *:last-child { margin-bottom: 0; }
.block__body p { max-width: var(--measure); margin: 0 0 1.25rem; }

/* ---------- entries ---------- */

.entries { list-style: none; margin: 0; padding: 0; }

.entry {
  padding: 1.75rem 0;
  border-top: 1px solid var(--faint);
  max-width: var(--measure);
}

.entry:last-child { border-bottom: 1px solid var(--faint); }

.entry__title {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 0.25rem;
}

.entry__title a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid var(--faint);
}

.entry__title a:hover { border-bottom-color: var(--paper); }

.entry__meta {
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--soft);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.entry__body { margin: 0; color: var(--soft); }
.entry__body strong { color: var(--paper); font-weight: 500; }

.entry__notes { margin: 0.75rem 0 0; padding-left: 1.5rem; color: var(--soft); }
.entry__notes li { margin-top: 0.25rem; }

.entry--split { max-width: none; }

@media (min-width: 60rem) {
  .entry--split {
    display: grid;
    grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
  .entry--split .entry__body { margin-top: 0; }
}

.entry__left { min-width: 0; }
.entry__left .entry__figure { margin-top: 1rem; }

.entry__figure {
  margin: 1.5rem 0 0;
  max-width: var(--measure);
}

.entry__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
  background: var(--paper);
}

.entry__figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-style: italic;
  color: var(--soft);
  line-height: 1.5;
}

/* ---------- facts ---------- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.facts li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--faint);
  line-height: 1.5;
}

.facts li:last-child { border-bottom: 1px solid var(--faint); }
.facts__note { color: var(--soft); font-style: italic; font-size: 0.9375rem; }

/* ---------- contact list ---------- */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--measure);
}

.contact-list li {
  padding: 0.875rem 0;
  border-top: 1px solid var(--faint);
}

.contact-list li:last-child { border-bottom: 1px solid var(--faint); }

.contact-list a,
.contact-list li > span {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--paper);
  text-decoration: none;
}

.contact-list a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--faint); }

.contact-list__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: var(--soft);
}

/* ---------- links ---------- */

.block__body a { color: var(--paper); text-decoration-color: var(--faint); }
.block__body a:hover { text-decoration-color: var(--paper); }

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

/* ---------- quote band ---------- */

.quote-band {
  background: var(--paper);
  color: var(--field);
  padding: 3.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 48rem) {
  .quote-band { padding: 4.5rem 3rem; }
}

.page--footer { padding-top: 3rem; padding-bottom: 3rem; }

.quote-band__inner {
  max-width: 44rem;
  margin: 0 auto;
}

.quote-band__text {
  font-family: "Archivo", system-ui, sans-serif;
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1.25rem;
}

.quote-band__cite {
  font-style: italic;
  font-size: 1rem;
  color: var(--field);
  opacity: 0.65;
  margin: 0 0 2.5rem;
}

.quote-band__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.quote-band__btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--field);
  background: none;
  color: var(--field);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.quote-band__btn:hover { background: var(--field); color: var(--paper); }

.quote-band__count {
  font-size: 0.875rem;
  opacity: 0.6;
}

/* ---------- footer ---------- */

.colophon {
  padding-top: 1.5rem;
  border-top: 1px solid var(--faint);
  font-size: 0.9375rem;
  color: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.colophon p { margin: 0; }

/* ---------- lightbox ---------- */

.lightbox-trigger {
  all: unset;
  display: block;
  width: 100%;
  cursor: zoom-in;
  border-radius: 4px;
  transition: opacity 120ms ease;
}
.lightbox-trigger:hover { opacity: 0.92; }
.lightbox-trigger:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
}
.lightbox-trigger img { display: block; width: 100%; border-radius: 4px; }

#lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  inset: 0;
  overflow: hidden;
}
#lightbox::backdrop {
  background: rgba(11, 30, 52, 0.94);
  backdrop-filter: blur(2px);
}
#lightbox[open] {
  display: grid;
  place-items: center;
}
#lightbox-img {
  display: block;
  max-width: 94vw;
  max-height: 94vh;
  cursor: zoom-out;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  border-radius: 4px;
}
.lightbox-hint {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-family: "Archivo", sans-serif;
  letter-spacing: 0.04em;
  pointer-events: none;
  margin: 0;
}

/* ---------- confidential-data placeholder (client dashboards) ---------- */

.entry__slot {
  margin: 1rem 0 0;
  padding: 2.5rem 1.5rem;
  min-height: 220px;
  max-width: var(--measure);
  border-radius: 3px;
  background: #2A2A2A;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.875rem;
}
.entry__slot svg {
  width: 1.75rem;
  height: 1.75rem;
  opacity: 0.75;
}
.entry__slot p {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.03em;
}

/* ---------- hero + strip figure (three-page dashboard preview) ---------- */

.hero-strip .hero-strip__hero { margin: 0 0 0.5rem; }
.hero-strip .hero-strip__hero .lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.hero-strip .hero-strip__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.hero-strip .hero-strip__row .lightbox-trigger img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
