/* ==========================================================================
   profkane.com — shared stylesheet
   Editorial, typography-driven, Stratechery-clean.
   Inter for all type; deep blue accent; warm off-white field.
   ========================================================================== */

/* ---------- 1. Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1;
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- 2. Design tokens ---------- */
:root {
  /* Color */
  --bg: #faf8f4;
  --bg-elevated: #ffffff;
  --text: #1a1a1a;
  --text-muted: #4a4a4a;
  --text-subtle: #7a7a7a;
  --rule: #e0dcd2;
  --rule-strong: #c8c2b6;
  --accent: #1a3a5c;
  --accent-hover: #2a5278;

  /* Type scale */
  --fs-meta: 0.875rem;     /* 14px */
  --fs-body: 1.0625rem;    /* 17px */
  --fs-lead: 1.25rem;      /* 20px */
  --fs-h4: 1.375rem;       /* 22px */
  --fs-h3: 1.75rem;        /* 28px */
  --fs-h2: 2.25rem;        /* 36px */
  --fs-h1: 3rem;           /* 48px */
  --fs-display: 3.75rem;   /* 60px */

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;
  --space-9: 8rem;

  /* Layout */
  --container-narrow: 640px;
  --container-text: 680px;
  --container-wide: 880px;
  --container-page: 1100px;
}

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  letter-spacing: -0.025em;
}

h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.022em;
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.018em;
}

h4 {
  font-size: var(--fs-h4);
  letter-spacing: -0.015em;
}

p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
}

p + p {
  margin-top: var(--space-3);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

em, i {
  font-style: italic;
}

strong, b {
  font-weight: 600;
}

/* ---------- 4. Navigation ---------- */
.site-nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(250, 248, 244, 0.92);
}

.site-nav__inner {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-nav__brand {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--text);
}

.site-nav__brand:hover {
  color: var(--text);
}

.site-nav__links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
}

.site-nav__links a {
  font-size: var(--fs-meta);
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  font-weight: 500;
  position: relative;
  padding-bottom: 2px;
}

.site-nav__links a:hover {
  color: var(--text);
}

.site-nav__links a[aria-current="page"] {
  color: var(--text);
}

.site-nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--accent);
}

/* ---------- 5. Page structure ---------- */
.page {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-8);
}

.page--narrow {
  max-width: var(--container-wide);
}

.content {
  max-width: var(--container-text);
  margin: 0 auto;
}

.content--wide {
  max-width: var(--container-wide);
  margin: 0 auto;
}

/* ---------- 6. Section rhythm ---------- */
.section {
  margin-top: var(--space-7);
}

.section--tight {
  margin-top: var(--space-6);
}

.section--loose {
  margin-top: var(--space-8);
}

.section__divider {
  border: 0;
  height: 1px;
  background: var(--rule);
  margin: var(--space-7) auto;
  max-width: var(--container-text);
}

.section__divider--short {
  max-width: 80px;
  margin: var(--space-6) auto;
  background: var(--rule-strong);
}

/* Section labels — small, uppercase, used sparingly */
.eyebrow {
  font-size: var(--fs-meta);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-subtle);
  margin-bottom: var(--space-3);
}

/* ---------- 7. Hero / display patterns ---------- */
.hero {
  margin-top: var(--space-5);
  margin-bottom: var(--space-7);
}

.hero__display {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
  text-wrap: balance;
}

.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text);
  margin-top: var(--space-5);
  max-width: 32rem;
  font-weight: 400;
}

.page-title {
  font-size: var(--fs-h1);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-5);
}

/* Service / talk blocks */
.block {
  margin-top: var(--space-7);
}

.block__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.018em;
  margin-bottom: var(--space-1);
}

.block__subtitle {
  font-size: var(--fs-lead);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.4;
}

.block__field {
  margin-top: var(--space-3);
}

.block__field-label {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline;
  margin-right: var(--space-2);
}

.block__field-label::after {
  content: " ";
}

/* ---------- 8. CTAs & buttons ---------- */
.cta {
  margin-top: var(--space-6);
}

.cta__link {
  display: inline-block;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}

.cta__link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.cta__link--arrow::after {
  content: " →";
  display: inline-block;
  transition: transform 0.15s ease;
}

.cta__link--arrow:hover::after {
  transform: translateX(2px);
}

/* ---------- 9. About page — headshot integration ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
  align-items: start;
}

@media (min-width: 768px) {
  .about-hero {
    grid-template-columns: 280px 1fr;
    gap: var(--space-7);
  }
}

.about-hero__image {
  border-radius: 2px;
  filter: grayscale(100%);
  max-width: 280px;
}

.about-hero__intro h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-4);
}

.about-hero__intro p {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text);
}

/* ---------- 10. Venues list ---------- */
.venues {
  list-style: none;
  margin-top: var(--space-4);
}

.venues li {
  font-size: var(--fs-body);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
}

.venues li:last-child {
  border-bottom: none;
}

/* ---------- 11. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: var(--space-8);
  padding: var(--space-5) 0;
  background: var(--bg);
}

.site-footer__inner {
  max-width: var(--container-page);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer p,
.site-footer a {
  font-size: var(--fs-meta);
  color: var(--text-subtle);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-muted);
}

/* ---------- 12. Closing thesis pattern ---------- */
.thesis {
  text-align: left;
  margin: var(--space-7) 0 var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--rule-strong);
  max-width: var(--container-text);
  margin-left: auto;
  margin-right: auto;
}

.thesis__line {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--text);
  font-weight: 400;
}

/* ---------- 13. Email block ---------- */
.contact-method {
  margin: var(--space-5) 0;
}

.contact-method__label {
  font-size: var(--fs-meta);
  font-weight: 600;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--space-2);
}

.contact-method__value {
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.contact-method__value:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

.contact-method__secondary {
  margin-top: var(--space-3);
  font-size: var(--fs-body);
  color: var(--text-muted);
}

.contact-method__secondary a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-method__secondary a:hover {
  color: var(--text);
}

/* ---------- 14. Responsive type & layout ---------- */
@media (max-width: 640px) {
  :root {
    --fs-display: 2.75rem;
    --fs-h1: 2.25rem;
    --fs-h2: 1.75rem;
    --fs-h3: 1.5rem;
    --fs-body: 1rem;
    --fs-lead: 1.125rem;
  }

  .page {
    padding: var(--space-5) var(--space-4) var(--space-7);
  }

  .site-nav__inner {
    padding: var(--space-3) var(--space-4);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .site-nav__links {
    gap: var(--space-4);
    flex-wrap: wrap;
  }

  .hero__display {
    max-width: 100%;
  }
}

/* ---------- 15. Print ---------- */
@media print {
  .site-nav, .site-footer, .cta { display: none; }
  body { background: white; color: black; }
}
