@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  --page: #f9e9ee;
  --surface: #fff9f8;
  --surface-raised: #fffdfb;
  --ink: #322c31;
  --muted: #81757c;
  --line: #ead9df;
  --accent: #a45b72;
  --accent-deep: #7f4057;
  --sidebar: #fff8f8;
  --shadow: 0 18px 50px rgba(89, 49, 65, .08);
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #16392f;
  --surface: #1d4438;
  --surface-raised: #244b3e;
  --ink: #f4eee4;
  --muted: #bec9bb;
  --line: #3a5b4d;
  --accent: #f0ad9d;
  --accent-deep: #ffd1c2;
  --sidebar: #123329;
  --shadow: 0 18px 50px rgba(4, 20, 15, .2);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 28px; }

body {
  min-width: 320px;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  transition: background-color .25s ease, color .25s ease;
}

button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; }

.sidebar {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  display: flex;
  width: 250px;
  flex-direction: column;
  padding: 30px 19px 21px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  transition: width .25s ease, transform .25s ease, background-color .25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 57px 7px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: var(--sidebar);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.4px; white-space: nowrap; }
.nav-heading, .eyebrow, .breadcrumb, .project-count, .card-topline, .card-tag, .footer-year { font-family: var(--mono); letter-spacing: .11em; }
.nav-heading { margin: 0 0 13px 12px; color: var(--muted); font-size: 10px; }
.primary-nav { display: grid; gap: 6px; }

.nav-link {
  display: flex;
  min-height: 45px;
  align-items: center;
  gap: 14px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.nav-link:hover, .nav-link.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent-deep); }
.nav-icon { display: grid; width: 20px; place-items: center; font-size: 19px; line-height: 1; }
.nav-label { white-space: nowrap; }

.sidebar-note {
  margin: auto 5px 20px;
  padding: 17px 15px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
}

.sidebar-note p { margin: 8px 0 0; font-family: var(--serif); font-size: 16px; font-style: italic; line-height: 1.4; }
.note-spark { color: var(--accent); font-size: 17px; }

.sidebar-collapse {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.sidebar-collapse:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); }
.sidebar-collapse > span:first-child { width: 20px; font-size: 22px; text-align: center; }

.main-content { min-height: 100vh; margin-left: 250px; transition: margin-left .25s ease; }
.topbar { display: flex; height: 78px; align-items: center; justify-content: space-between; padding: 0 5.3%; }
.breadcrumb { display: flex; gap: 12px; color: var(--muted); font-size: 9px; }
.breadcrumb-slash { color: var(--accent); }
.theme-toggle, .icon-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.theme-toggle { gap: 9px; min-height: 38px; padding: 0 13px; border-radius: 999px; font-size: 11px; }
.theme-toggle:hover, .icon-button:hover { transform: translateY(-1px); border-color: var(--accent); }
.theme-icon { color: var(--accent-deep); font-size: 15px; }
.icon-button { display: none; width: 39px; height: 39px; border-radius: 10px; font-size: 18px; }
.page-wrap { width: min(1110px, 100%); margin: 0 auto; padding: 15px 5.3% 30px; }

.hero {
  display: grid;
  min-height: 376px;
  grid-template-columns: 1fr .93fr;
  align-items: center;
  gap: 38px;
  padding: 24px 0 54px;
}

.eyebrow { margin: 0 0 16px; color: var(--accent-deep); font-size: 9px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #8caa7a; box-shadow: 0 0 0 3px color-mix(in srgb, #8caa7a 20%, transparent); }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 17px; font-family: var(--serif); font-size: clamp(48px, 6vw, 75px); font-weight: 500; letter-spacing: -2.7px; line-height: .99; }
h1 span { color: var(--accent-deep); font-style: italic; }
.hero-description { max-width: 410px; margin-bottom: 23px; color: var(--muted); font-size: 13px; line-height: 1.85; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent-deep); font-size: 12px; font-weight: 600; text-decoration: none; }
.text-link span { font-size: 16px; transition: transform .2s ease; }
.text-link:hover span { transform: translateY(3px); }

.hero-art {
  position: relative;
  min-height: 295px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 48% 48% 13px 13px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--surface-raised) 85%, #f8d7dc), color-mix(in srgb, var(--surface) 72%, #d7ddc9));
}

