/* ==========================================================================
   Darrell J. Salomon — Attorney at Law
   Clean, responsive, accessible one-page biography stylesheet
   ========================================================================== */

:root {
  --color-bg-top: #9b9b9b;
  --color-bg-bottom: #e9e7e8;
  --color-navy: #0b2c58;
  --color-teal: #00727c;
  --color-surface: #ffffff;
  --color-ink: #222222;
  --color-ink-strong: #111111;
  --color-ink-muted: #444444;
  --color-border-dark: #222222;
  --color-border-mid: #333333;
  --color-divider: #dddddd;
  --color-footer-bg: #000000;
  --color-footer-text: #d4d4d4;
  --color-footer-link: #ff6b6b;
  --color-focus: #0b57d0;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Helvetica, Arial, sans-serif;
  --container-max: 1100px;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-bg-bottom);
  background-image: linear-gradient(180deg, var(--color-bg-top) 0%, var(--color-bg-bottom) 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Accessibility Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  padding: 0.65rem 1.1rem;
  background: var(--color-navy);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #ffffff;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.skip-link:focus {
  top: 0.75rem;
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Main Page Container — aligns Header, Hero, and Biography Card identically */
.page-wrapper {
  width: 100%;
  max-width: calc(var(--container-max) + 2rem);
  margin: 0 auto;
  padding: 0 1rem 1.75rem;
  flex: 1 0 auto;
}

/* ==========================================================================
   Masthead / Header
   ========================================================================== */
.site-header {
  margin-bottom: 0;
}

.header-frame {
  background-color: var(--color-surface);
  border-left: 2px solid var(--color-border-dark);
  border-right: 2px solid var(--color-border-dark);
  border-bottom: 3px solid var(--color-border-dark);
  box-shadow:
    -1px 1px 5px rgba(34, 34, 34, 0.55),
    1px 1px 5px rgba(34, 34, 34, 0.55);
}

.header-top-bar {
  width: 100%;
  height: 7px;
  background-color: var(--color-navy);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem 1.75rem 1.15rem;
}

.header-brand {
  text-align: center;
}

.site-title {
  margin: 0;
  /* font-family: var(--font-sans); */
  font-family: "Times New Roman", Times, "Liberation Serif", Cambria, "Hoefler Text", "serif";
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--color-ink-strong);
}

.name-initial {
  font-size: 1.18em;
}

.site-subtitle {
  margin: 0.3rem 0 0;
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-ink);
}

.header-section-label {
  flex-shrink: 0;
  min-width: 180px;
  text-align: right;
}

.page-label {
  margin: 0;
  padding-bottom: 0.25rem;
  font-size: clamp(1.15rem, 1rem + 0.55vw, 1.45rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--color-ink-strong);
  border-bottom: 1px solid var(--color-divider);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  margin-bottom: 1.35rem;
}

.hero-frame {
  margin: 0;
  background-color: var(--color-teal);
  border-left: 2px solid var(--color-border-dark);
  border-right: 2px solid var(--color-border-dark);
  box-shadow: 0 3px 6px rgba(34, 34, 34, 0.55);
}

.hero-frame img {
  width: 100%;
  border-bottom: 3px solid var(--color-border-dark);
}

.hero-caption {
  padding: 0.45rem 1.25rem;
  /* font-size: 0.875rem; */
  font-size: 0.5rem;
  line-height: 1.25;
  color: #edf7f7;
}

.hero-caption a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-caption a:hover,
.hero-caption a:focus-visible {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.hero-caption a:focus-visible {
  outline-color: #ffffff;
}

/* ==========================================================================
   Main Biography Card
   ========================================================================== */
.main-content {
  width: 100%;
}

.bio-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border-mid);
  box-shadow: 0 2px 6px rgba(34, 34, 34, 0.22);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.15rem, 4vw, 3rem) clamp(2rem, 3.5vw, 3rem);
}

.bio-main-heading {
  margin: 0 0 1.65rem;
  font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  color: var(--color-ink-strong);
  font-family: "Times New Roman", Times, "Liberation Serif", Cambria, "Hoefler Text", "serif";
}

.bio-body {
  font-size: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  line-height: 1.68;
  color: var(--color-ink);
  display: flow-root;
  font-family: "Times New Roman", Times, "Liberation Serif", Cambria, "Hoefler Text", "serif";
}

