@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Fraunces:ital,wght@0,400;1,400&display=swap");
:root {
  --paper: #f8f3e9;
  --ink: #272036;
  --muted: #64596a;
  --accent: #a83920;
  --line: #d8c9ba;
  --plum: #2d233c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 "DM Sans", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid #d66a40; outline-offset: 5px; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 400; line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(3rem, 7vw, 6.6rem); margin-bottom: .46em; }
h3 { font-size: clamp(1.8rem, 3.2vw, 3rem); margin-bottom: .35em; }
.wrap { width: min(88%, 1240px); margin: auto; }
.bar, .brand, nav, .actions { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.bar { justify-content: space-between; padding-block: 1.15rem; }
.mast .bar { border-bottom: 1px solid var(--line); }
.brand, nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.brand { font-weight: 750; gap: .65rem; }
.brand span { width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--plum); color: var(--paper); border-radius: 50%; font: .68rem ui-monospace, monospace; }
.skip { position: absolute; top: .5rem; left: 1rem; transform: translateY(-180%); padding: .5rem; background: white; z-index: 2; }
.skip:focus { transform: none; }
.hero { overflow: hidden; background: radial-gradient(ellipse at 100% 10%, #efddcf, transparent 52%); }
.hero-grid { display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 7vw, 6.5rem); }
.eyebrow { color: var(--accent); font: 700 .82rem/1.5 ui-monospace, monospace; letter-spacing: .095em; text-transform: uppercase; margin-bottom: 1rem; }
h1 { font-size: clamp(4rem, 10.4vw, 10rem); line-height: .79; margin: .16em 0 .23em; }
h1 em { color: var(--accent); font-weight: 400; }
.intro { font-size: clamp(1.15rem, 2.25vw, 1.48rem); max-width: 35ch; color: var(--muted); }
.actions { margin-top: 1.65rem; gap: .75rem; }
.button { display: inline-flex; align-items: center; min-height: 48px; padding: .65rem 1.25rem; border: 1px solid transparent; border-radius: 100px; font-weight: 700; text-decoration: none; }
.primary { background: var(--accent); color: #fff; }
.primary:hover { background: #842d1e; }
.secondary { border-color: #9e8798; }
.secondary:hover { background: #ecdfd6; }
.portrait { margin: 0; padding: .7rem; border: 1px solid #ae917d; border-radius: 48% 48% 1.25rem 1.25rem / 36% 36% 1.25rem 1.25rem; background: #efdfd1; }
.portrait img { display: block; width: 100%; aspect-ratio: 4 / 4.45; object-fit: cover; object-position: center 38%; background: #dbc4b5; border-radius: 48% 48% .65rem .65rem / 36% 36% .65rem .65rem; }
.portrait figcaption { padding: .65rem .75rem .25rem; font-size: .88rem; color: #534254; }
.brief { background: var(--plum); color: var(--paper); }
.brief .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.brief .wrap > div { padding: 1.4rem min(3vw, 2.4rem); border-left: 1px solid #675773; }
.brief .wrap > div:last-child { border-right: 1px solid #675773; }
.brief strong, .brief small { display: block; }
.brief strong { font: 400 clamp(1.65rem, 4vw, 3rem)/1.05 "Fraunces", Georgia, serif; color: #ffd8b6; margin-bottom: .3rem; }
.brief small { color: #f0e3eb; font-size: .85rem; }
.section { padding-block: clamp(3rem, 8vw, 7rem); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.projects article { padding: clamp(1.25rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: .9rem; background: #fffaf2; }

.featured .eyebrow { color: #ffd8b6; }

.featured p { max-width: 58ch; }
.projects article:not(.featured) p:not(.eyebrow), .timeline p:not(.eyebrow), .skills dd, .contact p { color: var(--muted); }
.tags { margin: 1.25rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .55rem; }
.tags li { border: 1px solid #aa869d; padding: .15rem .65rem; border-radius: 100px; font-size: .85rem; }
.band { background: #f1e6da; border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.25rem, 6vw, 6rem); }
.split h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
.timeline article, .skills div { border-top: 1px solid #c4ab9d; padding: 1rem 0; }
.timeline h3 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.skills { margin-bottom: 1.25rem; }
.skills dt { font-weight: 750; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.email { display: inline-block; margin-top: .7rem; font-weight: 700; overflow-wrap: anywhere; }
footer { background: var(--plum); color: var(--paper); font-size: .9rem; }
@media (max-width: 780px) {
  .hero-grid, .split, .projects { grid-template-columns: 1fr; }
  .portrait { width: min(100%, 29rem); }
}
@media (max-width: 400px) {
  .wrap { width: 91%; }
  .brief .wrap > div { padding-inline: .55rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .mast, footer, .actions, .skip { display: none; }
  .hero-grid, .section { padding-block: 1rem; }
  .projects article, .timeline article { break-inside: avoid; }
}


.architecture { width: 100%; height: auto; display: block; }
.project-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: .7rem; background: #f3e2d7; color: #a83920; margin-bottom: 1.15rem; }
.contact p { max-width: 62ch; }
.contact .contact-address { margin-top: 1rem; overflow-wrap: anywhere; }
.contact-address strong { margin-right: .5rem; color: var(--ink); }
@media (max-width: 820px) {  .architecture { max-width: 32rem; } }

.index-title{font-size:clamp(3rem,8vw,7rem);line-height:.95}.project-index{margin-top:2rem}.project-index h3{font-size:clamp(1.55rem,2.6vw,2.4rem)}.project-index h3 a{text-decoration-thickness:1px}.project-index h3 a:hover{color:var(--accent)}
.button { font: inherit; font-weight: 700; cursor: pointer; }
.button[hidden] { display: none; }
#contact-dialog { position: fixed; inset: 0; margin: auto; width: min(91vw, 29rem); padding: clamp(1.5rem, 6vw, 2.5rem); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 22px 80px #21172755; }
#contact-dialog::backdrop { background: #211727b8; }
#contact-dialog h2 { font-size: clamp(2rem, 7vw, 3rem); margin-right: 1.25rem; }
#contact-dialog p { color: var(--muted); }
.dialog-address { margin-block: .6rem 1.25rem; overflow-wrap: anywhere; font-weight: 700; }
.dialog-close { position: absolute; top: .65rem; right: .65rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.65rem; cursor: pointer; }
.dialog-close:hover { background: #efdfd1; }


h2, .index-title { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.02; }
h3, .project-index h3, .timeline h3 { font-size: clamp(1.65rem, 3vw, 3rem); line-height: 1.06; }
.projects article { padding: clamp(1.35rem, 3vw, 2.4rem); color: var(--ink); }
.projects article > p:not(.eyebrow) { color: var(--muted); }
.eyebrow { font-family: "DM Sans", system-ui, sans-serif; }
@media (min-width: 781px) {
  .projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

#experience .timeline h3, #experience .skills dt, #experience .education h3 {
  font: 400 clamp(1.4rem, 2.1vw, 1.85rem)/1.16 "Fraunces", Georgia, serif;
  letter-spacing: -.025em;
  color: var(--ink);
  margin: 0 0 .5rem;
}
#experience .timeline .eyebrow { margin-bottom: .45rem; }
#experience .timeline article, #experience .skills > div, #experience .education { padding-block: 1.1rem; border-top: 1px solid var(--line); }
#experience .skills { margin-bottom: 0; }
#experience .education p { color: var(--muted); }

#work .projects .featured { grid-column: 1/-1; padding-block: clamp(2rem, 7vw, 5rem); background: linear-gradient(140deg, #2d233c 35%, #653c50); color: #fff6eb; }
#work .projects .featured h3 { font-size: clamp(2.5rem, 6vw, 5.8rem); }
#work .projects .featured { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(1.6rem, 4vw, 3.4rem); }
@media (max-width: 820px) { #work .projects .featured { grid-template-columns: 1fr; } }

@media (min-width: 821px) { #work .projects .featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }

.portrait img { object-position: center top; }
