/* Wesley Zaba — wesleyzaba.com
   Editorial, story-led bio page. No third-party requests. */

:root {
  --forest: #24362c;
  --forest-deep: #1a2720;
  --moss: #3d5346;
  --rust: #8a4b32;
  --cream: #f3efe6;
  --sand: #e7decc;
  --paper: #faf7f0;
  --ink: #241e18;
  --muted: #5a534a;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 0.15em; }
a:hover { color: var(--forest); }
a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--paper);
  color: var(--forest);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }

.site-header { padding: 1.15rem 1.5rem 0; }
.site-header .wrap {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  text-decoration: none;
}
.wordmark:hover { color: var(--rust); }
.nav {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a:hover { color: var(--forest); }

.masthead { padding: 2.25rem 1.5rem 0.5rem; text-align: left; }
.masthead .wrap { max-width: 68rem; margin: 0 auto; }
.masthead h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(3.4rem, 11vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem;
  color: var(--forest-deep);
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  color: var(--rust);
  margin: 0;
}

.photo-band { padding: 2.25rem 1.5rem 1rem; }
.photo-frame {
  max-width: 68rem;
  margin: 0 auto;
  position: relative;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem -0.9rem -0.9rem 1.25rem;
  background: var(--forest);
  z-index: 0;
}
.photo-frame picture,
.photo-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #fff;
}
.photo-frame img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center 20%;
}

.story { padding: 3rem 1.5rem 1rem; }
.story .wrap { max-width: 42rem; margin: 0 auto; }
.story-block { margin: 0 0 2.85rem; }
.kicker {
  display: block;
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
  margin: 0 0 0.55rem;
}
.story h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--forest-deep);
  letter-spacing: -0.015em;
}
.story p { margin: 0 0 1.15rem; color: var(--ink); font-size: 1.125rem; }
.story p:last-child { margin-bottom: 0; }

.split {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem 3.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.split article {
  background: var(--paper);
  border: 1px solid var(--sand);
  padding: 1.75rem 1.7rem 1.9rem;
}
.split .kicker { margin-bottom: 0.4rem; }
.split h2 { font-size: clamp(1.55rem, 2.4vw, 1.9rem); margin-bottom: 0.75rem; }
.split p { font-size: 1.05rem; }

.contact {
  background: var(--forest);
  color: var(--cream);
  padding: 3.25rem 1.5rem;
}
.contact .wrap {
  max-width: 68rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.25rem 4rem;
}
.contact h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.7rem;
  color: #f3efe6;
  letter-spacing: -0.02em;
}
.contact .intro { margin: 0; color: rgba(243, 239, 230, 0.82); max-width: 28rem; }
.contact a { color: #f0d2c4; }
.contact a:hover { color: #fff; }
.contact-card { background: var(--forest-deep); padding: 1.7rem 1.8rem; }
.firm-name { font-weight: 600; color: #fff; margin: 0 0 0.4rem; font-size: 1.05rem; }
.addr { color: rgba(243, 239, 230, 0.86); font-style: normal; margin: 0; }
.contact dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7b09e;
  margin: 1rem 0 0.15rem;
  font-weight: 600;
}
.contact dd { margin: 0; }
.contact dl { margin: 0.4rem 0 0; }

.site-footer {
  background: var(--forest-deep);
  color: rgba(243, 239, 230, 0.62);
  padding: 0 1.5rem 2.25rem;
  font-size: 0.8rem;
  line-height: 1.55;
}
.site-footer .wrap {
  max-width: 68rem;
  margin: 0 auto;
  border-top: 1px solid rgba(243, 239, 230, 0.14);
  padding-top: 1.25rem;
}
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  .split,
  .contact .wrap { grid-template-columns: 1fr; }
  .photo-frame::before { inset: 0.85rem -0.55rem -0.55rem 0.85rem; }
  .masthead h1 { font-size: clamp(3rem, 16vw, 5rem); }
}
@media (max-width: 700px) {
  .photo-frame { max-width: 26rem; }
  .photo-frame img { aspect-ratio: 1 / 1; object-position: center 12%; }
}
@media (max-width: 520px) {
  .nav { gap: 0.8rem; }
  .site-header, .masthead, .photo-band, .story, .split, .contact { padding-left: 1.2rem; padding-right: 1.2rem; }
}
