:root {
  color-scheme: dark;
  --background: #191919;
  --surface: #222;
  --surface-hover: #333;
  --line: rgba(255, 255, 255, .36);
  --line-soft: rgba(255, 255, 255, .18);
  --text: rgba(255, 255, 255, .85);
  --muted: rgba(255, 255, 255, .6);
  --faint: rgba(255, 255, 255, .4);
  --form-surface: #252525;
  --form-text: #ededed;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { display: flex; flex-direction: column; min-width: 320px; min-height: 100svh; margin: 0; background: var(--background); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 20; padding: 10px 14px; background: #fff; color: #191919; }
.skip-link:focus { top: 12px; }

.site-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin: 0 8px; padding: 8px 0 7px; border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-chip { display: inline-block; padding: 6px 9px 5px; border-radius: 3px; background: var(--surface); font-size: 14px; font-weight: 500; line-height: 1.1; text-decoration: none; }
a.nav-chip:hover { background: var(--surface-hover); }
.nav-chip-current { background: #444; }
.header-index { padding: 6px 8px; font-size: 12px; color: var(--faint); white-space: nowrap; }

.page-content { display: flex; flex: 1; flex-direction: column; justify-content: center; width: 100%; max-width: 110rem; margin: 0 auto; padding: clamp(1rem, 3vh, 2rem) clamp(1.25rem, 4vw, 4.375rem); }
.panel-heading, .site-footer { display: flex; justify-content: space-between; gap: 1.25rem; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: end; padding: clamp(.75rem, 2.5vh, 1.75rem) 0 clamp(1.5rem, 3vh, 2.5rem); }
h1 { margin: 0; font-size: clamp(4.2rem, min(7.6vw, 12vh), 7rem); font-weight: 650; line-height: .9; letter-spacing: -.065em; text-wrap: balance; }
.period { color: #fff; }
.intro p { max-width: 37.5rem; margin: 0 0 .4rem; font-size: clamp(1.25rem, min(2.4vw, 3.5vh), 2rem); font-weight: 450; line-height: 1.12; letter-spacing: -.025em; text-wrap: pretty; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(17.5rem, .75fr); gap: clamp(1.75rem, 5vw, 5rem); align-items: start; }
.form-panel { padding: clamp(1.25rem, 2.5vh, 2rem) clamp(1.5rem, 3vw, 2.75rem); border: 1px solid #4b4b4b; border-radius: 5px; background: var(--form-surface); color: var(--form-text); }
.direct-panel { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.panel-heading { align-items: baseline; margin-bottom: 1rem; font-size: .875rem; }
.panel-heading h2 { margin: 0; font-size: inherit; font-weight: 500; }
.form-panel .panel-heading { margin-bottom: .5rem; align-items: start; }
.form-panel .panel-heading h2 { font-size: clamp(1.625rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; }
.form-intro { margin: 0 0 clamp(.75rem, 2vh, 1.125rem); color: #c8c8c8; font-size: 1rem; line-height: 1.4; }
.field + .field { margin-top: clamp(.625rem, 1.5vh, 1rem); }
.field label { display: block; margin-bottom: .3rem; color: #ededed; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.required-mark { color: #ff7773; }
.field input, .field textarea { display: block; width: 100%; min-height: clamp(2.75rem, 5.5vh, 3.25rem); padding: .65rem .9rem; border: 1px solid #888; border-radius: 4px; background: #363636; color: #fff; font-size: 1rem; font-weight: 400; line-height: 1.4; resize: vertical; transition: border-color .15s ease, background-color .15s ease; }
.field input:hover, .field textarea:hover { border-color: #c5c5c5; background: #3b3b3b; }
.field input:focus-visible, .field textarea:focus-visible { border-color: #fff; outline: 2px solid #fff; outline-offset: 2px; }
.field input::placeholder, .field textarea::placeholder { color: #bdbdbd; opacity: 1; }
.field textarea { height: clamp(5.5rem, 11vh, 7rem); min-height: 5.5rem; }
.form-bottom { margin-top: clamp(.875rem, 2vh, 1.25rem); }
.submit-button { display: inline-flex; justify-content: center; align-items: center; min-height: 3rem; min-width: 10rem; padding: .7rem 1.5rem; border: 1px solid #ededed; border-radius: 4px; background: #ededed; color: #191919; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.submit-button:hover:not(:disabled) { background: #fff; }
.submit-button:focus-visible { outline-color: #fff; outline-offset: 3px; }
.submit-button:disabled { opacity: .5; cursor: not-allowed; }
.form-status { margin: 16px 0 0; padding: 12px 14px; border: 1px solid #cd7474; border-radius: 4px; background: #452525; color: #fff; font-size: 14px; line-height: 1.4; }
.form-status:empty { display: none; }
.form-status[data-state="loading"] { border-color: #888; background: #333; color: #ededed; }
.form-success { padding: 45px 0 24px; border-top: 1px solid #555; }
.form-success[hidden] { display: none; }
.form-success > span { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; border-radius: 50%; background: #ededed; color: #191919; font-size: 26px; }
.form-success h3 { margin: 0 0 12px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; }
.form-success p { margin: 0; color: #c8c8c8; font-size: 16px; line-height: 1.4; }
.email-link { display: block; padding: 9px 0 0; font-size: clamp(20px, 2vw, 30px); letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere; }
.email-link:hover { color: #fff; }
.direct-panel > p { margin: 25px 0; color: var(--muted); font-size: 15px; line-height: 1.3; }
.source-note { margin-top: 70px; padding-top: 12px; border-top: 1px solid var(--line-soft); color: var(--faint); font-size: 13px; }
.site-footer { margin: 0 8px; padding: 11px 6px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (min-width: 851px) and (max-height: 700px) {
  .page-content { padding-block: .75rem; }
  .intro { padding: .25rem 0 .75rem; }
  h1 { font-size: clamp(3.5rem, min(7vw, 10vh), 5.5rem); }
  .intro p { font-size: clamp(1.125rem, 2vw, 1.625rem); }
  .form-panel { padding-block: 1rem; }
  .form-panel .panel-heading h2 { font-size: 1.5rem; }
  .form-intro { margin-bottom: .5rem; font-size: .9375rem; }
  .field + .field { margin-top: .5rem; }
  .field input, .field textarea { min-height: 2.625rem; padding-block: .5rem; }
  .field textarea { height: 4.5rem; min-height: 4.5rem; }
  .form-bottom { margin-top: .75rem; }
  .submit-button { min-height: 2.75rem; }
}

@media (max-width: 850px) {
  .page-content { justify-content: flex-start; }
  .intro, .contact-grid { grid-template-columns: 1fr; }
  .intro { gap: 1.375rem; padding-bottom: clamp(1.75rem, 4vh, 3rem); }
  .contact-grid { gap: 3.5rem; }
  .source-note { margin-top: 35px; }
}
@media (max-width: 560px) {
  .site-header { align-items: center; }
  .header-index { display: none; }
  .page-content { padding: clamp(1.5rem, 4vh, 2.25rem) 1.25rem 5rem; }
  .intro { padding-top: clamp(1.5rem, 4vh, 2.5rem); }
  h1 { font-size: clamp(66px, 16vw, 95px); }
  .form-panel { margin: 0 -8px; padding: 24px 20px; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .submit-button { width: 100%; }
  .site-footer { flex-wrap: wrap; }
  .site-footer span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
