@font-face { font-family: "Lora"; src: url("fonts/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-latin-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --vanilla: #F8F4EE;
  --dune: #E4DDCC;
  --taupe: #C5B49D;
  --umber: #443A35;
  --black: #252525;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--vanilla);
  color: var(--black);
  font-family: "Lora", Georgia, serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--taupe); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-color: var(--black); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 40px; }

/* header */
.site-header { display: flex; justify-content: space-between; align-items: baseline; padding: 32px 0 0; }
.site-header .name { font-size: 21px; text-decoration: none; }
.site-header nav a { margin-left: 28px; font-size: 17px; text-decoration: none; color: var(--umber); }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--black); text-decoration: underline; text-decoration-color: var(--taupe); }

main { padding: 112px 0 120px; }

/* type */
.display {
  font-weight: 400; font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.08; letter-spacing: -0.012em; margin: 0; max-width: 14.5em;
}
.display em { font-style: italic; }
h1 { font-weight: 400; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 40px; }
h2 { font-weight: 400; font-style: italic; font-size: 24px; margin: 56px 0 12px; }
p { margin: 0 0 22px; }
.prose { max-width: 34em; }
.small { font-size: 16px; color: var(--umber); }
.more { font-size: 20px; }

/* home */
.intro { display: grid; grid-template-columns: 340px 1fr; gap: 64px; margin-top: 88px; align-items: start; }
.intro img { width: 100%; }

/* project index */
.index-lede { max-width: 30em; margin-bottom: 64px; }
.projects { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--taupe); }
.projects li { border-top: 1px solid var(--taupe); }
.projects a {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: baseline;
  padding: 30px 0 32px; text-decoration: none;
}
.projects .t { font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; transition: transform .35s ease; }
.projects .d { font-style: italic; color: var(--umber); font-size: 19px; }
.projects a:hover .t { transform: translateX(14px); }
.projects a:hover .d { color: var(--black); }

/* detail */
.crumb { font-size: 16px; color: var(--umber); margin-bottom: 28px; display: inline-block; }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 56px 0 16px; max-width: 900px; }
.shots img { border-radius: 14px; }
.shots figure { margin: 0; }
.shots figcaption { font-size: 15px; font-style: italic; color: var(--umber); margin-top: 10px; }
ul.plain { padding-left: 1.1em; margin: 0 0 24px; }
ul.plain li { margin-bottom: 12px; }
.logo { width: 220px; mix-blend-mode: multiply; margin: -20px 0 24px -24px; }
.next { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--taupe); display: flex; justify-content: space-between; font-size: 17px; }

/* footer */
.site-footer { border-top: 1px solid var(--taupe); padding: 24px 0 40px; display: flex; justify-content: space-between; font-size: 15px; color: var(--umber); }
.site-footer a { text-decoration: none; }

@media (max-width: 760px) {
  .wrap { padding: 0 22px; }
  .site-header { flex-direction: column; gap: 8px; padding-top: 24px; }
  .site-header nav a { margin: 0 20px 0 0; }
  main { padding: 64px 0 80px; }
  .intro { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .intro img { max-width: 300px; }
  .projects a { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
  .shots { grid-template-columns: 1fr 1fr; }
  .site-footer { flex-direction: column; gap: 6px; }
}

/* good idea ledger */
.ledger { margin-top: 56px; }
.ledger .t { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; }
.ledger-after { margin-top: 24px; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 32px; margin-top: 64px; }
.gallery a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 340px; padding: 48px 56px; text-decoration: none;
  background: var(--umber); color: var(--vanilla); transition: background .25s ease;
}
.gallery a:hover { background: var(--black); }
.gallery .gt { font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; margin-bottom: 16px; }
.gallery .gd { font-size: 17px; line-height: 1.6; color: var(--dune); max-width: 24em; }
.gallery .go { margin-top: 24px; font-size: 15px; color: var(--taupe); }
.gallery a:hover .go { color: var(--vanilla); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; gap: 20px; } .gallery a { min-height: 0; padding: 40px 28px; } }

@font-face { font-family: "Pen"; src: url("fonts/nanum-pen-script-latin-400-normal.woff2") format("woff2"); font-display: swap; }

