:root {
  color-scheme: dark;
  --background: #1c241f;
  --ink: #f2f2e9;
  --muted: #b8c0b7;
  --rule: #475249;
  --accent: #d3bd98;
  --gutter: clamp(1.5rem, 5vw, 5rem);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.7 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--background); }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button { font: inherit; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -6rem; left: var(--gutter); z-index: 10; padding: .75rem 1rem; color: var(--background); background: var(--ink); }
.skip-link:focus { top: 1rem; }
.site-frame { min-height: 100svh; max-width: 106rem; padding: 0 var(--gutter); margin-inline: auto; display: flex; flex-direction: column; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 6rem; border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: .875rem; color: var(--ink); text-decoration: none; font-size: 1.0625rem; font-weight: 500; }
.brand h1 { margin: 0; font: inherit; }
.brand img { display: block; width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.masthead nav { display: flex; align-items: center; gap: 2rem; }
.masthead nav a { padding: .5rem 0; color: var(--muted); text-decoration: none; font-size: .875rem; line-height: 1.5; }
.masthead nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); }
.masthead nav a:hover { color: var(--ink); }
main { flex: 1; }
main:focus { outline: none; }
.home-main { padding: 2.75rem 0 3rem; }
.profile { max-width: 58rem; }
.profile::after { content: ''; display: block; clear: both; }
.profile-portrait { float: right; width: 14rem; margin: 0 0 1.5rem 2.5rem; }
.profile-portrait img { display: block; width: 100%; height: auto; border-radius: .75rem; }
.profile-copy p { max-width: 44rem; margin: 0 0 1.125rem; font-size: 1.0625rem; line-height: 1.8; color: var(--muted); }
.profile-copy p:last-child { margin-bottom: 0; }
.profile-copy a:hover { color: var(--accent); }
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .25rem 1.5rem; border-top: 1px solid var(--rule); padding: .75rem 0 max(1.125rem, env(safe-area-inset-bottom)); font-size: .75rem; color: var(--muted); }
.footer-copyright { margin: 0; line-height: 1.5; white-space: nowrap; }
.social-links { display: flex; align-items: center; justify-self: end; gap: .25rem; margin: 0; padding: 0; min-height: 2.75rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; color: var(--muted); }
.social-links a:hover { color: var(--ink); }
.social-links svg { width: 1rem; height: 1rem; }
.interior-main { display: grid; grid-template-columns: minmax(11rem, .62fr) minmax(0, 1.6fr); column-gap: clamp(3rem, 8vw, 8rem); align-items: start; padding: 4rem 0 5rem; }
.interior-heading h1 { font: 400 clamp(2.75rem, 4.5vw, 4rem)/1.1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; letter-spacing: -.025em; margin: 0; }
.contact-content { max-width: 46rem; width: 100%; }
.contact-introduction { max-width: 30rem; margin: 0 0 3rem; font-size: 1.5rem; line-height: 1.55; letter-spacing: -.02em; }
h2 { font-size: .8125rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; line-height: 1.6; margin: 0 0 1rem; }
.email-block { border-top: 1px solid var(--rule); padding-top: 1.375rem; }
.email-address { display: inline-block; font-size: clamp(1.25rem, 2.1vw, 1.875rem); line-height: 1.5; letter-spacing: -.025em; overflow-wrap: anywhere; max-width: 100%; }
.email-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.25rem; font-size: .875rem; }
.email-actions span { color: var(--muted); }
.email-actions button { padding: .5rem .875rem; color: var(--ink); border: 1px solid var(--rule); background: transparent; cursor: pointer; font-size: .875rem; min-height: 2.625rem; }
.email-actions button:hover { border-color: var(--accent); }
.copy-status { margin: .5rem 0 0; min-height: 1.5em; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.text-link { display: inline-block; padding: .5rem 0; font-size: .9375rem; }
@media (min-width: 66.0625rem) {
  .profile { max-width: 66rem; }
}
@media (max-width: 66rem) {
  .profile-portrait { width: 12rem; margin-left: 2rem; }
  .interior-main { grid-template-columns: 10rem minmax(0, 1fr); column-gap: 3rem; }
}
@media (max-width: 45rem) {
  .masthead { min-height: 5rem; gap: 1rem; }
  .brand { gap: .625rem; font-size: .9375rem; }
  .brand img { width: 1.875rem; height: 1.875rem; }
  .masthead nav { gap: 1.25rem; }
  .home-main { padding: 2rem 0 2.5rem; }
  .profile-portrait { width: 7rem; margin: 0 0 1rem 1.25rem; }
  .profile-copy p { font-size: 1rem; line-height: 1.75; }
  .interior-main { display: block; padding: 2.5rem 0 3rem; }
  .interior-heading { margin-bottom: 2.5rem; }
  .interior-heading h1 { font-size: 3rem; }
  .contact-introduction { font-size: 1.25rem; margin-bottom: 2rem; }
  .email-address { font-size: 1.3125rem; }
  .site-footer { grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  .footer-copyright { grid-column: 1; grid-row: 1; }
  .social-links { grid-column: 2; grid-row: 1; }
}
@media (max-width: 25rem) {
  .masthead { align-items: flex-start; flex-direction: column; justify-content: center; gap: .5rem; padding: 1rem 0 .5rem; }
  .masthead nav { gap: 1.5rem; }
}
@media (max-width: 23rem) {
  :root { --gutter: 1.25rem; }
  .profile-portrait { width: 5.5rem; margin-left: 1rem; }
  .email-address { font-size: 1.1875rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
