/* Home and Contact page composition; shared navigation and other pages use site.css. */
.home { --home-muted: #abb3a6; }
[data-theme="light"] .home { --home-muted: #535b4f; }
.home-label { color: var(--honey); margin: 0 0 20px; line-height: 1.8; }
.home-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; padding: 88px 0 72px; }
.home h1 { font-size: clamp(42px, 5.2vw, 68px); line-height: 1.12; letter-spacing: -3px; }
.home h1::after { display: none; }
.home-intro { max-width: 570px; font-size: 23px; line-height: 1.5; margin: 0 0 18px; color: var(--bright); }
.home-description { color: var(--home-muted); max-width: 550px; margin: 0 0 30px; }
.home-hero .home-description { margin-bottom: 0; }
/* Line drawing beside the intro. It's taken out of the layout flow, so the text
   alone sets the row height and the drawing fits inside it, never taller. */
.home-art { position: relative; align-self: stretch; }
.home-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* Light lines on the dark theme, dark lines on the light theme */
.home-art .art-light,
[data-theme="light"] .home-art .art-dark { display: none; }
[data-theme="light"] .home-art .art-light { display: block; }
.home-index { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; border-block: 1px solid var(--line-strong); }
.home-index > span { color: var(--home-muted); }
.home-index a { font: 12px var(--mono); padding: 8px 0; }
.home-index a span { color: var(--honey); margin-left: 12px; }
.home a:hover { color: var(--honey); }
.home a.cta:hover { color: var(--bg); }
.home-section { padding: 80px 0; }
.home-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 32px; }
.home-section-heading > p { max-width: 300px; color: var(--home-muted); margin: 0; }
.home h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.25; }
.home h3 { font: 600 23px/1.35 var(--sans); margin: 0 0 16px; }
.home-feature { display: grid; grid-template-columns: 0.8fr 1.4fr; border: 1px solid var(--line-strong); background: var(--panel); }
.feature-result { padding: 34px; background: var(--honey); color: var(--bg); display: flex; flex-direction: column; justify-content: space-between; }
.feature-result > p { font: 400 clamp(34px, 4vw, 54px)/1.15 var(--mono); letter-spacing: -2px; margin: 28px 0; }
.feature-result p span { display: block; font-size: 34px; margin: 8px 0; opacity: 0.65; }
.feature-result strong { display: block; }
.feature-result > span:last-child { font-size: 13px; }
.feature-copy { padding: 34px 40px; }
.feature-copy .home-label { font-size: 10px; letter-spacing: 1px; }
.feature-copy > p:not(.home-label), .home-work-item > p { color: var(--soft); }
.home-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; padding: 0; }
.home-tags li { padding: 4px 9px; border: 1px solid var(--line-strong); font: 11px/1.6 var(--mono); color: var(--home-muted); }
.home-link { display: inline-block; font: 12px/1.8 var(--mono); border-bottom: 1px solid var(--line-strong); padding: 5px 0; }
.home-link span { color: var(--honey); margin-left: 10px; }
.home-work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }
.home-work-item { display: flex; flex-direction: column; align-items: start; padding: 28px 0 0; border-top: 1px solid var(--line-strong); }
.home-work-item > p { margin: 0 0 20px; }
.home-work-item .home-link { margin-top: auto; }
.home-work-item .home-label { margin-bottom: 16px; }
.home-experience { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 72px; border-top: 1px solid var(--line-strong); }
.home-experience .home-description { margin-top: 22px; }
.home-timeline { list-style: none; padding: 0; margin: 0; }
.home-timeline li { border-bottom: 1px solid var(--line); }
.home-timeline a { display: block; padding: 22px 0; }
.home-timeline li:first-child a { padding-top: 0; }
.home-timeline .small { color: var(--honey); font-size: 10px; }
.home-timeline h3 { font-size: 20px; margin: 9px 0 6px; }
.home-timeline a:hover h3 { color: var(--honey); }
.home-timeline p { color: var(--home-muted); margin: 0; font-size: 14px; }
/* Contact page: intro without the drawing, and outbound link rows */
.contact-hero { grid-template-columns: minmax(0, 1fr); }
.contact-links h3 span { color: var(--honey); font-family: var(--mono); font-size: 16px; margin-left: 6px; }
.contact-links p { overflow-wrap: anywhere; }
.home-closing { display: flex; justify-content: space-between; align-items: center; gap: 36px; padding: 40px 0 60px; border-top: 1px solid var(--line-strong); }
.home-closing h2 { font-size: 24px; }
.home-closing p:last-child { color: var(--home-muted); margin-bottom: 0; }
.home-closing .cta { flex-shrink: 0; }
@media (max-width: 1000px) {
  .home-hero { gap: 32px; grid-template-columns: 1.1fr 1fr; }
  .home h1 { letter-spacing: -2px; }
  .home-experience { gap: 36px; }
  .home-closing { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) {
  .home-hero { grid-template-columns: 1fr; padding: 48px 0 36px; }
  .home-intro { font-size: 21px; }
  /* Stacked layout: no text beside it to match, so give it a modest fixed size */
  .home-art img { position: static; display: block; width: auto; max-width: 100%; height: 300px; margin: 0 auto; }
  .home-index { flex-wrap: wrap; gap: 10px 24px; justify-content: flex-start; }
  .home-index > span { width: 100%; }
  .home-section { padding: 48px 0; }
  .home-section-heading { display: block; }
  .home-section-heading > p { margin-top: 18px; }
  .home-feature, .home-work-grid, .home-experience { grid-template-columns: 1fr; }
  .feature-result, .feature-copy { padding: 26px; }
  .feature-result > p { font-size: 40px; }
  .feature-result p span, .feature-result strong { display: inline; }
  .feature-result p span { display: inline-block; transform: rotate(-90deg); margin: 0 6px; }
  .home-work-grid { gap: 28px; }
  .home-timeline li:first-child a { padding-top: 8px; }
}
