:root {
  --bg: #080b0d;
  --bg-soft: #10161a;
  --panel: rgba(255,255,255,0.07);
  --panel-strong: rgba(255,255,255,0.11);
  --border: rgba(255,255,255,0.13);
  --text: rgba(255,255,255,0.93);
  --muted: rgba(255,255,255,0.68);
  --faint: rgba(255,255,255,0.48);
  --accent: #f5d06f;
  --accent-2: #49c2b1;
  --max: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(73,194,177,0.20), transparent 28rem),
    linear-gradient(135deg, #080b0d 0%, #11171a 48%, #090b0d 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 8px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--panel);
  border-color: var(--border);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 112px);
  padding: 34px 0 60px;
}

.hero-copy,
.story-panel,
.app-section {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.10), rgba(255,255,255,0.045));
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
  backdrop-filter: blur(12px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 6vw, 64px);
  border-radius: 8px;
}

.story-panel {
  align-self: center;
  padding: 28px;
  border-radius: 8px;
}

.eyebrow,
.category-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.96;
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 850;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 680px;
  margin-top: 24px;
  font-size: 1.18rem;
}

.story-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.story-panel p + p {
  margin-top: 14px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #111;
  background: #fff;
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--panel);
}

.section {
  padding: 68px 0;
  border-top: 1px solid var(--border);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-top: 8px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.article-card {
  min-height: 285px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.24);
}

.article-card h3 {
  margin-top: 10px;
}

.article-card p:not(.category-label) {
  margin-top: 12px;
}

.article-card a {
  width: fit-content;
  margin-top: auto;
  padding-top: 24px;
  color: var(--accent-2);
  font-weight: 800;
  text-decoration: none;
}

.article-card a:hover,
.article-card a:focus-visible {
  text-decoration: underline;
}

.app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1fr);
  gap: 28px;
  align-items: start;
  margin: 46px 0 68px;
  padding: 28px;
  border-radius: 8px;
}

.app-section h2 {
  margin-top: 8px;
  font-size: clamp(1.7rem, 3.4vw, 2.65rem);
}

.app-points {
  display: grid;
  gap: 12px;
}

.app-points p {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.22);
}

.app-points .button {
  justify-self: start;
  margin-top: 4px;
}

.access-page {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 48px 0 76px;
}

.access-intro h1 {
  max-width: 820px;
}

.access-intro > p:not(.eyebrow) {
  max-width: 720px;
  margin-top: 24px;
  font-size: 1.18rem;
}

.access-card {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}

.access-card h2 {
  margin-top: 8px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.access-card > p:not(.eyebrow) {
  margin-top: 18px;
}

.access-actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.access-actions .button {
  width: 100%;
}

.access-note {
  padding-top: 18px;
  color: var(--faint);
  font-size: 0.9rem;
}

.category-hero {
  padding: 56px 0 44px;
}

.category-hero h1 {
  max-width: 840px;
  margin-top: 10px;
}

.category-hero p {
  max-width: 760px;
  margin-top: 20px;
  font-size: 1.16rem;
}

.post-list {
  display: grid;
  gap: 14px;
  padding-bottom: 72px;
}

.post-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.23);
}

.post-item time {
  color: var(--faint);
  font-size: 0.92rem;
}

.post-item h2 {
  font-size: 1.45rem;
}

.post-item h2 a {
  color: var(--text);
  text-decoration: none;
}

.post-item h2 a:hover,
.post-item h2 a:focus-visible {
  color: var(--accent-2);
}

.post-item p {
  margin-top: 8px;
}

.article-body {
  max-width: 920px;
  padding-bottom: 76px;
}

.article-body p {
  max-width: 780px;
  margin-top: 18px;
  color: rgba(255,255,255,0.80);
  font-size: 1.12rem;
}

.article-body h2 {
  max-width: 780px;
  margin-top: 56px;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.article-body h3 {
  max-width: 780px;
  margin-top: 34px;
}

.article-body a {
  color: var(--accent-2);
  font-weight: 750;
  text-underline-offset: 0.18em;
}

.article-figure,
.shoe-gallery {
  margin-top: 36px;
}

.article-figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
}

.article-figure img,
.shoe-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure--portrait {
  max-width: 620px;
}

.article-figure--diptych > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.article-figure--diptych img {
  height: 100%;
  object-fit: cover;
}

.article-figure figcaption,
.shoe-gallery figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-figure figcaption strong,
.shoe-gallery figcaption strong {
  color: var(--text);
}

.shoe-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.shoe-gallery figure {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.28);
}

.shoe-gallery img {
  aspect-ratio: 1.45;
  object-fit: cover;
}

.loading-note {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(0,0,0,0.20);
  color: var(--muted);
}

.site-footer {
  padding: 44px 0 54px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin-top: 7px;
  font-size: 0.92rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.socials a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 1.12rem;
}

.socials a:hover,
.socials a:focus-visible {
  background: var(--panel-strong);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .app-section,
  .access-page {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .post-item {
    grid-template-columns: 1fr;
  }

  .article-figure--diptych > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero-copy,
  .story-panel,
  .app-section,
  .article-card,
  .post-item {
    padding: 18px;
  }

  h1 {
    font-size: clamp(2.55rem, 17vw, 4.2rem);
  }

  .shoe-gallery {
    grid-template-columns: 1fr;
  }

}

/* ===== Design upgrade layer (taste-skill audit) ===== */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-soft: 0 18px 44px rgba(4, 10, 12, 0.5);
  --shadow-accent: 0 12px 30px rgba(245, 208, 111, 0.18);
}

body {
  font-family: var(--font-body);
  font-weight: 350;
}

/* Typography: serif display with presence, balanced wrapping */
h1, h2, h3, .brand span {
  font-family: var(--font-display);
  letter-spacing: -0.015em;
}
h1 { font-weight: 680; text-wrap: balance; }
h2 { font-weight: 640; text-wrap: balance; }
h3 { font-weight: 600; }
.eyebrow, .category-label { font-family: var(--font-body); font-weight: 500; }
strong { font-weight: 600; }

/* One accent: gold. Teal stays ambient-only (background wash). */
.button {
  font-weight: 600;
  border-radius: 10px;
  transition: transform 220ms ease, box-shadow 220ms ease,
              background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}
.button.primary {
  background: var(--accent);
  color: #191204;
}
.button.primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); }
.button.secondary:hover {
  border-color: rgba(245, 208, 111, 0.55);
  background: var(--panel-strong);
  transform: translateY(-2px);
}
.button:active { transform: translateY(0) scale(0.98); box-shadow: none; }

/* Interactive states everywhere */
a, .nav-links a { transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Cards: alive on hover, tinted depth, varied radius */
.feature-card, .article-card, .access-card, .story-panel {
  border-radius: 14px;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease, background-color 240ms ease;
}
.feature-card:hover, .article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 208, 111, 0.4);
  box-shadow: var(--shadow-soft);
  background: var(--panel-strong);
}
.feature-card h3 { margin-bottom: 6px; }

/* Grain: break the digital flatness (fixed, click-through) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483647;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Optical spacing: sections breathe a touch more below than above */
.section { padding: 64px 0 78px; }

/* Prose measure on long-form pages */
.article-body p { max-width: 65ch; }
.article-body { font-size: 1.02rem; }

/* Mobile viewport stability */
body { min-height: 100dvh; }
