/* ─────────────────────────────────────────────────────────
   Cyan Ta'eed — personal site (v2)
   Brief: warm, designerly, idiosyncratic. NOT a literary
   author template. Personality > credentials.
   Palette: warm cream + saffron, one rose accent, ink for
   type. Photo is a tilted polaroid, not a cinematic veil.
   ───────────────────────────────────────────────────────── */

:root {
  /* Paper */
  --paper:        #fbf6ea;
  --paper-warm:   #f6ecd1;
  --paper-deep:   #efe3c4;
  --rule:         #e5dbc4;

  /* Ink */
  --ink:          #1c1812;
  --ink-soft:     #3a3128;
  --ink-mute:     #80715a;
  --ink-fade:     #b1a48a;

  /* Colour */
  --saffron:      #d99425;
  --saffron-deep: #a96d11;
  --saffron-soft: #f0c668;
  --saffron-pale: #faecbf;
  --rose:         #d04674;
  --rose-soft:    #f4a3be;
  --rose-pale:    #fadce6;
  --mint:         #b8d8c5;
  --mint-deep:    #3d7a5a;
  --mint-pale:    #e3efe7;

  /* Type */
  --serif:  "Fraunces", Georgia, "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Rhythm */
  --gutter:   clamp(1.25rem, 5vw, 4rem);
  --maxw:     1200px;
  --proseW:   58ch;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

/* ── Reset & base ───────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.10  0 0 0 0 0.07  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 1px;
}

::selection { background: var(--saffron-soft); color: var(--ink); }

.skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip:focus {
  position: fixed; left: 1rem; top: 1rem;
  width: auto; height: auto;
  background: var(--ink); color: var(--paper);
  padding: .65rem 1rem; border-radius: 4px; z-index: 100;
}

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

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1rem var(--gutter);
  transition: background-color .35s var(--ease-out),
              backdrop-filter .35s var(--ease-out),
              border-color .35s var(--ease-out),
              padding .25s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(251, 246, 234, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--rule);
  padding-block: .7rem;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  transition: color .25s var(--ease-out);
}
.mark__sketch {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.05);
  transition: transform .35s var(--ease-out);
}
.mark__name {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.nav.is-scrolled .mark__name {
  opacity: 1;
  transform: none;
}
.mark:hover .mark__sketch { transform: rotate(-4deg) scale(1.05); }

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .04em;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: .25rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--saffron);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  color: var(--ink);
}
.menu-toggle span {
  position: absolute;
  left: 6px; right: 6px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease-out), top .3s var(--ease-out), opacity .25s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 17px; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1rem var(--gutter) 1.5rem;
  animation: drawerIn .3s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .15rem;
}
.mobile-menu a {
  display: block;
  padding: .85rem 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}
.mobile-menu li:last-child a { border-bottom: 0; }

@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .nav__links { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 480px) {
  .mark__name { display: none; }
  .mark__sketch { width: 28px; height: 28px; }
}

/* ── Hero — the "really compelling" greeting moment.
   Editorial-magazine layout with designer-portfolio shape decor
   pulled from the inspo. Type-led; shapes punctuate, not dominate. */

.hero {
  position: relative;
  z-index: 2;
  padding: clamp(7rem, 13vw, 11rem) var(--gutter) clamp(4.5rem, 8vw, 7rem);
  overflow: hidden;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Greeting line — italic warmth, leading the page */
.hero__hi {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1;
  color: var(--rose);
  margin: 0 0 .4rem;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-variation-settings: "opsz" 144, "SOFT" 90;
}
.hero__hi-star {
  width: .55em;
  height: .55em;
  fill: var(--saffron);
  flex: none;
  animation: heroStarSpin 7s linear infinite;
}
@keyframes heroStarSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Name — the wordmark moment */
.hero__name {
  font-family: var(--serif);
  font-weight: 350;
  letter-spacing: -0.022em;
  line-height: .92;
  margin: 0 0 1.5rem;
  font-size: clamp(3.4rem, 12.5vw, 9.5rem);
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "opsz" 144;
  max-width: 14ch;
}
.hero__name-im {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 350;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0;
  color: var(--ink-mute);
  margin-bottom: .35em;
  font-variation-settings: "opsz" 96, "SOFT" 80;
}
.hero__name-line { display: inline; }
.hero__name-line--italic {
  font-style: italic;
  font-variation-settings: "SOFT" 80, "opsz" 144;
  color: var(--ink);
  margin-left: .12em;
}

/* Role — small caps under the name */
.hero__role {
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-mute);
  margin: 0 0 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.hero__role-bullet {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--saffron);
  display: inline-block;
  flex: none;
}

.hero__blurb {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 2.4rem;
  max-width: 38ch;
  font-variation-settings: "opsz" 96, "SOFT" 50;
}
.hero__blurb em {
  font-style: italic;
  color: var(--saffron-deep);
  font-variation-settings: "opsz" 96, "SOFT" 80;
}

.hero__cta {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--ink-mute);
}
.hero__or { font-style: italic; font-family: var(--serif); color: var(--ink-fade); }

