/* ─────────────────────────────────────────────────────────
   Gianluca Turturro — personal site
   Design tokens (default: Carbon · Bone · Amber)
   ───────────────────────────────────────────────────────── */
:root {
  --bg:     #0f0e0c;
  --ink:    #f4efe6;
  --accent: #e0a14b;
  --ink-2:  color-mix(in oklab, var(--ink) 82%, var(--bg) 18%);
  --muted:  color-mix(in oklab, var(--ink) 55%, var(--bg));
  --rule:   color-mix(in oklab, var(--ink) 16%, var(--bg));
  --rule-2: color-mix(in oklab, var(--ink)  8%, var(--bg));
  --paper:  color-mix(in oklab, var(--bg) 75%, white 25%);

  --serif: "Fraunces", "Newsreader", "Times New Roman", Georgia, serif;
  --sans:  "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono:  "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }

/* ── Page frame ─────────────────────────────────────────── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page__inner {
  flex: 1;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 56px 0;
}
.page__inner--tail { flex: 0; padding-top: 0; }

@media (max-width: 760px) {
  .page__inner { padding: 20px 22px 0; }
}

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar__mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
}
.topbar__dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.topbar__meta { display: flex; gap: 28px; }
.topbar__meta span { color: var(--muted); }
.topbar__meta b { color: var(--ink); font-weight: 500; margin-left: 6px; }

@media (max-width: 760px) {
  .topbar__meta { display: none; }
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  max-width: 1320px;
  width: 100%;
  margin: 56px auto 0;
  padding: 22px 56px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
@media (max-width: 760px) {
  .footer { padding: 18px 22px 24px; flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 80px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 28px;
}
.hero__eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.hero__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--ink);
  font-feature-settings: "ss01", "liga";
  text-wrap: balance;
}
.hero__name em {
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
}
.hero__role {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.35;
  color: var(--ink-2);
  max-width: 28ch;
  margin: 38px 0 0;
  text-wrap: pretty;
}
.hero__role .brand {
  color: var(--ink);
  font-style: normal;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Right column — meta card */
.hero__meta { display: flex; flex-direction: column; gap: 22px; padding-bottom: 14px; }
.metaCard {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.metaCard__head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.metaCard__head i {
  width: 6px; height: 6px;
  background: #1e8a5b;
  border-radius: 50%;
  box-shadow: 0 0 0 3px color-mix(in oklab, #1e8a5b 22%, transparent);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}
.metaCard__body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.metaCard__body strong { font-weight: 500; color: var(--ink); }

.metaList { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.metaList li {
  display: grid;
  grid-template-columns: 90px 1fr;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule-2);
  font-size: 13.5px;
  align-items: baseline;
}
.metaList li:last-child { border-bottom: none; }
.metaList span {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.metaList b { font-weight: 500; color: var(--ink); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 40px; }
  .hero__meta { padding-bottom: 0; }
}

/* ── About ──────────────────────────────────────────────── */
.about {
  padding: 80px 0 72px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 80px;
  border-bottom: 1px solid var(--rule);
}
.about__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  position: sticky;
  top: 24px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about__label b { display: block; color: var(--ink); font-weight: 500; font-size: 11px; }
.about__label span { color: var(--muted); }
.about__body {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 64ch;
  text-wrap: pretty;
}
.about__body p { margin: 0 0 1.2em; }
.about__body p:last-child { margin-bottom: 0; }
.about__body p:first-child::first-letter {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 4.6em;
  line-height: 0.85;
  float: left;
  padding: 0.08em 0.14em 0 0;
  color: var(--accent);
  font-feature-settings: "ss01";
}
.about__body strong { font-weight: 500; color: var(--ink); }
.about__body em { font-style: italic; color: var(--ink); }

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; gap: 24px; padding: 56px 0 48px; }
  .about__label { position: static; }
}

/* ── Writing (Medium feed) — editorial white section ────── */
.writing {
  background: #ffffff;
  color: #16140f;
  width: 100%;
  padding: 96px 0 104px;
  border-top: 1px solid rgba(0,0,0,0.08);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-top: 80px;
}
.writing__inner { max-width: 1320px; margin: 0 auto; padding: 0 56px; }
.writing__head {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr) auto;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}
.writing__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(22,20,15,0.55);
}
.writing__label b { display: block; color: #16140f; font-weight: 500; }
.writing__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: #16140f;
  text-wrap: balance;
}
.writing__title em { font-style: italic; font-weight: 300; color: var(--accent); }
.writing__view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: #16140f;
  text-decoration: none;
  padding: 10px 16px;
  border: 1px solid rgba(0,0,0,0.18);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.writing__view:hover {
  background: #16140f;
  color: #fff;
  border-color: #16140f;
}
.writing__view svg { width: 13px; height: 13px; }

