:root {
  color-scheme: light;
  --cream: #f4ead8;
  --cream-deep: #dfc8aa;
  --milk: #fbf4e8;
  --paper: #fffaf1;
  --ink: #3a2618;
  --muted: #826f5d;
  --line: rgba(89, 54, 31, 0.2);
  --sage: #aac4a7;
  --sky: #b9d7df;
  --teal: #6d442a;
  --coral: #c07a54;
  --amber: #b88843;
  --brown: #4a2f1e;
  --shadow: 0 28px 80px rgba(73, 43, 22, 0.2);
  --soft-shadow: 0 16px 44px rgba(73, 43, 22, 0.13);
}

[data-theme="dark"] {
  color-scheme: dark;
  --cream: #17120f;
  --cream-deep: #261b14;
  --milk: #1f1712;
  --paper: #2a2019;
  --ink: #f2e5d2;
  --muted: #c6ad94;
  --line: rgba(240, 222, 196, 0.16);
  --sage: #93aa8f;
  --sky: #8eb4bd;
  --teal: #d2aa7d;
  --coral: #d79472;
  --amber: #d8b86e;
  --brown: #130d0a;
  --shadow: 0 32px 86px rgba(0, 0, 0, 0.42);
  --soft-shadow: 0 18px 52px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(120deg, rgba(255, 250, 241, 0.88), rgba(255, 250, 241, 0.52)),
    url("/assets/cream-living-room.jpg") center top / cover fixed;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

[data-theme="dark"] body {
  background:
    linear-gradient(120deg, rgba(19, 13, 10, 0.9), rgba(31, 23, 18, 0.84)),
    url("/assets/cream-living-room.jpg") center top / cover fixed;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(74, 47, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 47, 30, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.92), rgba(246, 231, 207, 0.9)),
    url("/assets/cream-living-room.jpg") center 18% / cover;
  backdrop-filter: blur(18px);
}

[data-theme="dark"] .site-header {
  background:
    linear-gradient(90deg, rgba(23, 18, 15, 0.92), rgba(42, 32, 25, 0.9)),
    url("/assets/cream-living-room.jpg") center 18% / cover;
}

.brand,
.nav-links,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(74, 47, 30, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.74), rgba(222, 197, 164, 0.48)),
    url("/assets/cream-living-room.jpg") center / cover;
  color: var(--brown);
  font-size: 0.78rem;
  box-shadow: var(--soft-shadow);
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover,
.site-footer a:hover,
.work-card a:hover,
.journal-item:hover strong {
  color: var(--teal);
}

.theme-toggle {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--paper), transparent 8%);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle span {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 7px -2px 0 currentColor;
}

[data-theme="dark"] .theme-toggle span {
  box-shadow: inset 0 0 0 currentColor;
}

.hero {
  position: relative;
  min-height: min(660px, calc(100svh - 128px));
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(255, 250, 241, 0.94), rgba(255, 250, 241, 0.82) 45%, rgba(238, 214, 183, 0.5)),
    url("/assets/cream-living-room.jpg") center / cover;
}

[data-theme="dark"] .hero {
  background:
    linear-gradient(105deg, rgba(19, 13, 10, 0.92), rgba(31, 23, 18, 0.82) 48%, rgba(83, 57, 38, 0.48)),
    url("/assets/cream-living-room.jpg") center / cover;
}

.hero::before {
  position: absolute;
  inset: clamp(46px, 8vw, 92px) clamp(18px, 6vw, 88px) auto auto;
  width: min(34vw, 420px);
  aspect-ratio: 1.02;
  content: "";
  border: 1px solid rgba(126, 103, 76, 0.18);
  border-radius: 42% 42% 8px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 241, 0.18)),
    url("/assets/cream-living-room.jpg") center / cover;
  box-shadow:
    inset 0 0 0 18px rgba(255, 250, 241, 0.38),
    var(--shadow);
}

[data-theme="dark"] .hero::before {
  background:
    linear-gradient(180deg, rgba(255, 239, 214, 0.24), rgba(19, 13, 10, 0.36)),
    url("/assets/cream-living-room.jpg") center / cover;
  filter: brightness(0.72) saturate(0.78);
}

