:root {
  color-scheme: dark;
  --background: #0b121c;
  --text: #f0f3f8;
  --muted: #acbfd7;
  --accent: #a3d2fc;
  --line: #40536b;
  --gutter: clamp(22px, 3.25vw, 64px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { touch-action: manipulation; }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: #a3d2fc; color: #0b121c; }

.page { width: min(100%, 1920px); min-height: 100svh; margin: 0 auto; padding: 28px var(--gutter) 20px; }
.site-header { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.wordmark { font: 400 36px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -1.4px; }
.about-button { padding: 10px 0 10px 20px; min-height: 44px; color: var(--muted); font-size: 14px; letter-spacing: .05em; background: none; border: 0; cursor: pointer; }
.about-button:hover { color: var(--text); }
.introduction { margin: 17px 0 28px; color: var(--muted); font-size: clamp(14px, 1.14vw, 18px); line-height: 1.6; letter-spacing: .08em; }

.featured-work { display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(270px, 1fr); gap: clamp(28px, 2.5vw, 48px); }
.work-preview { display: block; overflow: hidden; height: clamp(530px, calc(100svh - 250px), 920px); border: 1px solid #35495f; border-radius: 3px; background: #101a24; }
.work-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 51% 50%; transition: transform 500ms ease; }
.work-preview:hover img { transform: scale(1.015); }
.work-description { padding-top: 21px; }
.work-category { margin: 0; color: var(--muted); font: 12px/1.6 ui-monospace, "SFMono-Regular", Consolas, monospace; text-transform: uppercase; letter-spacing: .13em; }
h1 { margin: 28px 0 30px; font: 400 clamp(42px, 4.1vw, 70px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }
.work-summary { max-width: 29ch; margin: 0; color: var(--muted); font-size: clamp(18px, 1.43vw, 23px); line-height: 1.55; }
.enter-link { display: inline-flex; align-items: center; gap: 13px; min-height: 48px; margin-top: 59px; padding-bottom: 6px; border-bottom: 1px solid var(--accent); color: var(--accent); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.4; }
.enter-link span { transition: transform 180ms ease; }
.enter-link:hover { color: var(--text); border-color: var(--text); }
.enter-link:hover span { transform: translate(2px, -2px); }

.site-footer { margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; justify-content: flex-end; gap: 46px; }
.site-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: 13px; letter-spacing: .06em; }
.site-footer a:hover { color: var(--text); }
.skip-link { position: fixed; z-index: 10; top: 12px; left: var(--gutter); padding: 12px 18px; transform: translateY(-180%); color: var(--background); background: var(--accent); }
.skip-link:focus { transform: none; }

dialog { width: min(500px, calc(100% - 40px)); max-height: calc(100svh - 40px); padding: 44px; color: var(--text); background: #111d2c; border: 1px solid #526a88; border-radius: 3px; }
dialog::backdrop { background: #050b13d9; }
dialog h2 { margin: 18px 0 24px; font: 400 48px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
dialog p:not(.work-category) { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.close-button { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; font-size: 28px; color: var(--muted); background: none; border: 0; cursor: pointer; }
.close-button:hover { color: var(--text); }

/* Future work can use this grid without rendering a section or empty slots now. */
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; margin-top: 64px; }

@media (min-width: 1700px) {
  .featured-work { grid-template-columns: minmax(0, 3fr) minmax(340px, 1fr); }
}

@media (max-width: 1000px) {
  .featured-work { grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 28px; }
  .work-preview { height: 570px; }
  h1 { font-size: 46px; }
  .work-summary { font-size: 18px; }
  .enter-link { margin-top: 40px; }
}

@media (max-width: 700px) {
  .page { padding-top: 18px; }
  .wordmark { font-size: 30px; letter-spacing: -1.1px; }
  .site-header { min-height: 52px; padding-bottom: 11px; }
  .introduction { max-width: 33ch; margin: 16px 0 24px; font-size: 14px; letter-spacing: .035em; }
  .featured-work { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .work-preview { height: auto; aspect-ratio: 1.12; }
  .work-preview img { object-position: 49% 50%; }
  .work-description { padding-top: 0; }
  .work-category { font-size: 10px; }
  h1 { margin: 18px 0 18px; font-size: clamp(45px, 9.6vw, 62px); }
  .work-summary { max-width: 28ch; font-size: 18px; }
  .enter-link { min-height: 48px; margin-top: 25px; font-size: 20px; }
  .site-footer { margin-top: 40px; padding-top: 12px; }
  .site-footer nav { justify-content: flex-start; gap: 34px; }
  .work-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 48px; }
  dialog { padding: 38px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .work-preview:hover img, .enter-link:hover span { transform: none; }
}