@media (max-width: 960px) {
  .writing { margin-top: 56px; padding: 64px 0 72px; }
  .writing__inner { padding: 0 22px; }
  .writing__head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 32px; }
  .writing__view { justify-self: start; }
}

/* ── Article list ──────────────────────────────────────── */
.feed { list-style: none; margin: 0; padding: 0; }
.feed__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 56px;
  padding: 32px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  align-items: start;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.feed__item:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.feed__item:hover { background: rgba(0,0,0,0.015); }
.feed__item:hover .feed__title {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.feed__byline {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  color: #16140f;
  margin-bottom: 6px;
}
.feed__avatar {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c2552d, #6b3e8c);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.02em;
  font-family: var(--sans);
}
.feed__pub { color: rgba(22,20,15,0.6); }
.feed__pub b { color: #16140f; font-weight: 500; }
.feed__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #16140f;
  margin: 0 0 6px;
  text-wrap: balance;
  font-feature-settings: "ss01";
}
.feed__sub {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(22,20,15,0.62);
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.feed__meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: rgba(22,20,15,0.55);
  flex-wrap: wrap;
}
.feed__meta .tag {
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  padding: 3px 10px;
  color: rgba(22,20,15,0.7);
  font-size: 11.5px;
  margin-right: 4px;
}
.feed__meta .dot {
  width: 3px; height: 3px;
  background: rgba(22,20,15,0.35);
  border-radius: 50%;
  display: inline-block;
}
.feed__meta .stat { display: inline-flex; align-items: center; gap: 4px; }
.feed__meta .stat svg { width: 13px; height: 13px; opacity: 0.7; }
.feed__thumb {
  width: 180px; height: 120px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background: #ece6da;
}
.feed__thumb svg, .feed__thumb img {
  width: 100%; height: 100%; display: block;
  object-fit: cover;
}
.feed__loading {
  padding: 48px 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(22,20,15,0.45);
}
@media (max-width: 760px) {
  .feed__item { grid-template-columns: minmax(0,1fr) 90px; gap: 18px; padding: 24px 0; }
  .feed__title { font-size: 18px; }
  .feed__sub { font-size: 14px; margin-bottom: 12px; }
  .feed__thumb { width: 90px; height: 90px; }
}

/* ── Channels ───────────────────────────────────────────── */
.channels { padding: 80px 0 56px; }
.channels__head {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 80px;
  margin-bottom: 40px;
  align-items: end;
}
.channels__label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.channels__label b { display: block; color: var(--ink); font-weight: 500; }
.channels__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.channels__title em { font-style: italic; font-weight: 300; color: var(--accent); }

.channels__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.channelCard {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  padding: 32px 32px 28px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  min-height: 280px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1), border-color 0.3s, background 0.3s;
}
.channelCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.channelCard:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklab, var(--ink) 25%, transparent);
  background: color-mix(in oklab, var(--bg) 65%, white 35%);
}
.channelCard:hover::before { opacity: 1; }
.channelCard:hover .channelCard__arrow { transform: translate(6px, -6px); }
.channelCard:hover .channelCard__logo { transform: scale(1.04); }

.channelCard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.channelCard__kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.channelCard__arrow {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}
.channelCard__arrow svg { width: 100%; height: 100%; }

.channelCard__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.channelCard__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.channelCard__sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 22ch;
  text-wrap: pretty;
}
.channelCard__logo {
  flex: 0 0 auto;
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.channelCard__logo svg { display: block; }

@media (max-width: 760px) {
  .channels__head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 28px; }
  .channels__grid { grid-template-columns: 1fr; }
  .channelCard { min-height: 220px; padding: 26px; gap: 56px; }
}

/* ── Contact strip ────────────────────────────────────── */
.contact {
  margin-top: 28px;
  padding: 26px 28px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.contact__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--ink);
  max-width: 60ch;
  margin: 0;
}
