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

:root {
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --rule: #d9d9d9;
  --max-width: 760px;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  line-height: 1.55;
  font-size: 16px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 72px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
}

.nav {
  display: flex;
  gap: 36px;
}

.nav a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

/* Intro */
.tagline {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 40px;
}

.headline {
  font-size: 26px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 540px;
}

.hero-quote {
  margin: 0 0 32px;
  max-width: 540px;
  padding-left: 16px;
  border-left: 1px solid var(--rule);
}

.hero-quote p {
  font-size: 15px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.5;
}

.subnote {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.divider {
  border: none;
  border-top: 1px solid var(--text);
  margin-bottom: 44px;
}

/* Bio */
.bio p {
  font-size: 15px;
  margin-bottom: 26px;
  max-width: 560px;
}

.bio p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.contact-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.contact-links {
  display: flex;
  gap: 28px;
}

.contact-links a {
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-credit {
  margin-top: 48px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.site-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.site-credit a:hover {
  border-bottom-color: var(--muted);
}

/* Contact form */
.contact-form-section {
  max-width: 560px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: 16px;
}

.form-label:first-of-type {
  margin-top: 0;
}

.form-input,
.form-textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--text);
  padding: 10px 12px;
  width: 100%;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.form-button {
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--text);
  padding: 10px 24px;
  margin-top: 24px;
  cursor: pointer;
  align-self: flex-start;
}

.form-button:hover {
  background: var(--text);
  color: #ffffff;
}

.honeypot {
  display: none;
}

.form-status {
  font-size: 14px;
  margin-top: 16px;
  max-width: 560px;
}

.form-status-error {
  color: #8b0000;
}

.form-status-info {
  color: var(--text);
}

.form-status a {
  color: var(--text);
}

.bio a,
.back-link a {
  font-size: 15px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Portfolio */
.portfolio {
  max-width: 560px;
}

.portfolio-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--rule);
  padding: 20px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.portfolio-item:hover {
  border-color: var(--text);
  background: #fafafa;
}

.portfolio-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin-bottom: 20px;
  background: #f5f5f5;
  border: 1px solid var(--rule);
}

.portfolio-thumb img {
  max-width: 70%;
  height: auto;
}

.portfolio-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.portfolio-body p {
  font-size: 15px;
  line-height: 1.55;
}

.portfolio-details {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.portfolio-detail {
  margin-bottom: 16px;
}

.portfolio-detail:last-child {
  margin-bottom: 0;
}

.portfolio-detail dt {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.portfolio-detail dd {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
}

.portfolio-insight {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.portfolio-insight-label {
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.portfolio-insight p:last-child {
  font-size: 14px;
  font-style: italic;
  line-height: 1.55;
  color: var(--muted);
}

/* Bio page */
.bio-profile {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 560px;
  margin-bottom: 56px;
}

.bio-headshot {
  width: 160px;
  height: 160px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--rule);
  flex-shrink: 0;
}

.bio-intro p {
  font-size: 15px;
  margin-bottom: 26px;
  line-height: 1.55;
}

.bio-intro p:last-child {
  margin-bottom: 0;
}

.bio-cv {
  margin: -24px 0 36px;
}

.bio-cv a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.bio-cv a:hover {
  color: var(--text);
}

.bio-cv-icon {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.press {
  margin-bottom: 56px;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 560px;
}

.press-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.press-item:hover {
  border-color: var(--text);
  background: #fafafa;
}

.press-item img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: #f5f5f5;
  border-bottom: 1px solid var(--rule);
}

.press-title {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  padding: 12px;
}

/* Writing page */
.writing-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 560px;
}

.writing-item {
  display: block;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.writing-item:hover {
  border-color: var(--text);
  background: #fafafa;
}

.writing-thumb {
  border-bottom: 1px solid var(--rule);
  background: #f5f5f5;
  overflow: hidden;
}

.writing-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.writing-body {
  padding: 20px;
}

.writing-title {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.writing-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.writing-desc {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.writing-cta {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 48px;
  }

  .nav {
    gap: 24px;
  }

  .headline {
    font-size: 22px;
  }

  .bio-profile {
    flex-direction: column;
    gap: 24px;
  }

  .bio-headshot {
    width: 140px;
    height: 140px;
  }

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