:root {
  color-scheme: light;
  --ink: #303236;
  --muted: #74777b;
  --green: #303236;
  --green-dark: #303236;
  --cream: #f7f7f5;
  --line: #e4e4e0;
  --warm-glow: rgba(220, 220, 216, .2);
  --brand-mark-bg: #ececea;
  --white: #fff;
  --footer: #85878a;

  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f0f0ee;
  --muted: #b8b9b7;
  --green: #f0f0ee;
  --green-dark: #f0f0ee;
  --cream: #1d1d1f;
  --line: #38383b;
  --warm-glow: rgba(0, 0, 0, 0.09);
  --brand-mark-bg: #262628;
  --white: #262628;
  --footer: #b8b9b7;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 83% 12%, var(--warm-glow), transparent 28rem),
    var(--cream);
  transition: color .25s ease, background-color .25s ease;
}

button { font: inherit; }

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0 32px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: cover;
  object-position: 50% 58%;
  border-radius: 50%;
  background: var(--brand-mark-bg);
  border: 2px solid var(--line);
}

.brand-profile {
  position: relative;
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
}

.discord-badge {
  position: absolute;
  right: -5px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  padding: 2px;
  border: 2px solid var(--cream);
  border-radius: 50%;
  background: #5865f2;
  fill: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover { color: var(--ink); }

.theme-toggle {
  position: relative;
  width: 44px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-mark-bg);
  cursor: pointer;
}

.theme-toggle-icon {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .25s ease, background .25s ease;
}

:root[data-theme="dark"] .theme-toggle-icon {
  transform: translateX(20px);
  background: var(--green);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.nav .nav-contact {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.5);
}

main { padding-top: 55px; }

.intro {
  max-width: 760px;
  margin-bottom: 76px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  line-height: .96;
  letter-spacing: -.072em;
}

h1 span { color: var(--green); }

.intro-copy {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.section-kicker,
.project-label {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.about h2,
.contact h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -.055em;
}

.about {
  padding: 70px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  margin-top: 22px;
}

.about-grid p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.contact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 76px 0 62px;
}

.contact-link {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.discord-contact-icon {
  width: 18px;
  height: 18px;
  margin-right: 7px;
  fill: #5865f2;
  vertical-align: -3px;
}

.contact-link span { color: var(--green); }

footer {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--footer);
  font-size: 11px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

.photography-header {
  max-width: 720px;
  margin-bottom: 48px;
}

.photography-header h1 {
  font-size: clamp(48px, 8vw, 82px);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 76px;
}

.photo-card {
  overflow: hidden;
  margin: 0;
  border-radius: 18px;
  background: var(--white);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--brand-mark-bg);
}

.photo-card figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .page { width: min(440px, calc(100% - 32px)); padding-top: 18px; }
  main { padding-top: 38px; }
  .nav { gap: 14px; }
  .nav a:not(.nav-contact) { display: none; }
  .nav a[href="photography.html"] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav .nav-contact { font-size: 12px; }
  .intro { margin-bottom: 50px; }
  h1 { font-size: clamp(38px, 11vw, 48px); }
  .intro-copy { font-size: 15px; }
  .about { padding: 54px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact { align-items: flex-start; flex-direction: column; padding: 54px 0; }
  .photo-grid { grid-template-columns: 1fr; gap: 14px; padding-bottom: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
