@import "../../shared/fancy-base.css";

:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --border: #e8e8e8;
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-soft: #7a7a7a;
  --accent: #e06b10;
  --accent-2: #c95d08;
  --accent-3: #111111;
  --accent-text: #ffffff;
  --font: "Inter", sans-serif;
  --font-display: "Playfair Display", serif;
  --mono: "Inter", sans-serif;
  --max-w: 760px;
  --content-w: 760px;
  --radius: 6px;
  --radius-sm: 6px;
  --hero-max: 760px;
  --hero-title-size: clamp(1.55rem, 3.6vw, 2.4rem);
  --card-shadow: none;
  --hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --hero-with-media-columns: minmax(0, 1fr);
  --hero-copy-align: center;
  --hero-copy-max-width: 38rem;
  --hero-media-order: -1;
  --hero-media-justify: center;
  --hero-media-align-self: center;
  --hero-media-max-width: 480px;
  --hero-media-margin: 0 auto 1.5rem;
  --hero-media-height: 100%;
  --hero-media-min-height: 280px;
}

body::after {
  display: none;
}

.site-header {
  position: static;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: none !important;
}

.header-logo,
.header-headshot {
  width: 46px;
  height: 46px;
}

.header-site-name {
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.hero__title,
.section-title,
.page-title {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
}

.home-hero .hero__title {
  line-height: 0.96;
  text-wrap: balance;
  margin-inline: auto;
}

.hero-copy {
  margin: 0 auto;
}

.hero-body {
  text-align: left;
  text-wrap: pretty;
  max-width: 34rem;
  margin: 0 auto;
}

.hero__actions,
.action-row,
.social-strip {
  justify-content: center;
}

.btn {
  border-radius: 6px;
}

.btn--primary {
  background: var(--accent);
}

.post-card,
.sidebar-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
}

.post-card__image-wrap {
  aspect-ratio: 1/0.9;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}

.hero-media-card img {
  aspect-ratio: 4/3;
}

.header-nav a.nav-active {
  background: none;
  color: var(--text);
  font-weight: 700;
}

.post-card__badge {
  background: var(--accent);
  color: #fff;
}

.section {
  padding-top: 40px;
}

.page-title {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.02em;
}

.prose h1:first-child {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.prose h2 {
  font-size: 1.55rem;
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: 2.2em;
  padding-top: 0.4em;
  border-top: 1px solid var(--border);
}

.prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
}

@media (max-width: 960px) {
  .mobile-nav {
    left: 14px;
    right: 14px;
    bottom: auto;
    padding: 14px 14px 18px;
    border: 1px solid var(--border);
    border-radius: 0 0 calc(var(--radius-sm) + 2px) calc(var(--radius-sm) + 2px);
    background: color-mix(in srgb, var(--surface-strong) 96%, var(--bg));
    box-shadow: 0 16px 30px color-mix(in srgb, var(--text) 10%, transparent);
  }

  .mobile-nav a {
    padding: 12px 6px;
  }

  .mobile-nav a.nav-active {
    background: color-mix(in srgb, var(--accent) 10%, white);
  }
}

.section-heading h1,
.section-heading h2,
.feature-content h3,
.post-card__title,
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-brand-name {
  font-size: 1.125rem;
  margin-bottom: 6px;
}

.post-card__title,
.feature-content h3 {
  line-height: 1.12;
}

.contact-links {
  display: grid;
  gap: 14px;
  margin-top: 1.5rem;
  max-width: 30rem;
}

.contact-link {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  min-height: 56px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.contact-link:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--hover-shadow);
  color: var(--text);
  transform: translateY(-1px);
}

.contact-link__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--accent);
  background: var(--bg-2);
}

.contact-link__icon img,
.contact-link__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

.contact-link__label {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 960px) {
  .contact-link {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.8rem 0.9rem;
  }

  .contact-link__icon {
    width: 2.25rem;
    height: 2.25rem;
  }
}
