:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --ink: #13120f;
  --muted: #676158;
  --line: rgba(19, 18, 15, 0.16);
  --line-strong: rgba(19, 18, 15, 0.34);
  --wash: rgba(255, 255, 255, 0.28);
  --accent: #d4ff3f;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  overflow-x: hidden;
}

.shell,
.stream,
.home-hero,
.compact-section,
.compact-list,
.compact-row {
  max-width: 100%;
}

.home-copy,
.compact-row > *,
.entry > *,
.entry a > * {
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font: inherit;
}

input {
  width: 100%;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.32);
  color: var(--ink);
}

button {
  padding: 0 12px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.mobile-crumb {
  display: none;
}

.shell {
  display: grid;
  grid-template-columns: minmax(280px, 30vw) minmax(0, 1fr);
  min-height: 100svh;
}

.rail {
  position: sticky;
  top: 0;
  display: grid;
  align-content: space-between;
  height: 100svh;
  padding: clamp(18px, 3vw, 34px);
  border-right: 1px solid var(--line-strong);
  background:
    linear-gradient(180deg, rgba(244, 240, 230, 0.88), rgba(244, 240, 230, 0.58)),
    var(--wash);
}

.identity {
  display: grid;
  gap: 12px;
  align-items: start;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 620;
  line-height: 0.94;
}

.stamp {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--ink);
  background: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

.side-note {
  max-width: 26ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-block: 24px;
  font-size: 14px;
}

.side-nav a {
  display: flex;
  justify-content: space-between;
  padding-block: 8px;
  border-bottom: 1px solid var(--line);
}

.side-nav a::after {
  content: "->";
  color: var(--muted);
}

.signup-card {
  position: relative;
  margin-top: 24px;
  padding: clamp(18px, 1.8vw, 24px);
  background: var(--accent);
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(19, 18, 15, 0.16);
  overflow: hidden;
}

.signup-eyebrow {
  margin: 0;
  color: rgba(19, 18, 15, 0.6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.signup-title {
  margin: 9px 0 0;
  font-size: clamp(20px, 1.7vw, 25px);
  font-weight: 600;
  line-height: 1.04;
}

.signup-blurb {
  max-width: 34ch;
  margin: 9px 0 0;
  color: rgba(19, 18, 15, 0.72);
  font-size: 13px;
  line-height: 1.46;
}

.signup-fields {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.signup-status {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.signup-status[data-tone="error"] {
  color: #7a1f12;
}

.signup-status[data-tone="success"] {
  color: #14491f;
}

.signup-card input {
  background: var(--paper);
  border-color: var(--ink);
}

.signup-card input::placeholder {
  color: rgba(19, 18, 15, 0.45);
}

.signup-card input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.signup-card button {
  background: var(--ink);
  color: var(--accent);
  border-color: var(--ink);
  font-weight: 650;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.signup-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(19, 18, 15, 0.35);
}

.signup-card button:active {
  transform: translateY(0);
  box-shadow: none;
}

.bottom-signup {
  display: none;
}

.stream {
  padding: clamp(20px, 3.6vw, 42px);
}

.home-stream {
  display: grid;
  align-content: start;
}

.home-hero {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 0;
  padding-bottom: 14px;
}

.home-hero h1 {
  max-width: 520px;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.12;
}

.home-copy p:last-child {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.45;
}

.portrait-wrap {
  position: relative;
  align-self: stretch;
  min-height: 84px;
  max-height: 96px;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  clip-path: polygon(
    0.6% 2.4%, 13% 0.4%, 27% 1.8%, 44% 0.3%, 61% 1.9%, 79% 0.5%, 99.4% 1.6%,
    98.6% 19%, 100% 38%, 98.4% 59%, 99.6% 80%, 98% 99%,
    81% 99.4%, 63% 98.2%, 46% 99.6%, 29% 98.4%, 13% 99.7%, 0.5% 98.3%,
    1.6% 79%, 0% 60%, 1.8% 39%, 0.4% 20%
  );
}

.portrait-wrap::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background: var(--paper);
}

.portrait-wrap::after {
  position: absolute;
  z-index: -1;
  inset: 18% -7% 10%;
  content: "";
  background: var(--accent);
  transform: rotate(-2.2deg);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 88%, transparent 100%);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 42%;
  mix-blend-mode: multiply;
  filter: contrast(1.05);
  opacity: 0.92;
}

.masthead {
  min-height: 24svh;
  display: grid;
  align-content: end;
  padding-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid var(--line-strong);
}

.kicker,
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 560;
  letter-spacing: 0;
  line-height: 0.96;
}

.pulse-strip {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: clamp(16px, 3vw, 38px);
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line-strong);
}

.pulse-strip > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticker {
  position: relative;
  height: 1.2em;
  overflow: hidden;
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 560;
  line-height: 1.2;
}

.ticker span {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
  transform: translateY(110%);
  animation: rotate-note 12s infinite;
}

.ticker span:nth-child(2) {
  animation-delay: 3s;
}

.ticker span:nth-child(3) {
  animation-delay: 6s;
}

.ticker span:nth-child(4) {
  animation-delay: 9s;
}

@keyframes rotate-note {
  0%,
  7% {
    opacity: 0;
    transform: translateY(110%);
  }

  11%,
  25% {
    opacity: 1;
    transform: translateY(0);
  }

  31%,
  100% {
    opacity: 0;
    transform: translateY(-110%);
  }
}

.feed {
  display: grid;
}


.home-sections {
  display: grid;
}

.compact-section {
  padding: clamp(18px, 2.5vw, 28px) 0;
  border-bottom: 1px solid var(--line-strong);
}

.section-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.compact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.compact-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.38fr) minmax(260px, 1fr);
  gap: clamp(14px, 2.5vw, 30px);
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.compact-row:last-child {
  border-bottom: 0;
}