/* Decorative shapes — pulled from the colourful designer-portfolio inspo */
.hero__deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  left: var(--gutter);
  right: var(--gutter);
}
.hero__shape {
  position: absolute;
  display: block;
}
.hero__shape--mint {
  width: clamp(120px, 16vw, 220px);
  aspect-ratio: 1;
  background: var(--mint);
  border-radius: 50%;
  top: 18%;
  right: 4%;
  opacity: .55;
}
.hero__shape--rose {
  width: clamp(60px, 7vw, 90px);
  aspect-ratio: 1;
  background: var(--rose-soft);
  border-radius: 6px;
  bottom: 14%;
  right: 18%;
  transform: rotate(14deg);
  opacity: .85;
}
.hero__shape--saffron {
  width: clamp(70px, 10vw, 130px);
  height: clamp(14px, 1.6vw, 22px);
  background: var(--saffron-soft);
  border-radius: 999px;
  top: 56%;
  right: 30%;
  transform: rotate(-22deg);
  opacity: .9;
}
.hero__star {
  position: absolute;
  animation: heroStarSpin 11s linear infinite;
}
.hero__star--a {
  width: 30px; height: 30px;
  fill: var(--saffron);
  top: 12%;
  right: 28%;
}
.hero__star--b {
  width: 18px; height: 18px;
  fill: var(--mint-deep);
  bottom: 24%;
  right: 6%;
  animation-duration: 9s;
  animation-direction: reverse;
}
.hero__star--c {
  width: 14px; height: 14px;
  fill: var(--rose);
  top: 44%;
  right: 8%;
  animation-duration: 13s;
}

@media (max-width: 820px) {
  .hero__shape--saffron { display: none; }
  .hero__star--a { right: 12%; }
}
@media (max-width: 540px) {
  .hero__shape--mint { width: 110px; top: 8%; right: -10px; }
  .hero__shape--rose { width: 50px; right: 12%; bottom: 22%; }
  .hero__star--c { display: none; }
}

.link-pill {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .01em;
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.link-pill:hover {
  background: var(--saffron-deep);
  transform: translateY(-1px);
}
.link-pill--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.link-pill--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}


/* ── Sections ───────────────────────────────────────────── */

.section {
  padding: clamp(4.5rem, 9vw, 7rem) var(--gutter);
  position: relative;
  z-index: 2;
}
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 2.5rem;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-mute);
}
.kicker__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--saffron-deep);
  white-space: nowrap;
}
.kicker__rule {
  flex: 0 0 60px;
  height: 1px;
  background: var(--saffron);
  display: inline-block;
}
.kicker__label {
  text-transform: uppercase;
  letter-spacing: .22em;
}

.section__title {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 2rem;
  max-width: 24ch;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.section__title--small {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  max-width: 32ch;
}
.section__title em {
  font-style: italic;
  color: var(--saffron-deep);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

.prose {
  font-size: 1.06rem;
  line-height: 1.7;
  max-width: var(--proseW);
  color: var(--ink-soft);
}
.prose p { margin: 0 0 1.1em; }
.prose em { font-family: var(--serif); font-style: italic; }
.prose a {
  color: var(--ink);
  background-image: linear-gradient(var(--saffron), var(--saffron));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size .3s var(--ease-out), color .25s var(--ease-out);
}
.prose a:hover {
  color: var(--saffron-deep);
  background-size: 100% 100%;
  background-image: linear-gradient(var(--saffron-pale), var(--saffron-pale));
}

/* ── About ──────────────────────────────────────────────── */

.section--about {
  background: var(--paper);
  padding-top: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--rule);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.about__text { min-width: 0; }
.about__lead {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 2.2rem;
  max-width: 28ch;
  font-variation-settings: "opsz" 96, "SOFT" 50;
}

/* Inline colored highlights — pulled from designer-portfolio inspo:
   bold, colored, with a matching softer underline. */
.hl {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-style: normal;
}
.hl--mint    { color: var(--mint-deep);    text-decoration-color: var(--mint); }
.hl--rose    { color: var(--rose);         text-decoration-color: var(--rose-soft); }
.hl--saffron { color: var(--saffron-deep); text-decoration-color: var(--saffron-soft); }
.about__cols {
  max-width: var(--proseW);
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--ink-soft);
}
.about__cols p { margin: 0 0 1.1em; }
.about__cols em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--saffron-deep);
}
.about__cols a {
  color: var(--ink);
  background-image: linear-gradient(var(--saffron), var(--saffron));
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size .3s var(--ease-out), color .25s var(--ease-out);
}
.about__cols a:hover {
  color: var(--saffron-deep);
  background-size: 100% 100%;
  background-image: linear-gradient(var(--saffron-pale), var(--saffron-pale));
}

