@import url('https://fonts.googleapis.com/css2?family=Fredericka+the+Great&family=Caveat:wght@700&family=Barlow:wght@100;400;500;600;700&display=swap');

:root {
  --teal: oklch(0.78 0.09 174);
  --peach: oklch(0.92 0.05 60);
  --cream: oklch(0.99 0.004 60);
  --ink: oklch(0.2 0.015 60);
  --muted: oklch(0.55 0.01 60);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Barlow', sans-serif; background: var(--cream); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--ink); }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 24px 56px; background: #fff; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark { width: 38px; height: 38px; object-fit: contain; }
.logo-word { font-family: 'Fredericka the Great'; font-size: 19px; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 18px; font-family: 'Fredericka the Great'; font-size: 15px; letter-spacing: 0.04em; }
.nav a { color: var(--ink); }
.nav a.active { color: var(--teal); }
.nav .divider { color: var(--muted); }

/* Hero */
.hero { position: relative; background: #fff; min-height: 620px; overflow: hidden; }
.hero-portrait-wrap { position: absolute; top: 0; right: 0; width: 45%; height: 100%; overflow: hidden; }
.hero-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 92%, transparent 100%); }
.hero-text { position: absolute; top: 45%; left: 30%; transform: translate(-50%, -50%) rotate(-35deg); transform-origin: center center; display: flex; align-items: flex-start; gap: 0; z-index: 2; }
.hero-greeting { display: flex; flex-direction: column; flex-shrink: 0; }
.hero-greeting div { font-family: 'Fredericka the Great'; font-size: clamp(45px, 4.2vw, 65px); line-height: 1.1; color: var(--ink); white-space: nowrap; }
.hero-caption-group { display: flex; align-items: flex-start; height: 210px; gap: 16px; }
.hero-caption { writing-mode: vertical-rl; line-height: 1.1; width: 18px; flex-shrink: 0; font-family: 'Barlow'; font-weight: 600; font-size: 10px; letter-spacing: 0.14em; color: var(--ink); white-space: nowrap; }
.hero-script { writing-mode: vertical-rl; line-height: 1.1; width: 40px; flex-shrink: 0; font-family: 'Barlow'; font-weight: 100; font-size: 49px; color: var(--teal); white-space: nowrap; }