/* projects: banner */
.banner {
  display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: center;
  background: var(--umber); color: var(--vanilla);
  margin: -48px calc(50% - 50vw) 0; padding: 72px max(40px, calc(50vw - 520px));
}
.banner h1 { margin: 0 0 20px; font-weight: 600; }
.banner-tag { font-style: italic; font-size: 22px; color: var(--taupe); margin-bottom: 20px; }
.banner p:last-child { max-width: 30em; font-size: 22px; line-height: 1.5; margin: 0; color: var(--dune); }
.banner-logo { width: 100%; filter: invert(1); mix-blend-mode: screen; opacity: .92; }
.path-sketch .branch { stroke-width: 2; }

/* projects: sketch + work list */
.work { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; margin-top: 96px; align-items: stretch; }
.work-list { display: flex; flex-direction: column; }
.work-list a { flex: 1; flex-direction: column; flex-wrap: nowrap; justify-content: center; align-items: flex-start; gap: 10px; }
.work-list a:first-of-type { border-top: 1px dashed var(--taupe); }
.work-list .wd { text-align: left; }
.path-sketch .spur { stroke-dasharray: 6 7; }
.sketch { margin: 0; }
.path-sketch { width: 100%; height: auto; overflow: visible; }
.path-sketch .ink { fill: none; stroke: var(--umber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.path-sketch .dots circle { fill: var(--umber); stroke: none; }
.path-sketch .hand text { font-family: "Pen", cursive; font-size: 27px; fill: var(--black); }
.path-sketch .hand .aside { font-size: 22px; fill: var(--umber); }
.path-sketch .hand .big { font-size: 34px; }
.sketch figcaption { font-size: 15px; font-style: italic; color: var(--umber); margin-top: 12px; }

.work-label { font-style: normal; font-weight: 600; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--umber); margin: 8px 0 8px; }
.work-list a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding: 28px 0 22px; border-bottom: 1px dashed var(--taupe); text-decoration: none;
}
.work-list .wt { font-weight: 500; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; color: #8a7d72; transition: color .2s; max-width: 16em; }
.work-list .wd { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--umber); text-align: right; }
.work-list a:hover .wt { color: var(--black); }

@media (max-width: 860px) {
  .banner { grid-template-columns: 1fr; gap: 24px; padding: 48px 22px; }
  .banner-logo { width: 220px; }
  .work { grid-template-columns: 1fr; gap: 56px; margin-top: 64px; }
  .work-list a { flex: none; }
  .work-list .wd { text-align: left; }
}
.work-list a { justify-content: center; flex-wrap: nowrap; padding: 20px 0; }
@media (max-width: 860px) { .work-list a { padding: 24px 0; } }