/* Integrated portrait (no tilt, no tape — sits like an editorial inset) */
.about__portrait {
  margin: 0;
  position: sticky;
  top: 6rem;
  align-self: start;
}
.about__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  display: block;
  filter: contrast(1.02) saturate(1.02);
}
.about__portrait figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: .92rem;
  color: var(--ink-mute);
  margin-top: .9rem;
  line-height: 1.5;
  font-variation-settings: "opsz" 96, "SOFT" 50;
  padding-left: 1px;
}

@media (max-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about__portrait {
    position: static;
    max-width: 360px;
    order: -1;
  }
}


/* ── Novel ──────────────────────────────────────────────── */

.section--novel {
  background: var(--paper-warm);
  border-top: 1px solid var(--rule);
}

/* ── Currently (the personality moment) ─────────────────── */

.section--currently {
  background: var(--mint-pale);
  border-top: 1px solid var(--rule);
}
.currently {
  margin: 1.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--mint);
}
.currently__row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--mint);
  align-items: baseline;
  transition: padding-left .3s var(--ease-out), background .3s var(--ease-out);
}
.currently__row:hover {
  padding-left: 1rem;
  background: linear-gradient(90deg, rgba(255,255,255,0.55) 0%, transparent 60%);
}
.currently dt {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0;
  font-variation-settings: "opsz" 144, "SOFT" 80;
}
/* Rotate dt colors row-by-row for the colorful designer-portfolio feel */
.currently__row:nth-child(1) dt { color: var(--saffron-deep); }
.currently__row:nth-child(2) dt { color: var(--mint-deep); }
.currently__row:nth-child(3) dt { color: var(--rose); }
.currently__row:nth-child(4) dt { color: var(--saffron-deep); }
.currently__row:nth-child(5) dt { color: var(--mint-deep); }
.currently__row:nth-child(6) dt { color: var(--ink-mute); }
.currently dd {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  font-family: var(--sans);
}
.currently dd em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}
.currently dd time {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .currently__row {
    grid-template-columns: 1fr;
    gap: .25rem;
    padding: 1.15rem 0;
  }
  .currently__row:hover {
    padding-left: 0;
    background: transparent;
  }
}

/* ── Contact ────────────────────────────────────────────── */

.section--contact {
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.contact {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 600px;
}
.contact li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.contact li:first-child { border-top: 1px solid var(--rule); }
.contact__label {
  font-family: var(--serif);
  font-style: italic;
  font-size: .98rem;
  color: var(--saffron-deep);
}
.contact__value {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .4s var(--ease-out), color .25s var(--ease-out);
}
.contact__value:hover {
  color: var(--saffron-deep);
  background-image: linear-gradient(var(--saffron-deep), var(--saffron-deep));
  background-size: 100% 1px;
}

@media (max-width: 540px) {
  .contact li { grid-template-columns: 1fr; gap: .25rem; }
}

/* ── Footer ─────────────────────────────────────────────── */

.foot {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 2.25rem var(--gutter);
}
.foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
  color: var(--ink-mute);
}
.foot__copy { margin: 0; font-family: var(--serif); font-style: italic; font-size: .92rem; line-height: 1.5; }
.foot__top {
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-soft);
  font-size: .82rem;
  transition: color .25s var(--ease-out);
}
.foot__top:hover { color: var(--saffron-deep); }
.foot__top span { display: inline-block; transition: transform .3s var(--ease-out); }
.foot__top:hover span { transform: translateY(-2px); }

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