/* Work history */
.work-history { background: var(--teal); color: #fff; padding: 88px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.work-history-text h2 { font-family: 'Fredericka the Great'; font-size: clamp(30px, 4vw, 44px); font-weight: 400; margin-bottom: 20px; }
.work-history-text h3 { font-family: 'Fredericka the Great'; font-size: clamp(26px, 3.2vw, 36px); font-weight: 400; line-height: 1.35; margin-bottom: 28px; }
.work-history-text p { font-size: 18px; line-height: 1.85; opacity: 0.92; max-width: 480px; }
.rule { width: 160px; height: 14px; background: #fff; opacity: 0.9; transform: rotate(-1.5deg); margin-bottom: 28px; }
.clippings { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.clip { border-radius: 8px; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.2)); object-fit: contain; width: 100%; }
.clip-big { grid-row: 1 / 3; min-height: 340px; filter: drop-shadow(0 10px 24px rgba(0,0,0,0.22)); }
.clip-side { display: flex; flex-direction: column; gap: 18px; }
.clip-side .clip-row .clip { height: 140px; object-fit: contain; background: rgba(255,255,255,0.15); border-radius: 8px; }
.clip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Skills */
.skills { background: var(--peach); padding: 88px 56px; }
.skills-heading { display: flex; align-items: center; gap: 32px; margin-bottom: 56px; }
.skills-heading h2 { font-family: 'Fredericka the Great'; font-size: clamp(30px, 4vw, 44px); font-weight: 400; color: var(--ink); }
.skills-heading .rule { flex: 1; height: 1px; width: auto; background: var(--ink); opacity: 0.6; transform: none; margin: 0; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.skill-title { font-family: 'Fredericka the Great'; font-size: 20px; color: var(--ink); margin-bottom: 8px; min-height: 52px; }
.skill p { font-size: 18px; line-height: 1.7; color: var(--ink); opacity: 0.75; }

/* Contact CTA (home) */
.contact-cta { background: var(--teal); color: #fff; padding: 120px 56px; position: relative; overflow: hidden; min-height: 420px; }
.contact-cta h2 { font-family: 'Fredericka the Great'; font-size: clamp(30px, 4vw, 44px); font-weight: 400; margin-left: 40px; position: relative; z-index: 1; }
.contact-cta p { font-family: 'Barlow'; font-size: 18px; line-height: 1.75; max-width: 480px; margin: 20px 0 0 40px; opacity: 0.92; position: relative; z-index: 1; }
.contact-cta-img { position: absolute; left: 0; bottom: 0; width: 400px; z-index: 1; }
.btn.pill { display: inline-flex; align-items: center; gap: 12px; background: var(--peach); color: var(--ink); padding: 16px 32px; border-radius: 999px; font-family: 'Barlow'; font-weight: 600; font-size: 15px; position: relative; z-index: 1; float: right; margin-top: 64px; }

/* Page header (blog/podcasts/contact) */
.page-header { padding: 80px 56px 64px; }
.page-header.teal { background: var(--teal); color: #fff; }
.page-header.peach { background: var(--peach); color: var(--ink); }
.page-header .script { font-family: 'Fredericka the Great'; font-size: 32px; margin-bottom: 8px; opacity: 0.8; }
.page-header.peach .script { color: var(--teal); opacity: 1; }
.page-header h1 { font-family: 'Fredericka the Great'; font-size: clamp(36px, 5vw, 58px); font-weight: 400; }
.page-header p { font-size: 18px; max-width: 640px; margin-top: 16px; opacity: 0.85; line-height: 1.8; }
.page-header a { color: inherit; text-decoration: underline; }

/* Lists (blog + podcasts) */
.list { padding: 64px 56px; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; }
.list-item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid rgba(0,0,0,0.08); align-items: baseline; color: var(--ink); }
.list-item.podcast { grid-template-columns: 96px 1fr auto; align-items: center; }
.ep-cover:empty { background: linear-gradient(135deg, var(--peach), var(--cream)); }
.ep-cover { width: 96px; height: 96px; border-radius: 8px; object-fit: cover; }
.ep-meta { font-size: 18px; font-weight: 600; letter-spacing: 0.05em; color: var(--teal); margin-bottom: 6px; }
.podcast-listen { justify-self: end; white-space: nowrap; }
.list-item time { font-size: 18px; color: var(--muted); }
.list-title { font-family: 'Fredericka the Great'; font-size: 28px; font-weight: 400; margin-bottom: 8px; color: var(--ink); }
.list-excerpt { font-size: 18px; color: var(--ink); opacity: 0.7; line-height: 1.7; }

/* Blog post */
.post { max-width: 720px; margin: 0 auto; padding: 48px 24px 64px; }
.post-hero { width: 100%; height: 420px; object-fit: cover; margin-bottom: 32px; }
.post-category { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.post-title { font-family: 'Fredericka the Great'; font-size: clamp(32px, 4.6vw, 46px); font-weight: 400; line-height: 1.2; margin-bottom: 18px; }
.post-meta { display: flex; gap: 10px; font-size: 14px; color: var(--muted); padding-bottom: 28px; border-bottom: 1px solid rgba(0,0,0,0.08); margin-bottom: 32px; }
.prose { font-size: 17px; line-height: 1.85; max-width: 65ch; }
.prose p { margin-bottom: 20px; }
.prose img { width: 100%; border-radius: 8px; margin: 24px 0; }

/* Contact page */
.contact-grid { padding: 64px 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; max-width: 1100px; margin: 0 auto; }
.contact-grid h2 { font-family: 'Fredericka the Great'; font-size: 26px; font-weight: 400; margin-bottom: 16px; }
.contact-method { margin-bottom: 24px; }
.contact-method .label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--teal); margin-bottom: 4px; }
.contact-form { background: var(--peach); border-radius: 16px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 13px; font-weight: 600; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.15); font-family: 'Barlow'; font-size: 14px; background: #fff; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: none; padding: 13px 28px; border-radius: 999px; font-family: 'Barlow'; font-weight: 600; font-size: 14px; cursor: pointer; }

.site-footer { background: #fff; padding: 24px 56px; text-align: center; font-size: 12px; color: var(--muted); border-top: 1px solid rgba(0,0,0,0.06); }

@media (max-width: 860px) {
  .work-history, .contact-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }

  .hero { min-height: auto; display: flex; flex-direction: column; align-items: center; padding: 40px 20px; }
  .hero-text {
    position: static; transform: none; order: 1;
    display: flex; flex-direction: column; align-items: flex-start;
    text-align: left; width: 100%;
  }
  .hero-greeting { order: 1; }
  .hero-greeting div { font-size: clamp(30px, 8vw, 44px); white-space: normal; line-height: 1.15; }
  .hero-caption-group { order: 2; display: flex; flex-direction: column; height: auto; margin-top: 14px; gap: 6px; }
  .hero-script { order: 1; writing-mode: horizontal-tb; width: auto; white-space: normal; font-size: 32px; }
  .hero-caption { order: 2; writing-mode: horizontal-tb; width: auto; white-space: normal; }
  .hero-portrait-wrap {
    order: 3; position: static; width: 160px; height: 160px;
    margin: 20px 0 0; border-radius: 50%; overflow: hidden;
  }
  .hero-portrait { border-radius: 50%; }

  .contact-cta { display: flex; flex-direction: column; }
  .contact-cta h2 { order: 0; margin-left: 0; }
  .contact-cta p { order: 1; margin-left: 0; }
  .btn.pill { order: 2; float: none; position: static; display: inline-flex; margin: 24px 0 0; }
  .contact-cta-img { order: 3; position: static; width: 60vw; max-width: 260px; margin: 24px auto 0; }

  .list-item { grid-template-columns: 1fr; gap: 8px; }
  .list-item.podcast { grid-template-columns: 72px 1fr; align-items: center; gap: 16px; }
  .ep-cover { width: 72px; height: 72px; }
  .list-title { font-size: 22px; }
  .list-item .btn.pill, .podcast-listen { margin-top: 12px; }
}

@media (max-width: 640px) {
  .site-header { padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
  .nav { font-size: 13px; gap: 10px; }
  .logo-word { font-size: 16px; }

  .work-history, .skills, .contact-cta, .page-header, .list, .contact-grid, .post {
    padding: 40px 20px;
  }
  .clippings { grid-template-columns: 1fr; }
  .clip-big { grid-row: auto; min-height: 220px; }
  .clip-row { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; gap: 24px; }
}