.hero::after {
  position: absolute;
  right: clamp(18px, 7vw, 118px);
  bottom: clamp(54px, 9vw, 110px);
  width: min(28vw, 330px);
  aspect-ratio: 1.4;
  content: "";
  border: 1px solid rgba(126, 103, 76, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 250, 241, 0.44), rgba(185, 215, 223, 0.34)),
    url("/assets/lakeside-greenery.jpg") center / cover;
  box-shadow: var(--soft-shadow);
  filter: saturate(0.58) sepia(0.1) brightness(1.08);
  opacity: 0.72;
}

[data-theme="dark"] .hero::after {
  background:
    linear-gradient(145deg, rgba(19, 13, 10, 0.32), rgba(142, 180, 189, 0.2)),
    url("/assets/lakeside-greenery.jpg") center / cover;
  filter: saturate(0.42) sepia(0.12) brightness(0.68);
}

.hero-shade {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to bottom, transparent, var(--cream));
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(32px, 6vw, 84px);
  min-height: min(660px, calc(100svh - 128px));
  padding: clamp(36px, 4vw, 50px) clamp(20px, 6vw, 88px);
}

.hero-copy {
  max-width: 760px;
  color: var(--ink);
  text-shadow: none;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 10px;
  font-size: clamp(4rem, 9vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-subtitle {
  margin-bottom: 20px;
  color: var(--coral);
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1.1;
}

.lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  white-space: nowrap;
}

.button.primary {
  background:
    linear-gradient(135deg, rgba(74, 47, 30, 0.94), rgba(109, 68, 42, 0.9)),
    url("/assets/cream-living-room.jpg") center / cover;
  color: #fffaf1;
}

.button.primary:hover {
  background:
    linear-gradient(135deg, rgba(58, 38, 24, 0.96), rgba(109, 68, 42, 0.94)),
    url("/assets/cream-living-room.jpg") center / cover;
}

.button.secondary {
  border-color: color-mix(in srgb, var(--paper), transparent 30%);
  background: color-mix(in srgb, var(--paper), transparent 16%);
  color: var(--ink);
}

.hero .button.secondary {
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.button.secondary:hover {
  border-color: var(--teal);
}

.tech-panel {
  overflow: hidden;
  border: 1px solid rgba(126, 103, 76, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.66);
  color: var(--ink);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

[data-theme="dark"] .tech-panel {
  background: rgba(42, 32, 25, 0.72);
}

.hero-side {
  display: grid;
  gap: 12px;
}

.image-mosaic {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  grid-template-rows: 126px 126px;
  gap: 12px;
}

.mosaic-card {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(74, 47, 30, 0.16);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(74, 47, 30, 0.4), transparent 50%);
}

.mosaic-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 1;
  color: #fffaf1;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-card {
  grid-row: 1 / span 2;
}

.blue-card img {
  filter: saturate(0.58) sepia(0.08) brightness(1.08);
}

.blue-card::before,
.green-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.blue-card::before {
  background: rgba(185, 215, 223, 0.24);
}

.green-card::before {
  background: rgba(170, 196, 167, 0.2);
}

.panel-top {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(126, 103, 76, 0.16);
  padding: 11px 14px;
}

.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffd18c;
}

.panel-top span:nth-child(2) {
  background: #f1a68e;
}

.panel-top span:nth-child(3) {
  background: #9dd2b2;
}

pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.5;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(126, 103, 76, 0.16);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  padding: clamp(54px, 6vw, 78px) clamp(20px, 6vw, 88px);
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(255, 250, 241, 0.9), rgba(251, 244, 232, 0.72)),
    url("/assets/cream-living-room.jpg") center / cover;
}

