/* ------------------------------------------------------------------
   Kevin Kay — Fine Art Photography
   Shared stylesheet for index.html and about.html
   ------------------------------------------------------------------ */

:root {
  --bg:        #000000;
  --text:      #e6e6e6;
  --text-dim:  #9a9a9a;
  --text-mute: #7d7d7d;
  --rule:      #3a3a3a;
  --font:      "Helvetica Neue", Helvetica, Arial, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

::selection { background: #ffffff; color: #000000; }

/* Visually hidden, still read by screen readers and crawlers */
.vh {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus, kept subtle but visible */
a:focus-visible {
  outline: 1px solid #ffffff;
  outline-offset: 3px;
}

/* --- Left-hand navigation ----------------------------------------- */

.nav {
  position: fixed;
  top: 46px;
  left: 52px;
  z-index: 10;
}

.nav__logo {
  display: block;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: 0.035em;
  color: #f2f2f2;
  transition: opacity 0.25s ease;
}

.nav__logo:hover { opacity: 0.65; }

.nav__links {
  margin-top: 86px;
}

.nav__link {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: #ffffff; }

/* --- Page shell ---------------------------------------------------- */

.page {
  min-height: 100vh;
  padding: 46px 52px 64px;
  display: flex;
  flex-direction: column;
  animation: fade 0.9s ease both;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}

.footer {
  margin-top: auto;
  padding-top: 56px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-mute);
}

/* ==================================================================
   LANDING PAGE
   ================================================================== */

/* The 400px subtraction reserves clear space for the fixed left nav so the
   centred content can never slide underneath it on narrow desktop widths. */
.landing__inner {
  width: 100%;
  max-width: min(960px, calc(100vw - 400px));
  margin: 0 auto;
}

.landing__figure {
  position: relative;
  margin: 0;
}

.landing__figure img { width: 100%; }

/* Caption set over the lower part of the gallery image */
.landing__caption {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  width: min(60%, 580px);
  margin: 0;
  text-align: left;
  font-size: clamp(11px, 0.95vw, 14px);
  font-style: italic;
  line-height: 1.95;
}

.landing__caption span {
  background: #ffffff;
  color: #0a0a0a;
  padding: 0.18em 0.3em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.landing__title {
  margin: 42px 0 0;
  text-align: center;
  font-size: clamp(19px, 2.4vw, 31px);
  font-weight: 300;
  letter-spacing: 0.012em;
  color: #e9e9e9;
}

.landing .footer {
  width: 100%;
  max-width: min(960px, calc(100vw - 400px));
  margin-left: auto;
  margin-right: auto;
}

/* ==================================================================
   ABOUT PAGE
   ================================================================== */

.about__inner {
  width: 100%;
  max-width: min(680px, calc(100vw - 400px));
  margin: 0 auto;
}

.about__portrait {
  width: 316px;
  margin: 0 0 34px;
}

.about__portrait img { width: 100%; }

.about__eyebrow {
  margin: 0 0 26px;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about__intro {
  margin: 0 0 62px;
  font-size: 15px;
  line-height: 1.72;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-align: justify;
  color: #dcdcdc;
}

.about__bio {
  columns: 2;
  column-gap: 34px;
  font-size: 12.5px;
  line-height: 1.62;
  text-align: justify;
  hyphens: auto;
  color: #b4b4b4;
}

.about__bio p { margin: 0; }

/* Inline link inside the biography */
.about__bio a {
  color: #dcdcdc;
  border-bottom: 1px solid #4c4c4c;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.about__bio a:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

/* Force the second column to begin on a clean sentence */
.about__bio-break { break-before: column; -webkit-column-break-before: column; }

.about__rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 60px 0 46px;
}

.about__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 46px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: #c4c4c4;
}

.about__contact a {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  transition: color 0.25s ease;
}

.about__contact a:hover { color: #ffffff; }

.about__contact svg {
  width: 15px;
  height: 15px;
  flex: none;
  stroke: var(--text-dim);
  fill: none;
  stroke-width: 1.4;
}

.about .footer {
  width: 100%;
  max-width: min(680px, calc(100vw - 400px));
  margin-left: auto;
  margin-right: auto;
}

/* ==================================================================
   RESPONSIVE
   ================================================================== */

@media (max-width: 1080px) {
  .nav  { top: 34px; left: 34px; }
  .page { padding: 34px 34px 48px; }

  /* Columns get too narrow for justified text below this width */
  .about__bio       { columns: 1; }
  .about__bio p     { margin-bottom: 1em; }
  .about__bio-break { break-before: auto; -webkit-column-break-before: auto; }
}

@media (max-width: 820px) {
  .nav {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 30px;
    padding: 28px 24px 0;
    margin-bottom: 40px;
  }
  .nav__logo    { font-size: 21px; line-height: 1.2; }
  .nav__links   { margin-top: 0; }

  .page { min-height: 0; padding: 0 24px 40px; }

  .landing__caption {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 18px;
    font-size: 12.5px;
    line-height: 1.75;
  }
  .landing__caption span {
    background: none;
    color: var(--text-dim);
    padding: 0;
  }
  .landing__title { margin-top: 26px; font-size: clamp(13px, 4.2vw, 19px); }

  .landing__inner,
  .about__inner,
  .landing .footer,
  .about .footer { max-width: 100%; }

  .about__portrait { width: 100%; max-width: 300px; }
  .about__intro    { font-size: 13.5px; margin-bottom: 46px; }
  .about__bio      { columns: 1; font-size: 13.5px; line-height: 1.7; }
  .about__bio p    { margin-bottom: 1em; }
  .about__bio-break { break-before: auto; -webkit-column-break-before: auto; }
  .about__rule     { margin: 44px 0 34px; }
  .footer          { padding-top: 44px; }
}

/* ==================================================================
   PRINT
   ================================================================== */

@media print {
  body { background: #ffffff; color: #000000; }
  .nav { position: static; }
  .page { min-height: 0; animation: none; }
  .landing__caption span { background: none; color: #000000; }
}
