/* williamtobilly.com — shared styles, pass 2
   Direction: editorial type-first (Isa de Burgh scale), one accent, no decoration.
   Palette:
   --ink    #101820  near-black ink
   --paper  #F4F3EE  warm paper
   --slate  #6B7280  secondary
   --line   #DAD9D2  hairlines
   --bib    #E8501E  race-bib orange, one accent only
*/

:root {
  --ink: #101820;
  --paper: #F4F3EE;
  --slate: #6B7280;
  --line: #DAD9D2;
  --bib: #E8501E;
  --display: "Archivo Black", "Arial Black", sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); transition: color 0.25s ease; }
a:focus-visible { outline: 3px solid var(--bib); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav: minimal top bar, stacked links right ---------- */

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.nav-right { display: flex; flex-direction: row; align-items: center; gap: 30px; }

.nav .mark {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
}
.nav .mark span { color: var(--bib); }
.nav .mark:hover span { color: var(--ink); }

.nav ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  list-style: none;
  order: 1;
}

.nav ul a {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--slate);
}
.nav ul a:hover { color: var(--ink); }
.nav ul a[aria-current="page"] { color: var(--ink); border-bottom: 3px solid var(--bib); }

.getintouch {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 0;
  order: 2;
  transition: color 0.25s ease, transform 0.25s ease;
}
.getintouch:hover { color: var(--bib); }
@media (prefers-reduced-motion: no-preference) {
  .getintouch:hover { transform: translateX(3px); }
}

/* ---------- Poster hero: full-viewport ink block ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4vh;
}

.poster {
  background: var(--paper);
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* Nav over the poster: standard site nav, current page marked in orange */
.poster .nav { position: relative; z-index: 4; }
.poster .nav ul a[aria-current="page"] { color: var(--bib); }

/* Stacked type: WILLIAM ghost, dotted rule, BILLY loudest */
.poster-stack { position: relative; z-index: 1; text-align: center; padding-top: 1.5vh; }

.plabel {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bib);
  display: block;
  margin-bottom: 8px;
}

.pname {
  font-family: var(--display);
  line-height: 0.8;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  display: block;
}

.pname.william {
  font-size: clamp(56px, 16.5vw, 290px);
  color: transparent;
  -webkit-text-stroke: 2px var(--bib);
  opacity: 0.55;
}

.pname.billy {
  font-size: clamp(84px, 25vw, 440px);
  color: var(--bib);
}

.pdivider {
  height: 4px;
  margin: 3.2vh 0 2.4vh;
  background-image: radial-gradient(circle, var(--bib) 1.8px, transparent 2.2px);
  background-size: 16px 4px;
  background-repeat: repeat-x;
  background-position: center;
}

/* Bottom-left corner: tagline, eyebrow, pill */
.poster-foot {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  bottom: 30px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 360px;
}
.ptagline {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(17px, 1.7vw, 24px);
  line-height: 1.15;
  color: var(--ink);
  max-width: 12em; /* breaks after "on paper." */
}
.peyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.pill {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--bib);
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.pill:hover { background: var(--ink); color: var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  .prung, .pdivider, .poster-foot { opacity: 0; transform: translateY(14px); animation: rise 0.55s ease forwards; }
  .poster-stack .prung:first-child { animation-delay: 0.05s; }
  .pdivider { animation-delay: 0.18s; }
  .poster-stack .prung:last-of-type { animation-delay: 0.3s; }
  .poster-foot { animation-delay: 0.5s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Sections ---------- */

.section { padding: 56px 0; border-top: 1px solid var(--line); }

.section h2, .page-title {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1;
  margin-bottom: 26px;
}

.page-title { margin: 8vh 0 12px; }

.lede { max-width: 660px; font-size: 18px; }
.lede + .lede { margin-top: 18px; }
.muted { color: var(--slate); }

/* ---------- Credential strip ---------- */

.creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.creds li {
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 8px 15px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

/* ---------- CTA ---------- */

.cta { margin-top: 40px; }
.cta p { font-family: var(--display); text-transform: uppercase; font-size: 20px; margin-bottom: 18px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 2px solid var(--ink);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--bib); border-color: var(--bib); }
.btn.ghost:hover { border-color: var(--bib); color: var(--bib); }

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

.entry {
  border-top: 2px solid var(--ink);
  padding: 30px 0;
  margin-top: 40px;
  max-width: 760px;
}

.entry .meta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bib);
  margin-bottom: 12px;
}

.entry h3 {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  margin-bottom: 14px;
}

/* ---------- Now table ---------- */

.now-list { margin-top: 40px; max-width: 760px; border-top: 2px solid var(--ink); }

.now-list .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.now-list .key {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 3px;
}
.now-list .row span:last-child { font-size: 18px; }

/* ---------- Contact ---------- */

.contact-block { margin-top: 36px; }
.contact-block .email {
  font-family: var(--display);
  font-size: clamp(28px, 6vw, 72px);
  text-transform: lowercase;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 5px solid var(--bib);
  line-height: 1.3;
}
.contact-block .email:hover { color: var(--bib); }

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 56px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.contact-meta .item { display: flex; flex-direction: column; gap: 5px; }
.contact-meta .k {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.contact-meta .v {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.contact-meta .v a { text-decoration: none; }
.contact-meta .v a:hover { color: var(--bib); }

/* ---------- Footer: Mugen-style info bar ---------- */

footer {
  margin-top: 90px;
  border-top: 2px solid var(--ink);
  padding: 26px 0 46px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  justify-content: space-between;
}
footer a { color: var(--slate); text-decoration: none; }
footer a:hover { color: var(--bib); }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .nav { padding: 18px 0; }
  .nav-right { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .nav ul { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .nav ul a { font-size: 13px; }
  .getintouch { display: none; }
  .poster { padding: 0 16px; }
  .poster-foot { left: 16px; bottom: 22px; max-width: 250px; }
  .now-list .row { grid-template-columns: 1fr; gap: 4px; }
  footer { flex-direction: column; }
}

/* ---------- Photo block ---------- */

.photo-block { margin: 44px 0 8px; max-width: 640px; }
.photo-block img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(1) contrast(1.05);
  border: 2px solid var(--ink);
  transition: filter 0.4s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .photo-block:hover img { filter: grayscale(0.6) contrast(1.05); }
}
.photo-block figcaption {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 12px;
}
