/* My Agentic Life — one page. Soft Paper, Warm Ink, Burnt Orange, Friendly Green. */

:root {
  --paper: #F7F6F2;
  --ink: #2A2622;
  --coral: #E0603C;
  --green: #5BA572;
  --yellow: #FBE573;
  --rule: #BEBCB8;
  --font-head: "Space Grotesk", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-note: "Caveat", cursive;
  --wrap: 68rem;
  --space: 1.25rem;
  --radius: 1.25rem;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--coral);
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.95rem 0 0.8rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo:hover,
.logo:focus-visible {
  color: inherit;
}

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.18em;
  line-height: 1;
}

.wordmark-my {
  font-family: var(--font-note);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--coral);
  transform: rotate(-8deg);
  margin-bottom: 0.72em;
  margin-right: -0.08em;
}

.wordmark-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem; /* 28px */
  letter-spacing: -0.04em;
}

.logo-foot .wordmark-name {
  font-size: 1.75rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.nav a {
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none !important;
  border-radius: 999px;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--coral);
}

section[id] {
  scroll-margin-top: 5rem;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.35rem, 10vw, 5.25rem);
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.75rem);
}

h3 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4em;
}

.note {
  font-family: var(--font-note);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.note-coral { color: var(--coral); }
.note-green { color: var(--green); }

.scribble {
  position: relative;
  display: inline-block;
  padding-bottom: 0.14em;
}

.scribble-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.32em;
  bottom: -0.06em;
  overflow: visible;
  pointer-events: none;
}

.scribble-coral { /* colour lives on the svg */ }
.scribble-coral .scribble-line { color: var(--coral); }
.scribble-green .scribble-line { color: var(--green); }

.hero {
  padding: 2.5rem 0 3.25rem;
}

.hero-sub {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: -0.03em;
  margin: 1rem 0 1.25rem;
}

.hero-lead {
  max-width: 38rem;
  margin: 0 0 2.25rem;
  font-size: 1.125rem;
}

.doors {
  display: grid;
  gap: 1rem;
}

.door {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.door:hover,
.door:focus-visible {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 8%, transparent);
}

.door h2 {
  font-size: clamp(1.6rem, 4vw, 2.15rem);
  margin: 0 0 0.7rem;
}

.door p:last-child {
  margin: 0;
  max-width: 22rem;
}

.both-line {
  margin: 1.35rem 0 0;
  text-align: left;
}

.both-line a {
  text-decoration: none;
}

.both-line .note {
  font-size: 1.7rem;
}

.both-line a:hover .note {
  color: var(--coral);
}

.section {
  padding: 3.5rem 0;
}

.band {
  background: #fff;
  padding: 3.5rem 0;
  border-block: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.band + .band {
  border-top: 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head .prose,
.section-head p.prose {
  margin-top: 0.75rem;
}

.split {
  display: grid;
  gap: 1.25rem 3rem;
}

.split > :first-child {
  max-width: 24rem;
}

.prose p {
  margin: 0 0 1rem;
  max-width: 40rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid var(--ink);
  line-height: 1.2;
}

.btn:hover,
.btn:focus-visible {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.cards li {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.4rem;
}

.cards p {
  margin: 0;
}

.about {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

.portrait {
  width: min(100%, 20rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  justify-self: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: none;
}

.steps li {
  padding: 0;
}

.step-num {
  font-family: var(--font-note);
  font-size: 1.5rem;
  color: var(--coral);
  margin: 0 0 0.15rem;
}

.steps h3 {
  margin-bottom: 0.35rem;
}

.steps p:last-child {
  margin: 0;
  max-width: 28rem;
}

.band-cta {
  background: var(--ink);
  color: var(--paper);
  border-block: 0;
}

.band-cta .note,
.band-cta h2,
.band-cta a:not(.btn) {
  color: var(--paper);
}

.band-cta a:not(.btn):hover {
  color: var(--yellow);
}

.band-cta .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.band-cta .btn:hover,
.band-cta .btn:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.band-cta .btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: color-mix(in srgb, var(--paper) 55%, transparent);
}

.band-cta .btn-ghost:hover,
.band-cta .btn-ghost:focus-visible {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.cta .prose {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.fine {
  margin: 1.1rem 0 0;
  font-size: 0.9375rem;
  opacity: 0.85;
}

.site-footer {
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  display: grid;
  gap: 0.4rem;
}

.site-footer p {
  margin: 0;
  font-size: 0.9375rem;
}

@media (min-width: 700px) {
  .wrap { width: min(100% - 3.5rem, var(--wrap)); }
  .hero { padding: 3.5rem 0 4.5rem; }
  .section, .band { padding: 4.5rem 0; }
  .doors {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
  .about {
    grid-template-columns: minmax(12rem, 18rem) 1fr;
    gap: 3rem;
  }
  .portrait {
    width: 100%;
  }
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(16rem, 0.85fr) 1.15fr;
    align-items: start;
  }
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-lead { font-size: 1.2rem; }
  .wordmark-name { font-size: 2rem; } /* 32px */
  .wordmark-my { font-size: 1.65rem; }
}