.bio-body p {
  margin: 0 0 1.25em;
  font-size: 1.2em;
}

.bio-body p:last-child {
  margin-bottom: 0;
}

/* Biography Photographs */
.bio-photo {
  margin: 0.35rem 0 1rem;
  width: 300px;
  max-width: 34%;
}

.bio-photo--left {
  float: left;
  margin-right: 1.5rem;
}

.bio-photo--right {
  float: right;
  margin-left: 1.5rem;
}

.bio-photo--tall {
  width: 245px;
  max-width: 27%;
}

.bio-photo--wide {
  width: 385px;
  max-width: 40%;
}

.bio-photo img {
  width: 100%;
  border: 1px solid var(--color-border-mid);
}

/* ==========================================================================
   Press Quotes & Publications Subsections
   ========================================================================== */
.bio-subsection {
  clear: both;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-divider);
  font-size: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  line-height: 1.62;
}

.bio-sub-heading {
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 1.12rem + 0.45vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: var(--color-ink-strong);
  font-family: "Times New Roman", Times, "Liberation Serif", Cambria, "Hoefler Text", "serif";
}

.press-quotes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  font-family: "Times New Roman", Times, "Liberation Serif", Cambria, "Hoefler Text", "serif";
}

.press-quote {
  margin: 0;
}

.press-quote blockquote {
  margin: 0;
}

.press-quote blockquote p {
  margin: 0;
}

.press-quote figcaption {
  margin-top: 0.15rem;
  color: var(--color-ink-muted);
}

.publications-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
  font-family: "Times New Roman", Times, "Liberation Serif", Cambria, "Hoefler Text", "serif";
}

.publications-list li {
  margin: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  width: 100%;
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 1.35rem 1rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.footer-address {
  margin: 0 0 0.4rem;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #e6e6e6;
}

.footer-copyright {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--color-footer-text);
}

.footer-copyright a {
  color: var(--color-footer-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-copyright a:hover,
.footer-copyright a:focus-visible {
  color: #ffffff;
}

.footer-copyright a:focus-visible {
  outline-color: #ffffff;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Tablet / Medium Screens */
@media (max-width: 820px) {
  .header-inner {
    padding: 1.1rem 1.25rem 1rem;
  }

  .header-section-label {
    min-width: 130px;
  }

  .bio-photo {
    width: 240px;
    max-width: 40%;
  }

  .bio-photo--tall {
    width: 205px;
    max-width: 34%;
  }

  .bio-photo--wide {
    width: 265px;
    max-width: 42%;
  }

  .bio-photo--left {
    margin-right: 1.15rem;
  }

  .bio-photo--right {
    margin-left: 1.15rem;
  }
}

/* Mobile Screens */
@media (max-width: 639px) {
  .page-wrapper {
    padding: 0 0.65rem 1.25rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1rem 1rem 0.9rem;
  }

  .header-section-label {
    width: 100%;
    max-width: 220px;
    text-align: center;
  }

  .hero-section {
    margin-bottom: 1rem;
  }

  .hero-caption {
    padding: 0.5rem 0.85rem;
    font-size: 0.8125rem;
  }

  .bio-card {
    padding: 1.35rem 1.05rem 1.75rem;
  }

  .bio-main-heading {
    margin-bottom: 1.2rem;
  }

  /* Unfloat biography images cleanly on small mobile viewports */
  .bio-photo,
  .bio-photo--left,
  .bio-photo--right {
    float: none;
    width: 100%;
    max-width: 360px;
    margin: 0.25rem auto 1.25rem;
  }

  .bio-photo--tall {
    max-width: 260px;
  }

  .bio-subsection {
    margin-top: 1.75rem;
    padding-top: 1.35rem;
  }

  .footer-address {
    font-size: 0.9375rem;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }

  .skip-link {
    display: none;
  }

  .page-wrapper {
    max-width: 100%;
    padding: 0;
  }

  .header-frame,
  .hero-frame,
  .bio-card {
    border: none;
    box-shadow: none;
  }

  .hero-caption {
    background: none;
    color: #333333;
    padding-left: 0;
  }

  .hero-caption a {
    color: #000000;
  }

  .site-footer {
    background: #ffffff;
    color: #000000;
    border-top: 1px solid #cccccc;
  }

  .footer-address,
  .footer-copyright,
  .footer-copyright a {
    color: #000000;
  }
}