.sun-disc { position: absolute; top: 15%; left: 37%; width: 118px; height: 118px; border-radius: 50%; background: #e6a18b; opacity: .8; }
.art-caption { position: absolute; top: 24px; left: 25px; z-index: 2; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .13em; line-height: 1.7; }
.notebook { position: absolute; z-index: 3; right: 15%; bottom: -13px; display: flex; width: 147px; height: 186px; flex-direction: column; padding: 24px 19px; transform: rotate(8deg); border: 1px solid rgba(89, 66, 58, .12); border-radius: 4px; background: #f8eee0; box-shadow: 7px 11px 22px rgba(59, 43, 35, .18); }
.notebook-label { color: #806f5c; font-family: var(--mono); font-size: 8px; letter-spacing: .11em; line-height: 1.7; }
.notebook-line { width: 95%; height: 1px; margin-top: 20px; background: #d6c9b7; }
.notebook-line.short { width: 67%; margin-top: 11px; }
.notebook-scribble { margin: 16px 0 0 auto; color: #bd806f; font-size: 28px; }
.plant { position: absolute; z-index: 4; bottom: 0; width: 80px; height: 161px; }
.plant-one { left: 12%; }
.plant-two { left: 29%; bottom: -6px; transform: scale(.76); transform-origin: bottom; }
.plant b { position: absolute; bottom: -2px; left: 36px; width: 3px; height: 103px; border-radius: 2px; background: #657f5c; transform: rotate(-4deg); }
.plant i { position: absolute; z-index: 2; display: block; width: 27px; height: 49px; border-radius: 100% 0 100% 0; background: #778f68; }
.plant i:nth-child(1) { bottom: 56px; left: 13px; transform: rotate(-37deg); }
.plant i:nth-child(2) { bottom: 81px; left: 37px; transform: rotate(34deg) scaleX(-1); background: #8ca17c; }
.plant i:nth-child(3) { bottom: 102px; left: 11px; transform: rotate(-35deg) scale(.8); background: #91a47f; }
.plant i:nth-child(4) { bottom: 125px; left: 38px; transform: rotate(31deg) scaleX(-1) scale(.7); }
.art-star { position: absolute; z-index: 4; color: #ab6e76; }
.star-one { top: 27%; right: 17%; font-size: 19px; }
.star-two { top: 53%; left: 44%; font-size: 35px; }

.projects-section { padding: 1px 0 52px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 21px; }
.section-heading .eyebrow { margin-bottom: 7px; }
h2 { margin-bottom: 0; font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -.7px; }
h2 em { color: var(--accent-deep); font-weight: 500; }
.project-count { padding-bottom: 5px; color: var(--muted); font-size: 9px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.project-card { min-width: 0; padding: 16px 16px 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: transform .2s ease, box-shadow .2s ease, background-color .25s ease; }
.project-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-peach { --card-accent: #d59784; --card-bg: #f2d8cf; }
.card-lilac { --card-accent: #9583a8; --card-bg: #e5dced; }
.card-sage { --card-accent: #78906b; --card-bg: #dce5d2; }
:root[data-theme="dark"] .card-peach { --card-bg: #704d43; --card-accent: #efb4a1; }
:root[data-theme="dark"] .card-lilac { --card-bg: #514a5e; --card-accent: #d8c0eb; }
:root[data-theme="dark"] .card-sage { --card-bg: #405b48; --card-accent: #c4d2a7; }
.card-topline { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.card-topline span:last-child { color: var(--accent-deep); font-size: 14px; }
.card-illustration { position: relative; display: grid; height: 115px; overflow: hidden; place-items: center; margin: 14px 0 15px; border-radius: 7px; background: var(--card-bg); }
.shape-orbit { position: absolute; width: 81px; height: 81px; border: 1px solid var(--card-accent); border-radius: 50%; opacity: .75; }
.shape-core { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--card-accent); color: var(--surface); font-family: var(--serif); font-size: 18px; }
.shape-star { position: absolute; top: 21px; right: 28%; color: var(--card-accent); font-size: 18px; }
.shape-window { position: absolute; top: 27px; left: 26%; display: flex; width: 86px; height: 62px; align-items: end; gap: 5px; padding: 9px; border: 1px solid var(--card-accent); border-radius: 6px; }
.shape-window i { flex: 1; height: 30%; border-radius: 3px 3px 1px 1px; background: var(--card-accent); opacity: .7; }
.shape-window i:nth-child(2) { height: 75%; }
.shape-window i:nth-child(3) { height: 52%; }
.shape-flower { position: absolute; top: 14px; right: 23%; color: var(--card-accent); font-size: 35px; }
.shape-sun { position: absolute; top: 19px; right: 27%; width: 27px; height: 27px; border-radius: 50%; background: var(--card-accent); opacity: .8; }
.shape-hill { position: absolute; bottom: -36px; width: 165px; height: 90px; border-radius: 50% 50% 0 0; background: var(--card-accent); opacity: .55; }
.hill-back { left: -9px; transform: rotate(-8deg); }
.hill-front { right: -17px; bottom: -48px; opacity: .8; transform: rotate(10deg); }
.shape-path { position: absolute; bottom: 0; left: 48%; width: 35px; height: 56px; border: 2px solid var(--surface); border-bottom: 0; border-radius: 50% 50% 0 0; opacity: .65; }
.project-card h3 { margin-bottom: 5px; font-family: var(--serif); font-size: 17px; font-weight: 500; }
.project-card p { min-height: 36px; margin-bottom: 13px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.card-tag { display: inline-block; padding: 5px 7px; border-radius: 4px; background: color-mix(in srgb, var(--card-accent) 15%, transparent); color: var(--card-accent); font-size: 7px; }

.about-strip { display: grid; grid-template-columns: 48px 1fr 1fr; align-items: center; gap: 15px; padding: 23px 24px; border: 1px solid var(--line); border-radius: 11px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.about-flower { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-deep); font-size: 24px; }
.about-strip .eyebrow { margin-bottom: 7px; font-size: 8px; }
.about-strip h2 { font-size: 23px; line-height: 1.25; }
.about-copy { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

.footer { display: flex; align-items: center; gap: 20px; padding: 25px 1px 5px; color: var(--muted); font-size: 10px; }
.footer a { margin-left: auto; color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.footer a span { margin-left: 4px; }
.footer-year { font-size: 8px; }
.mobile-scrim { display: none; }

.sidebar-collapsed .sidebar { width: 79px; padding-right: 12px; padding-left: 12px; }
.sidebar-collapsed .main-content { margin-left: 79px; }
.sidebar-collapsed .brand { justify-content: center; margin-left: 0; }
.sidebar-collapsed .brand-name, .sidebar-collapsed .nav-heading, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-note { display: none; }
.sidebar-collapsed .nav-link, .sidebar-collapsed .sidebar-collapse { justify-content: center; padding: 0; }
.sidebar-collapsed .sidebar-collapse > span:first-child { transform: rotate(180deg); }

@media (min-width: 1500px) {
  .page-wrap { padding-right: 55px; padding-left: 55px; }
}

@media (max-width: 1050px) {
  .sidebar { width: 218px; }
  .main-content { margin-left: 218px; }
  .hero { gap: 22px; }
  .project-grid { gap: 10px; }
  .project-card { padding-right: 12px; padding-left: 12px; }
}

@media (max-width: 760px) {
  .sidebar { width: 270px; transform: translateX(-100%); box-shadow: var(--shadow); }
  .sidebar.mobile-open { transform: translateX(0); }
  .sidebar-collapsed .sidebar { width: 270px; }
  .sidebar-collapsed .brand { justify-content: flex-start; margin-left: 7px; }
  .sidebar-collapsed .brand-name, .sidebar-collapsed .nav-heading, .sidebar-collapsed .nav-label, .sidebar-collapsed .sidebar-note { display: initial; }
  .sidebar-collapsed .nav-heading { display: block; }
  .sidebar-collapsed .nav-link, .sidebar-collapsed .sidebar-collapse { justify-content: flex-start; padding: 0 13px; }
  .sidebar-collapsed .sidebar-collapse > span:first-child { transform: none; }
  .sidebar-collapse { display: none; }
  .main-content, .sidebar-collapsed .main-content { margin-left: 0; }
  .topbar { height: 67px; padding: 0 20px; }
  .icon-button { display: inline-flex; }
  .breadcrumb { margin-right: auto; margin-left: 13px; font-size: 8px; }
  .theme-toggle { width: 39px; min-height: 39px; padding: 0; }
  .theme-label { display: none; }
  .mobile-scrim.visible { position: fixed; z-index: 19; inset: 0; display: block; background: rgba(15, 20, 17, .35); }
  .page-wrap { padding: 7px 22px 24px; }
  .hero { min-height: 0; grid-template-columns: 1fr; gap: 24px; padding: 24px 0 43px; }
  .hero-copy { padding-top: 8px; }
  h1 { font-size: clamp(55px, 13vw, 72px); }
  .hero-description { max-width: 520px; }
  .hero-art { min-height: 265px; }
  .projects-section { padding-bottom: 38px; }
  .project-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-card { display: grid; grid-template-columns: 1fr 1.15fr; align-items: start; column-gap: 13px; padding: 14px; }
  .card-topline { grid-column: 1 / -1; }
  .card-illustration { grid-column: 1; grid-row: 2 / span 4; height: 127px; margin: 12px 0 0; }
  .project-card h3 { align-self: end; margin: 16px 0 6px; }
  .project-card p { min-height: 0; margin-bottom: 8px; }
  .card-tag { justify-self: start; }
  .about-strip { grid-template-columns: 44px 1fr; gap: 11px; padding: 20px; }
  .about-strip > div { grid-column: 2; }
  .about-copy { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .breadcrumb { gap: 7px; font-size: 7px; }
  .topbar { padding-right: 14px; padding-left: 14px; }
  .page-wrap { padding-right: 16px; padding-left: 16px; }
  .section-heading h2 { font-size: 29px; }
  .project-card { grid-template-columns: .9fr 1.1fr; column-gap: 10px; }
  .footer { flex-wrap: wrap; gap: 12px; }
  .footer-year { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