/* detail pages */
.banner-plain { grid-template-columns: 1fr; }
.banner-plain h1 { margin-bottom: 12px; }
.banner-plain p { font-size: 22px; font-style: italic; color: var(--taupe); margin: 0; }
.crumb-light { color: var(--dune); margin-bottom: 20px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; margin-top: 88px; align-items: start; }
.detail-grid .prose { max-width: none; }
.wire-sketch { width: 100%; height: auto; }
.wire-sketch .ink { fill: none; stroke: var(--umber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wire-sketch .box { fill: var(--vanilla); }
.wire-sketch text { font-family: "Pen", cursive; font-size: 24px; fill: var(--black); }
.wire-sketch .note { font-size: 22px; fill: var(--umber); }
.next { align-items: baseline; }
@media (max-width: 860px) {
  .detail-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 56px; }
  .next { flex-wrap: wrap; gap: 12px; }
}
.detail-grid { align-items: stretch; }
.detail-side { display: flex; align-items: center; justify-content: center; }
.detail-side .wire-sketch { width: 100%; height: auto; }

ul.resume { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px dashed var(--taupe); }
ul.resume li { padding: 18px 0; margin: 0; border-bottom: 1px dashed var(--taupe); }
ul.resume strong { display: block; font-weight: 600; font-size: 20px; margin-bottom: 4px; }
.wire-sketch .thin { stroke-width: 1.2; }
.phones { position: relative; width: 100%; height: 100%; min-height: 560px; }
.phones img { position: absolute; height: 88%; width: auto; border-radius: 22px; box-shadow: 0 0 0 1px rgba(37,37,37,.12); }
.phones .ph1 { top: 0; left: 4%; }
.phones .ph2 { bottom: 0; right: 4%; }
@media (max-width: 860px) {
  .phones { min-height: 0; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .phones img { position: static; height: auto; width: 100%; }
}
.board .string { stroke-width: 1.6; }
.board .pin { fill: var(--umber); }
.board .box { fill: var(--vanilla); }
.detail-grid ul.resume { margin-bottom: 0; }
.flow .spur { stroke-dasharray: 6 7; }

/* ---- compact pass: less scrolling ---- */
body { font-size: 17px; line-height: 1.6; }
.site-header { padding-top: 22px; }
main { padding: 36px 0 56px; }
.display { font-size: clamp(34px, 4.2vw, 54px); }
h1 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 20px; }
.intro { margin-top: 40px; grid-template-columns: 280px 1fr; gap: 48px; }
.intro p { margin-bottom: 16px; }

.banner { margin: 0; padding: 32px 40px; grid-template-columns: 180px minmax(0,1fr); gap: 40px; border-radius: 2px; }
.banner h1 { margin: 0 0 10px; font-size: clamp(28px, 3vw, 40px); }
.banner p:last-child { font-size: 18px; line-height: 1.55; }
.banner-plain { padding: 28px 40px; }
.banner-plain p { font-size: 18px; }
.crumb-light { margin-bottom: 10px; font-size: 15px; }

.work { margin-top: 40px; gap: 48px; }
.work-label { margin: 0 0 6px; }
.work-list .wt { font-size: clamp(22px, 2.1vw, 28px); }
.work-list .wd { font-size: 12px; }
.path-sketch .hand text { font-size: 29px; }

.detail-grid { margin-top: 40px; gap: 48px; }
ul.resume li { padding: 12px 0; }
ul.resume strong { font-size: 18px; margin-bottom: 2px; }

.site-footer { display: block; padding: 22px 0 28px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; font-size: 15px; }
.footer-nav a { color: var(--black); text-decoration: underline; text-decoration-color: var(--taupe); text-underline-offset: 4px; }
.footer-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }

@media (max-width: 860px) {
  .banner, .banner-plain { padding: 26px 22px; grid-template-columns: 1fr; gap: 16px; }
  .banner-logo { width: 150px; }
  .intro { grid-template-columns: 1fr; }
}
.banner.banner-plain { grid-template-columns: 1fr; }

/* projects dropdown in the top menu */
.site-header nav { display: flex; align-items: baseline; }
.has-sub { position: relative; display: inline-block; }
.has-sub .sub {
  display: none; position: absolute; right: 0; top: 100%; z-index: 20;
  min-width: 300px; padding: 10px 0; margin-top: 6px;
  background: var(--vanilla); border: 1px solid var(--taupe); border-radius: 2px;
}
.has-sub .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.site-header nav .has-sub .sub a { display: block; margin: 0; padding: 8px 18px; color: var(--black); text-decoration: none; font-size: 16px; }
.site-header nav .has-sub .sub a:hover { background: var(--dune); }
@media (max-width: 760px) { .has-sub .sub { right: auto; left: 0; } }

/* mobile menu */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .site-header { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: none; border: 0; padding: 8px 0; cursor: pointer;
    font: 400 17px "Lora", Georgia, serif; color: var(--black);
  }
  .menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
  .menu-btn .bars i { display: block; width: 20px; height: 1.5px; background: var(--black); }
  #site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; margin-top: 14px; border-top: 1px solid var(--taupe); }
  #site-nav.open { display: flex; }
  #site-nav > a, #site-nav .has-sub > a { display: block; margin: 0; padding: 12px 0; border-bottom: 1px solid var(--dune); font-size: 18px; color: var(--black); }
  #site-nav .has-sub { display: block; }
  #site-nav .has-sub .sub { display: block; position: static; min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
  #site-nav .has-sub .sub::before { display: none; }
  #site-nav .has-sub .sub a { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--dune); font-size: 16px; color: var(--umber); }
  #site-nav .has-sub .sub a:hover { background: none; }
}