[data-theme="dark"] .intro,
[data-theme="dark"] .contact {
  background:
    linear-gradient(100deg, rgba(42, 32, 25, 0.9), rgba(31, 23, 18, 0.78)),
    url("/assets/cream-living-room.jpg") center / cover;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.intro p:last-child {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  line-height: 1.85;
}

.journal {
  background:
    linear-gradient(180deg, rgba(244, 234, 216, 0.92), rgba(251, 244, 232, 0.88)),
    url("/assets/cream-living-room.jpg") center / cover;
}

[data-theme="dark"] .journal {
  background:
    linear-gradient(180deg, rgba(23, 18, 15, 0.94), rgba(31, 23, 18, 0.88)),
    url("/assets/cream-living-room.jpg") center / cover;
}

.journal-list {
  display: grid;
  gap: 14px;
}

.journal-item {
  display: grid;
  grid-template-columns: 130px minmax(160px, 0.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background:
    linear-gradient(120deg, rgba(255, 250, 241, 0.92), rgba(255, 250, 241, 0.72)),
    url("/assets/plant-workspace.jpg") center / cover;
  box-shadow: var(--soft-shadow);
}

[data-theme="dark"] .journal-item {
  background:
    linear-gradient(120deg, rgba(42, 32, 25, 0.92), rgba(31, 23, 18, 0.78)),
    url("/assets/plant-workspace.jpg") center / cover;
}

.journal-item span,
.journal-item em {
  color: var(--muted);
  font-size: 0.98rem;
  font-style: normal;
}

.journal-item span {
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 850;
}

.journal-item strong {
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.35;
}

.work {
  background:
    linear-gradient(130deg, rgba(255, 250, 241, 0.86), rgba(185, 215, 223, 0.18) 46%, rgba(170, 196, 167, 0.16)),
    url("/assets/lakeside-greenery.jpg") center / cover;
}

[data-theme="dark"] .work {
  background:
    linear-gradient(130deg, rgba(23, 18, 15, 0.9), rgba(142, 180, 189, 0.12) 46%, rgba(147, 170, 143, 0.12)),
    url("/assets/lakeside-greenery.jpg") center / cover;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.work-card {
  display: flex;
  min-height: 252px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    linear-gradient(150deg, rgba(255, 250, 241, 0.92), rgba(255, 250, 241, 0.72)),
    url("/assets/cream-living-room.jpg") center / cover;
  box-shadow: var(--soft-shadow);
}

[data-theme="dark"] .work-card {
  background:
    linear-gradient(150deg, rgba(42, 32, 25, 0.94), rgba(31, 23, 18, 0.78)),
    url("/assets/cream-living-room.jpg") center / cover;
}

.work-number {
  color: var(--coral);
  font-size: 1.12rem;
  font-weight: 950;
}

.work-card h3 {
  margin: 28px 0 12px;
  font-size: 1.55rem;
  line-height: 1.25;
}

.work-card p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.work-card a {
  margin-top: auto;
  color: var(--teal);
  font-weight: 900;
}

.garden {
  background:
    linear-gradient(180deg, rgba(244, 234, 216, 0.88), rgba(251, 244, 232, 0.76)),
    url("/assets/cream-living-room.jpg") center / cover;
}

[data-theme="dark"] .garden {
  background:
    linear-gradient(180deg, rgba(23, 18, 15, 0.9), rgba(31, 23, 18, 0.78)),
    url("/assets/cream-living-room.jpg") center / cover;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

figure {
  position: relative;
  min-height: 380px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(35, 28, 19, 0.42), transparent 46%);
}

figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 1;
  color: #fffaf1;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact {
  align-items: center;
}

.contact .button.secondary {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.92), rgba(185, 215, 223, 0.18)),
    url("/assets/lakeside-greenery.jpg") center / cover;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(20px, 6vw, 88px);
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    min-height: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero-grid,
  .intro,
  .contact,
  .photo-strip {
    grid-template-columns: 1fr;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .journal-item,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  figure {
    min-height: 320px;
  }
}

@media (max-width: 1120px) and (min-width: 901px) {
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .brand {
    font-size: 0.95rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .tech-panel {
    display: none;
  }

  .image-mosaic {
    grid-template-rows: 150px;
  }

  .main-card {
    grid-row: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