.experience-list .compact-row {
  grid-template-columns: 150px minmax(180px, 0.4fr) minmax(260px, 1fr);
  align-items: start;
}


.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.24);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
}


.brand-logo img {
  display: block;
  width: auto;
  max-width: 54px;
  height: 18px;
}

.brand-linkedin {
  width: 30px;
  border-color: #0a66c2;
  background: #0a66c2;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.brand-placeholder {
  color: var(--muted);
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(22px, 5vw, 48px);
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.logo-strip li {
  display: inline-flex;
}

.logo-strip img {
  width: auto;
  height: clamp(22px, 2.4vw, 28px);
  opacity: 0.72;
  filter: grayscale(1);
  transition: opacity 0.2s ease;
  animation: logo-drift 7s ease-in-out infinite;
  will-change: transform;
}

.logo-strip li:nth-child(2) img {
  animation-duration: 8.5s;
  animation-delay: -2.1s;
}

.logo-strip li:nth-child(3) img {
  animation-duration: 6.4s;
  animation-delay: -4.3s;
}

.logo-strip li:nth-child(4) img {
  animation-duration: 9.2s;
  animation-delay: -1.2s;
}

.logo-strip li:hover img {
  opacity: 1;
}

.past-block {
  margin-top: clamp(20px, 2.6vw, 28px);
}

.past-sublabel {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-tags li {
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.1;
}

.past-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px clamp(20px, 3vw, 40px);
  max-width: 720px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.past-notes li {
  position: relative;
  padding-left: 17px;
  color: var(--muted);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.4;
}

.past-notes li::before {
  position: absolute;
  left: 0;
  content: "—";
  color: var(--line-strong);
}

@keyframes logo-drift {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  30% {
    transform: translateY(-2.5px) rotate(-1.2deg);
  }

  65% {
    transform: translateY(1.5px) rotate(0.8deg);
  }

  100% {
    transform: translateY(0) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-strip img {
    animation: none;
  }
}

.compact-row h2 {
  margin: 0;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 560;
  line-height: 1.08;
}

.compact-row p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.42;
}

.year-index {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.year-index a {
  padding: 4px 8px;
  border: 1px solid var(--line);
  letter-spacing: 0.08em;
}

.year-index a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.year-marker {
  padding: 16px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* TEMP: archive-porting notice — remove when the archive is complete */
.blog-notice {
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: clamp(14px, 1.8vw, 20px) clamp(16px, 2vw, 22px);
  border: 1px solid var(--ink);
  border-left: 6px solid var(--accent);
  background: var(--wash);
}

.blog-notice-eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-notice-text {
  margin: 0;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.44;
}

.entry {
  border-bottom: 1px solid var(--line-strong);
}

.entry a {
  display: grid;
  grid-template-columns: 132px minmax(190px, 0.48fr) minmax(260px, 1fr);
  gap: clamp(14px, 2.5vw, 30px);
  align-items: start;
  padding: clamp(16px, 2.2vw, 24px) 0;
}

.entry h2 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 560;
  line-height: 1;
  overflow-wrap: anywhere;
}

.entry p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.44;
  overflow-wrap: anywhere;
}

.entry a:hover h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

#archive .entry h2 {
  font-size: clamp(19px, 1.9vw, 26px);
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(240px, 30vw) minmax(0, 1fr);
  min-height: 100svh;
}

.article-body {
  max-width: 820px;
  padding: clamp(34px, 7vw, 88px);
}

.article-body h1 {
  font-size: clamp(46px, 7vw, 92px);
}

.article-body p,
.article-body li {
  color: #302d27;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.68;
}

.share-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 28px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.project-hero {
  padding-bottom: clamp(32px, 6vw, 70px);
  border-bottom: 1px solid var(--line-strong);
}

@media (max-width: 760px) {
  .mobile-crumb {
    position: sticky;
    top: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    max-width: 100vw;
    padding: 0 14px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(244, 240, 230, 0.92);
    backdrop-filter: blur(10px);
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
  }

  .mobile-home {
    min-width: 0;
    overflow: hidden;
    color: var(--ink);
    text-overflow: ellipsis;
  }

  .mobile-links {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
  }

  .mobile-links a,
  .mobile-links span {
    flex: 0 0 auto;
  }

  .shell,
  .article-shell {
    display: block;
  }

  .rail {
    display: none;
  }

  button {
    width: 100%;
  }

  .stream,
  .article-body {
    width: 100%;
    max-width: 100vw;
    padding: 12px 14px 54px;
    overflow-x: hidden;
  }

  .home-hero {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
    gap: 12px;
    align-items: center;
    padding: 10px 0 14px;
  }

  .home-copy {
    min-width: 0;
  }

  .home-hero h1 {
    display: block;
    max-width: 100%;
    margin-top: 0;
    font-size: clamp(20px, 5.8vw, 28px);
    line-height: 1.05;
    overflow-wrap: break-word;
  }

  .home-copy p:last-child {
    grid-column: 2;
    max-width: 100%;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.42;
    overflow-wrap: break-word;
  }

  .portrait-wrap {
    width: 72px;
    min-height: 72px;
    max-height: 72px;
  }

  .portrait-wrap img {
    object-position: 54% 30%;
  }

  .masthead {
    min-height: 0;
    padding: 8px 0 12px;
  }

  h1 {
    display: none;
  }

  .kicker {
    font-size: 11px;
  }

  .entry a,
  .compact-row,
  .experience-list .compact-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .entry h2 {
    font-size: clamp(28px, 8vw, 40px);
  }

  #archive .entry h2 {
    font-size: clamp(22px, 6.2vw, 28px);
  }

  .compact-section {
    padding: 16px 0;
  }

  .past-notes {
    grid-template-columns: 1fr;
    gap: 7px;
  }


  .compact-row h2 {
    max-width: 100%;
    font-size: 18px;
    line-height: 1.12;
    overflow-wrap: break-word;
  }

  .compact-row p {
    width: 100%;
    max-width: 100%;
    font-size: 13px;
    line-height: 1.42;
    overflow-wrap: break-word;
  }

  .pulse-strip {
    display: none;
  }

  .year-index {
    min-height: 44px;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .year-marker {
    padding: 12px 0 4px;
  }

  .bottom-signup {
    display: block;
    margin-top: 28px;
  }
}
