/*
Theme Name: Karina Hopanko Quiet Space
Author: Karina Hopanko Studio
Description: Minimal architecture studio portfolio.
Version: 2.0
*/

:root {
  --paper: #f4f2ed;
  --white: #fbfaf7;
  --ink: #1d211e;
  --muted: #777a71;
  --line: #d5d3ca;
  --clay: #b7a69a;
  --moss: #677269;
  --serif: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }

.site-header, .site-footer { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; max-width: 1440px; margin: auto; padding: 28px clamp(24px, 5vw, 72px); }
.site-header { border-bottom: 1px solid var(--line); }
.wordmark { font-size: 18px; letter-spacing: .08em; text-decoration: none; text-transform: lowercase; }
.wordmark-dot { color: var(--clay); }
.header-note, .header-link, .site-footer { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.header-note { margin: 0; text-align: center; }
.header-link { text-align: right; text-decoration: none; }
.header-link span, .contact-form button span { margin-left: 8px; color: var(--clay); }
.hero, .statement, .works, .contact { max-width: 1440px; margin: auto; padding-left: clamp(24px, 8vw, 130px); padding-right: clamp(24px, 8vw, 130px); }
.hero { min-height: 760px; display: grid; grid-template-columns: 42% 58%; grid-template-rows: 1fr auto; position: relative; padding-top: clamp(90px, 12vw, 170px); padding-bottom: 44px; }
.hero-index, .section-number { color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero-index { position: absolute; top: 40px; right: clamp(24px, 8vw, 130px); }
.hero-index span { padding: 0 8px; color: var(--clay); }
.hero-copy { align-self: center; position: relative; z-index: 1; }
.eyebrow { margin: 0 0 28px; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.055em; line-height: .91; }
h1 { margin-bottom: 38px; font-size: clamp(70px, 9.5vw, 150px); }
h1 em, h2 em { color: var(--clay); font-style: italic; }
.hero-intro { max-width: 310px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.hero-art { width: min(100%, 610px); aspect-ratio: 1 / 1.12; justify-self: end; position: relative; background: #e5e2d9; overflow: hidden; }
.art-plane { position: absolute; }
.art-plane-back { inset: 0 0 34% 22%; background: #d1cbc0; }
.art-plane-front { right: 0; bottom: 0; width: 67%; height: 65%; background: var(--white); border-left: 1px solid #c8c5bb; border-top: 1px solid #c8c5bb; }
.art-shadow { position: absolute; right: 24%; bottom: 15%; width: 48%; height: 38%; background: rgba(110, 104, 93, .12); transform: skewY(-32deg); filter: blur(18px); }
.art-label { position: absolute; bottom: 18px; left: 20px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; width: fit-content; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; }
.scroll-line { display: block; width: 44px; height: 1px; background: var(--ink); }

.statement { display: grid; grid-template-columns: 42% 58%; padding-top: clamp(120px, 17vw, 250px); padding-bottom: clamp(130px, 17vw, 250px); border-top: 1px solid var(--line); }
.section-number { margin: 5px 0 0; }
h2 { margin-bottom: 36px; font-size: clamp(53px, 7vw, 105px); }
.statement-copy { max-width: 360px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }

.works { padding-top: 42px; padding-bottom: clamp(130px, 18vw, 270px); border-top: 1px solid var(--line); }
.works-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 72px; }
.works-head h2 { margin: 0; font-size: clamp(42px, 5vw, 74px); }
.work-grid { display: grid; grid-template-columns: 1.35fr .8fr .95fr; align-items: end; gap: clamp(22px, 4vw, 68px); }
.work-visual { position: relative; overflow: hidden; background: #dad6cb; }
.work-visual span { position: absolute; top: 16px; left: 16px; z-index: 2; color: var(--muted); font-size: 11px; }
.work-large .work-visual { aspect-ratio: .86; }
.work-small .work-visual { aspect-ratio: .72; margin-bottom: 76px; }
.work-medium .work-visual { aspect-ratio: .86; margin-bottom: 34px; }
.visual-courtyard { background: #c2beb1; }
.visual-courtyard::before { content: ""; position: absolute; inset: 13% 12% 0 0; background: var(--paper); }
.visual-courtyard::after { content: ""; position: absolute; left: 16%; bottom: 0; width: 48%; height: 63%; background: #aaa99c; border-right: 10px solid rgba(80, 78, 69, .15); }
.visual-courtyard i { position: absolute; z-index: 1; right: 20%; top: 18%; width: 28%; height: 29%; background: var(--moss); opacity: .7; }
.visual-shelf { background: #b6a397; }
.visual-shelf::before, .visual-shelf::after { content: ""; position: absolute; left: 21%; width: 63%; height: 1px; background: #6d655c; }
.visual-shelf::before { top: 39%; }.visual-shelf::after { top: 63%; }
.visual-shelf i { position: absolute; left: 43%; top: 22%; width: 23%; height: 58%; border-left: 1px solid #6d655c; border-right: 1px solid #6d655c; }
.visual-white { background: #e5e2d9; }
.visual-white::before { content: ""; position: absolute; inset: 20% 18% 0 18%; background: var(--white); }
.visual-white::after { content: ""; position: absolute; right: 18%; bottom: 0; width: 38%; height: 48%; background: #cbc6bb; transform: skewY(-25deg); transform-origin: bottom right; }
.work-meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.work-meta h3, .work-meta p { margin: 0; font-size: 12px; font-weight: 400; }
.work-meta p { color: var(--muted); text-align: right; }

.contact { display: grid; grid-template-columns: 42% 58%; gap: 0; padding-top: 48px; padding-bottom: 150px; border-top: 1px solid var(--line); }
.contact-intro h2 { margin-top: 80px; }
.contact-intro > p:not(.section-number) { max-width: 300px; color: var(--muted); line-height: 1.7; }
.contact-email { display: inline-block; margin-top: 22px; font-family: var(--serif); font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--ink); }
.contact-form { align-self: end; display: grid; gap: 30px; padding-left: 12%; }
.contact-form label { display: grid; gap: 9px; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.contact-form input, .contact-form textarea { width: 100%; padding: 11px 0; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--ink); }
.contact-form button { width: fit-content; padding: 0 0 8px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer a { text-align: right; text-decoration: none; }

@media (max-width: 760px) {
  .site-header, .site-footer { grid-template-columns: 1fr 1fr; gap: 20px; }
  .header-note { display: none; }
  .header-link { grid-column: 2; }
  .hero { min-height: auto; display: block; padding-top: 100px; }
  .hero-index { top: 28px; }
  .hero-copy { margin-bottom: 68px; }
  h1 { font-size: clamp(64px, 18vw, 100px); }
  .hero-art { width: 100%; }
  .scroll-cue { margin-top: 36px; }
  .statement, .contact { display: block; }
  .statement > div, .contact-intro h2 { margin-top: 70px; }
  .works-head { display: block; margin-bottom: 42px; }
  .works-head h2 { margin-top: 42px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .work-large { grid-column: 1 / -1; }
  .work-small .work-visual, .work-medium .work-visual { margin-bottom: 0; }
  .work-meta { display: block; }
  .work-meta p { margin-top: 5px; text-align: left; }
  .contact-form { margin-top: 70px; padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }