/* kelly-an-site — operator's dossier, polished
   Serif display type carries the page. Cream paper texture, pine ink,
   jade/sage/blush artwork, fine antique-gold detail rules. */

:root {
  --cream: #f6f0e7;
  --ink: #203b32;
  --muted: #5d6f63;
  --rule: #e2d9c9;
  --accent: #203b32;
  --jade: #748f80;
  --sage: #acbda9;
  --blush: #d79ca7;
  --gold: #b79758;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream) url("assets/paper.webp") center / cover fixed no-repeat;
  color: var(--ink);
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */

header.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--rule);
}
body.home header.site-header { border-bottom-color: transparent; }

.header-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

nav[aria-label="Primary"] ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

nav[aria-label="Primary"] a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 0.15rem;
}
nav[aria-label="Primary"] a:hover,
nav[aria-label="Primary"] a:focus-visible {
  color: var(--accent);
}
nav[aria-label="Primary"] a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--gold);
}

/* ---------- layout ---------- */

main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}

.text-col { max-width: 42rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  /* art fills the whole viewport: edge to edge and full height,
     sliding up under the header so the top edge is the window's */
  margin: -7.8rem calc(50% - 50vw) 3rem;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
/* a wide feathered paper wash over the art keeps the pine text
   readable without any box edge */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
    rgba(246, 240, 231, 0.95) 0%,
    rgba(246, 240, 231, 0.85) 28%,
    rgba(246, 240, 231, 0.55) 48%,
    rgba(246, 240, 231, 0.25) 62%,
    rgba(246, 240, 231, 0) 78%);
  pointer-events: none;
}
.hero .text-col {
  position: relative;
  z-index: 2;
  padding: 10rem 1.5rem 4rem;
  margin: 0 auto;
  width: 100%;
  max-width: 68rem;
}
.hero .text-col p.lede { max-width: 30rem; }
.hero-art {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
}
.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 50%;
  mix-blend-mode: multiply; /* printed onto the paper, not pasted in a box */
}

/* ---------- inner pages ---------- */

/* the flower art carries through every subpage, edge to edge and
   full height like Home, printed into the paper via multiply */
body:not(.home)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: url("assets/hero.webp") right center / cover no-repeat;
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* each page gets its own flower piece in the same torn-paper theme */
body.pg-about::before { background-image: url("assets/page-about.webp"); }
body.pg-case-studies::before { background-image: url("assets/page-case-studies.webp"); }
body.pg-worktrial::before { background-image: url("assets/page-worktrial.webp"); }
body.pg-opencord::before { background-image: url("assets/page-opencord.webp"); }
body.pg-hermes::before { background-image: url("assets/page-hermes.webp"); }
body.pg-writing::before { background-image: url("assets/page-writing.webp"); }
body.pg-contact::before { background-image: url("assets/page-contact.webp"); }
/* a feathered paper wash over it keeps the pine text readable
   without any box edge */
body:not(.home)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(246, 240, 231, 0.97) 0%,
    rgba(246, 240, 231, 0.93) 38%,
    rgba(246, 240, 231, 0.7) 58%,
    rgba(246, 240, 231, 0.35) 74%,
    rgba(246, 240, 231, 0) 90%);
}
body:not(.home) main,
body:not(.home) footer.site-footer { position: relative; z-index: 2; }

.page-head {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.page-head .text-col { flex: 1 1 auto; }

/* ---------- type ---------- */

h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: normal;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}
h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  background: var(--gold);
  margin-top: 1.75rem;
}

h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: normal;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: normal;
  margin: 0 0 0.35rem;
}

p { margin: 0 0 1rem; max-width: 42rem; }

.lede {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 38rem;
}

section { margin-top: 4rem; padding-top: 0; }
section + section { border-top: 1px solid var(--rule); padding-top: 3rem; }

.placeholder {
  color: var(--muted);
  font-style: italic;
}

/* ---------- work list ---------- */

.work-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.work-list li { border-bottom: 1px solid var(--rule); }

.work-list a {
  display: block;
  padding: 1.6rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
}
.work-list a:hover h3,
.work-list a:focus-visible h3 { color: var(--jade); }
.work-list a p { margin: 0.35rem 0 0; max-width: none; text-align: left; }
.work-list .wl-head {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
}
.work-list .wl-body {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 42rem;
}
.work-list .wl-tags {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
}
.work-list .wl-link {
  color: var(--accent);
  font-size: 0.9rem;
}

/* contact rows share one type, alignment and height whether linked or not */
.contact-row {
  display: block;
  padding: 1.6rem 0.25rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.contact-row .wl-link { margin-left: 0.6rem; }
.contact-icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.7rem;
  vertical-align: -0.2rem;
  fill: var(--accent);
}

/* ---------- links & cta ---------- */

a.inline-link { color: var(--accent); }

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--accent);
}
.cta:hover, .cta:focus-visible {
  background: var(--cream);
  color: var(--accent);
}

.cta.secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--jade);
}
.cta + .cta { margin-left: 0.6rem; }

.cta.secondary:hover, .cta.secondary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- story pages ---------- */

.story-section {
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  max-width: 42rem;
}
.story-section:first-of-type { border-top: 0; }

/* ---------- footer ---------- */

footer.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- small screens ---------- */

@media (max-width: 40rem) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  nav[aria-label="Primary"] ul { gap: 1.25rem; }
  main { padding: 2.5rem 1.25rem 4rem; }
  .hero { margin-top: -5.9rem; min-height: 100vh; min-height: 100svh; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(246, 240, 231, 0.9) 0%,
      rgba(246, 240, 231, 0.78) 30%,
      rgba(246, 240, 231, 0.45) 55%,
      rgba(246, 240, 231, 0) 80%);
  }
  .hero .text-col { padding: 7.5rem 1.25rem 3rem; }
  /* pull the crop toward the blush/gold side of the artwork */
  .hero-art img { object-position: 78% 38%; }
  .page-head { gap: 1rem; }
  /* pull the crop toward the blush/gold side and ease the wash down the page */
  body:not(.home)::before { background-position: 78% 38%; }
  body:not(.home)::after {
    background: linear-gradient(180deg,
      rgba(246, 240, 231, 0.96) 0%,
      rgba(246, 240, 231, 0.93) 35%,
      rgba(246, 240, 231, 0.88) 60%,
      rgba(246, 240, 231, 0.8) 80%,
      rgba(246, 240, 231, 0.68) 95%);
  }

}
