/* johnnylemarquis.com — shared by index.html and 404.html */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: #ebe7df;
  color: #2a2824;
  font-family: ui-monospace, "Courier New", "Courier", monospace;
  font-size: 11px;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.015) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.01) 0%, transparent 70%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 2px, rgba(0,0,0,0.008) 2px, rgba(0,0,0,0.008) 3px),
    repeating-linear-gradient(90deg, transparent 0, transparent 2px, rgba(0,0,0,0.008) 2px, rgba(0,0,0,0.008) 3px);
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 1;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.06) 100%);
  pointer-events: none;
  z-index: 2;
}
.page {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.5rem, 5vw, 3rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.head {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: #6b6760;
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(2rem, 6vh, 4rem);
}
.composition {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: start;
}
.text-column {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4a4842;
  text-align: justify;
  text-justify: inter-character;
  word-spacing: 0.05em;
  hyphens: auto;
  font-size: 10.5px;
  line-height: 1.85;
}
.text-column p {
  margin-bottom: 1.4rem;
}
.text-column p:last-child {
  margin-bottom: 0;
}
.text-column .name {
  color: #2a2824;
  letter-spacing: 0.08em;
}
.text-column .terminal::after {
  content: " ▪";
  color: #6b6760;
}
.text-column a.mail {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.text-column a.mail:hover { border-bottom-color: #6b6760; }
.text-column a.back { border-bottom-color: #6b6760; }
.photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #d8d4cc;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    2px 3px 0 rgba(0,0,0,0.03);
}
.photo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.foot {
  margin-top: auto;
  padding-top: clamp(3rem, 8vh, 5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: #6b6760;
  align-items: baseline;
}
.foot .center {
  color: #2a2824;
  letter-spacing: 0.5em;
}
.foot .right { text-align: right; }
.foot a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.foot a:hover { border-bottom-color: #6b6760; }
@media (max-width: 600px) {
  .composition {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .photo {
    aspect-ratio: 4 / 5;
    max-width: 75%;
    margin-left: auto;
  }
  .foot {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.6rem;
  }
  .foot .right { text-align: center; }
}
::selection { background: rgba(42, 40, 36, 0.15); color: #2a2824; }
@media print {
  body::before, body::after { display: none; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .text-column a.mail, .foot a { transition: none; }
}
