:root {
  --bg: #f7f7f5;
  --paper: #ffffff;
  --paper-soft: #fbfbfa;
  --ink: #171717;
  --muted: #62656a;
  --faint: #ececea;
  --faint-2: rgba(23, 23, 23, .07);
  --shadow: 0 18px 55px rgba(20, 20, 20, .055);
  --shadow-soft: 0 8px 22px rgba(20, 20, 20, .04);
  --radius: 30px;
  --gutter: clamp(16px, 4vw, 72px);
  --wide: 100%;
  --max-readable: 860px;
  --speed: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.95), transparent 28rem),
    linear-gradient(135deg, #fafafa 0%, #f2f2ef 55%, #ececea 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
p, li, dd { color: var(--muted); }
code { padding: .08rem .34rem; border-radius: .5rem; background: #eeeeeb; color: var(--ink); font-size: .92em; }
h1, h2, h3 { color: var(--ink); line-height: 1.06; letter-spacing: -.045em; }
h1 { font-size: clamp(2.1rem, 7vw, 6.8rem); }
h2 { font-size: clamp(1.6rem, 4vw, 3.8rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.55rem); }

.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 9999; padding: .75rem 1rem; border-radius: 999px; background: #111; color: #fff; }
.skip-link:focus { left: var(--gutter); }
:focus-visible { outline: 3px solid rgba(0,0,0,.86); outline-offset: 4px; border-radius: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,247,245,.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.045);
}
.nav {
  min-height: 76px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { font-weight: 800; letter-spacing: -.035em; text-decoration: none; }
.nav-list { list-style: none; display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.nav-list a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 1rem; border-radius: 999px; color: var(--muted); text-decoration: none; transition: background var(--speed), color var(--speed); }
.nav-list a:hover, .nav-list a:focus-visible, .nav-list a[aria-current="page"] { background: rgba(0,0,0,.055); color: var(--ink); }

.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(24px, 4.5vw, 76px) var(--gutter) clamp(56px, 8vw, 120px);
}

/* Home becomes full-screen width and more editorial/free-flowing */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 88px);
  align-items: start;
}
.profile-card, .panel, .post-card {
  background: rgba(255,255,255,.72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.profile-card {
  position: sticky;
  top: 108px;
  padding: clamp(1.35rem, 2.6vw, 2.35rem);
  text-align: center;
}
.logo { width: 118px; height: 118px; margin: 0 auto 1.35rem; padding: 5px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-soft); }
.logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.profile-card h1 { font-size: clamp(1.8rem, 3vw, 2.35rem); margin-bottom: .7rem; }
.tagline, .lede { color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.22rem); }
.tagline { max-width: 32ch; margin: 0 auto 1.75rem; }
.links { display: grid; gap: .75rem; }
.link, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: .9rem 1.15rem;
  border-radius: 999px;
  background: #fafafa;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.055);
  font-weight: 750;
  letter-spacing: -.015em;
  text-decoration: none;
  transition: transform var(--speed), background var(--speed), box-shadow var(--speed);
}
.link:hover, .link:focus-visible, .button:hover, .button:focus-visible { transform: translateY(-1px); background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.11), var(--shadow-soft); }
.link.feature, .feature { background: #171717; color: #fff; box-shadow: none; }
.link.feature:hover, .feature:hover { background: #000; }

.panel {
  min-height: calc(100vh - 180px);
  padding: clamp(1.5rem, 5vw, 5.5rem);
}
.panel > h2 { max-width: 12ch; }
.panel h2 + p, .page-title h1 + p { margin-top: 1rem; }
.lede { max-width: 62ch; }
.content-block { margin-top: clamp(2.2rem, 6vw, 5.5rem); }
.content-block h2 { font-size: clamp(1.55rem, 3vw, 2.85rem); }

.image-feed {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(.85rem, 1.5vw, 1.4rem);
}
.feed-item { overflow: hidden; border-radius: 26px; background: #fff; box-shadow: var(--shadow-soft); }
.feed-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 420ms ease; }
.feed-item:hover img { transform: scale(1.025); }

.page-title { max-width: 1080px; margin-bottom: clamp(2rem, 5vw, 4.5rem); }
.page-title .lede { max-width: 68ch; }
.breadcrumbs { margin-bottom: clamp(1.25rem, 3vw, 2.25rem); font-size: .95rem; }
.breadcrumbs ol { list-style: none; display: flex; gap: .55rem; flex-wrap: wrap; }
.breadcrumbs li { color: #898b8f; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: .55rem; color: #aaa; }
.breadcrumbs a { color: var(--muted); }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}
.post-card { overflow: hidden; text-decoration: none; transition: transform var(--speed), box-shadow var(--speed); }
.post-card:hover, .post-card:focus-within { transform: translateY(-2px); box-shadow: 0 20px 60px rgba(18,18,18,.085); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-content { padding: clamp(1.2rem, 2.4vw, 2rem); }
.post-card h2 { margin-bottom: .75rem; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.post-card h2 a { text-decoration: none; }
.meta, .rating { font-size: .94rem; }
.meta { color: #8a8d91; margin-bottom: .8rem; }
.rating { display: inline-flex; align-items: center; margin-bottom: .85rem; padding: .34rem .72rem; border-radius: 999px; background: #eeeeeb; color: var(--ink); font-weight: 760; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(24px, 4vw, 64px); align-items: start; }
.article { padding: clamp(1.5rem, 4vw, 4.5rem); }
.article > * + * { margin-top: 1.3rem; }
.article h2 { margin-top: clamp(2rem, 4vw, 3.5rem); font-size: clamp(1.5rem, 2.8vw, 2.35rem); }
.article ul, .article ol { padding-left: 1.4rem; }
.article img { width: 100%; border-radius: 26px; box-shadow: var(--shadow-soft); }
.review-summary { position: sticky; top: 106px; }
.review-summary h2 { font-size: 1.5rem; }
.review-summary dl { display: grid; gap: .75rem; margin-top: 1.2rem; }
.review-summary div { display: grid; gap: .2rem; padding: 0 0 .75rem; border-bottom: 1px solid rgba(0,0,0,.07); }
.review-summary dt { color: #8a8d91; font-size: .88rem; }
.review-summary dd { color: var(--ink); font-weight: 650; }

.site-footer { padding: 0 var(--gutter) clamp(32px, 5vw, 72px); }
.site-footer p { width: 100%; margin: 0; padding-top: 2rem; border-top: 1px solid rgba(0,0,0,.07); color: #8a8d91; font-size: .95rem; }

@media (max-width: 860px) {
  .site-header { position: static; }
  .nav { min-height: auto; padding: 1rem var(--gutter); align-items: flex-start; flex-direction: column; }
  .nav-list { width: 100%; gap: .35rem; }
  .nav-list a { padding: 0 .85rem; }
  .container { padding-top: 1.2rem; }
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .profile-card { position: static; order: -1; border-radius: 28px; }
  .panel, .article { min-height: 0; border-radius: 28px; }
  .panel > h2 { max-width: 100%; }
  .review-summary { position: static; }
}
@media (max-width: 520px) {
  :root { --gutter: 14px; }
  .profile-card, .panel, .article { padding: 1.25rem; }
  .image-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
