@font-face {
  font-family: 'Igra Sans';
  src: url('assets/fonts/IgraSans.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* A new design system: Apple-inspired structure, GardenKlad identity. */
:root {
  color-scheme: light;
  --logo-light-display: block;
  --logo-dark-display: none;
  --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --text-caption: .875rem;
  --text-body: 1.0625rem;
  --text-lead: 1.25rem;
  --text-card: 2rem;
  --text-section: 3rem;
  --text-display: 5rem;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --radius-small: 8px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --radius-panel: 32px;
  --radius-pill: 999px;
  --page: #ffffff;
  --grouped: #f5f5f7;
  --surface: #ffffff;
  --surface-soft: #f0f2ed;
  --text: #1d211b;
  --secondary: #62675f;
  --line: #dcded8;
  --accent: #526a32;
  --accent-hover: #405426;
  --button-ink: #ffffff;
  --brand-green: #687e41;
  --brand-lime: #bbd86b;
  --brand-gold: #e5a823;
  --brand-ink: #343b2a;
  --berry-ink: #1a1a32;
  --berry-lavender: #d1c2ff;
  --shadow: 0 8px 32px rgba(20, 28, 14, .04);
  --duration-fast: 160ms;
  --duration-normal: 240ms;
  --duration-reveal: 400ms;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --logo-light-display: none;
  --logo-dark-display: block;
  --page: #111411;
  --grouped: #191d18;
  --surface: #242a22;
  --surface-soft: #30382b;
  --text: #f5f7f1;
  --secondary: #b8c0b0;
  --line: #434d3c;
  --accent: #bbd86b;
  --accent-hover: #d2e9a4;
  --button-ink: #20281a;
  --shadow: 0 8px 32px rgba(0, 0, 0, .12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --logo-light-display: none;
    --logo-dark-display: block;
    --page: #111411;
    --grouped: #191d18;
    --surface: #242a22;
    --surface-soft: #30382b;
    --text: #f5f7f1;
    --secondary: #b8c0b0;
    --line: #434d3c;
    --accent: #bbd86b;
    --accent-hover: #d2e9a4;
    --button-ink: #20281a;
    --shadow: 0 8px 32px rgba(0, 0, 0, .12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-system); font-size: var(--text-body); line-height: 1.6; background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: var(--text-display); line-height: 1.05; }
h2 { font-size: var(--text-section); line-height: 1.12; }
h3 { font-size: var(--text-card); line-height: 1.18; }
p { max-width: 70ch; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: var(--space-10); }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { font-size: var(--text-caption); font-weight: 600; letter-spacing: .02em; color: var(--accent); margin-bottom: var(--space-4); }
.muted-heading { color: var(--secondary); }
.skip-link { position: fixed; left: var(--space-3); top: var(--space-3); z-index: 100; padding: var(--space-3) var(--space-4); border-radius: var(--radius-small); background: var(--surface); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 48px; min-width: 44px; padding: 12px var(--space-4); border: 0; border-radius: var(--radius-pill); background: var(--accent); color: var(--button-ink); font-size: var(--text-body); font-weight: 500; line-height: 1.4; transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.button:hover { background: var(--accent-hover); }
.button:active, .icon-button:active, .project-action:active { transform: scale(.98); }
.button-small { min-height: 44px; font-size: var(--text-caption); padding: 12px var(--space-4); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-pill); background: transparent; transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.icon-button:hover { background: var(--surface-soft); }
button:disabled { cursor: not-allowed; opacity: .45; transform: none; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--page); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 88px; }
.brand { display: inline-flex; gap: var(--space-3); align-items: center; flex-shrink: 0; min-height: 44px; }
.brand img { width: 280px; height: 72px; object-fit: cover; object-position: center; padding: var(--space-1); }
.brand-logo-light { display: var(--logo-light-display); mix-blend-mode: multiply; filter: brightness(1.02); }
.brand-logo-dark { display: var(--logo-dark-display); mix-blend-mode: lighten; }
.desktop-nav, .header-actions { display: flex; align-items: center; }
.desktop-nav { gap: var(--space-4); }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: var(--text-caption); color: var(--secondary); transition: color var(--duration-fast) var(--ease); }
.desktop-nav a:hover { color: var(--accent); }
.header-actions { gap: var(--space-2); flex-shrink: 0; }
.theme-sun { display: none; }
[data-theme='dark'] .theme-sun { display: inline-block; }
[data-theme='dark'] .theme-moon { display: none; }
.menu-toggle, .mobile-nav, .menu-close-icon { display: none; }
.menu-toggle[aria-expanded='true'] .menu-open-icon { display: none; }
.menu-toggle[aria-expanded='true'] .menu-close-icon { display: inline-block; }
.hero { padding-top: var(--space-9); padding-bottom: var(--space-7); }
.hero-intro { text-align: center; }
.hero .eyebrow { margin-bottom: var(--space-4); }
.hero h1 span { color: var(--accent); }
.hero-description { margin: var(--space-5) auto 0; font-size: var(--text-lead); color: var(--secondary); line-height: 1.5; max-width: 640px; text-wrap: balance; }
.hero-button { margin-top: var(--space-5); }
.hero-visual { margin-top: var(--space-8); overflow: hidden; border-radius: var(--radius-panel); background: var(--brand-ink); aspect-ratio: 2.4; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero-location { margin-top: var(--space-4); text-align: center; max-width: none; color: var(--secondary); font-size: var(--text-caption); }
.hero-location span { margin-inline: var(--space-2); }
.projects-section { background: var(--grouped); }
.section-heading { margin-bottom: var(--space-7); }
.section-intro { color: var(--secondary); margin-top: var(--space-4); font-size: var(--text-lead); line-height: 1.5; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); align-items: stretch; }
.project-card {
  --card-bg: var(--surface);
  --card-ink: var(--text);
  --card-muted: var(--secondary);
  --card-line: var(--line);
  --card-soft: var(--surface-soft);
  --card-accent: var(--accent);
  display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6);
  min-width: 0; min-height: 560px; border-radius: var(--radius-panel);
  background: var(--card-bg); color: var(--card-ink); box-shadow: var(--shadow);
}
.project-category { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--text-caption); color: var(--card-muted); font-weight: 500; }
.project-main { flex: 1; min-width: 0; }
.project-description { margin-top: var(--space-4); color: var(--card-muted); }
.project-action { display: inline-flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; max-width: 100%; padding: 12px var(--space-4); margin-top: var(--space-5); border-radius: var(--radius-pill); background: var(--card-soft); font-size: var(--text-caption); line-height: 1.4; font-weight: 600; transition: background var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.project-action:hover { background: var(--card-ink); color: var(--card-bg); }
.project-location { margin-top: var(--space-4); color: var(--card-muted); font-size: var(--text-caption); line-height: 1.5; }
.map-links { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-4); margin-top: var(--space-1); }
.map-links a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; min-width: 44px; color: var(--card-ink); font-weight: 500; }
.map-links a span { text-decoration: underline; text-decoration-color: var(--card-line); text-underline-offset: 4px; }
.map-links a:hover span { text-decoration-color: currentColor; }
.map-links .icon { width: 16px; height: 16px; flex-basis: 16px; }
.project-socials { border-top: 1px solid var(--card-line); padding-top: var(--space-4); min-width: 0; scroll-margin-top: 112px; }
.project-socials h4 { font-size: var(--text-caption); font-weight: 500; margin-bottom: var(--space-3); line-height: 1.5; }
.social-links { display: flex; flex-wrap: wrap; gap: var(--space-2); min-width: 0; }
.social-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; max-width: 100%; padding: 8px var(--space-3); border: 1px solid var(--card-line); border-radius: var(--radius-pill); font-size: var(--text-caption); line-height: 1.5; overflow-wrap: anywhere; text-align: center; transition: background var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.social-links a:hover { background: var(--card-soft); border-color: var(--card-muted); }
.social-links a:active { transform: scale(.98); }
.social-more { margin-top: var(--space-2); }
.social-more summary { display: flex; align-items: center; gap: var(--space-2); width: fit-content; min-height: 44px; min-width: 44px; padding-block: var(--space-2); font-size: var(--text-caption); cursor: pointer; list-style: none; color: var(--card-muted); }
.social-more summary::-webkit-details-marker { display: none; }
.social-more summary:hover { color: var(--card-ink); }
.social-more summary .icon { transition: transform var(--duration-normal) var(--ease); }
.social-more[open] summary .icon { transform: rotate(180deg); }
.social-more[open] .social-links { margin-top: var(--space-2); }
.project-card a:focus-visible, .project-card summary:focus-visible { outline-color: var(--card-accent); }
.nursery {
  --card-bg: #343b2a; --card-ink: #f9faf5; --card-muted: #d9e2cc;
  --card-line: #748266; --card-soft: #465338; --card-accent: #d5eba7;
}
.education-note { margin-top: var(--space-5); margin-bottom: var(--space-2); font-size: var(--text-lead); color: var(--card-muted); line-height: 1.5; }
.education-note strong { font-weight: 600; color: var(--card-accent); }
.community-link { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; font-size: var(--text-caption); color: var(--card-accent); }
.community-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.landscape {
  --card-bg: #bbd86b; --card-ink: #26321b; --card-muted: #354326;
  --card-line: #748b42; --card-soft: #d3e7a1; --card-accent: #26321b;
}
.berries {
  --card-bg: #d1c2ff; --card-ink: #1a1a32; --card-muted: #3c355d;
  --card-line: #9080b8; --card-soft: #e6ddff; --card-accent: #1a1a32;
}
.berries h3, .berries .project-description { font-family: 'Igra Sans', var(--font-system); font-weight: 400; letter-spacing: 0; }
.berry-logo { width: 144px; height: 96px; object-fit: contain; object-position: left center; margin-bottom: var(--space-4); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8); align-items: start; }
.about-copy { padding-top: var(--space-7); color: var(--secondary); }
.about-copy .lead { color: var(--text); font-size: var(--text-lead); line-height: 1.5; }
.about-copy p + p { margin-top: var(--space-4); }
.approach-section { padding-top: 0; }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-7); }
.principles article { border-top: 1px solid var(--line); padding-top: var(--space-5); }
.principle-number { display: block; color: var(--accent); font-size: var(--text-caption); font-weight: 600; margin-bottom: var(--space-4); }
.principles h3 { font-size: var(--text-lead); letter-spacing: -.02em; }
.principles p { margin-top: var(--space-3); color: var(--secondary); }
.contact-section { background: var(--grouped); }
.contact-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); padding: var(--space-8); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--shadow); }
.contact-intro h2 span { color: var(--accent); }
.contact-intro > p:last-child { margin-top: var(--space-4); color: var(--secondary); }
.contact-links { align-self: center; min-width: 0; }
.contact-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; padding: var(--space-3); border-bottom: 1px solid var(--line); font-size: var(--text-lead); line-height: 1.5; transition: background var(--duration-fast) var(--ease); }
.contact-links a:hover { background: var(--surface-soft); }
.contact-links a span { min-width: 0; overflow-wrap: anywhere; }
.contact-links .contact-email { font-size: var(--text-body); }
.site-footer { padding-block: var(--space-7); }
.footer-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.footer-brand { display: inline-flex; min-height: 44px; }
.footer-brand img { width: 320px; height: 88px; object-fit: cover; object-position: center; padding: var(--space-2); }
.footer-main p { font-size: var(--text-caption); color: var(--secondary); }
.footer-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; min-width: 44px; font-size: var(--text-caption); }
.footer-link:hover { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding-top: var(--space-4); color: var(--secondary); font-size: var(--text-caption); }
.footer-bottom .icon { transform: rotate(-90deg); }
.legal-entities { margin-top: var(--space-2); color: var(--secondary); font-size: var(--text-caption); max-width: none; }
::selection { background: var(--brand-lime); color: var(--brand-ink); }

@media (max-width: 1024px) {
  :root { --text-display: 4rem; --text-section: 2.5rem; }
  .brand img { width: 248px; height: 64px; }
  .desktop-nav { gap: var(--space-3); }
  .project-card { padding: var(--space-5); }
  .about-grid { gap: var(--space-7); }
  .contact-panel { padding: var(--space-7); gap: var(--space-7); }
  .principles { gap: var(--space-5); }
}

@media (max-width: 760px) {
  :root { --text-display: 3rem; --text-section: 2rem; --text-card: 1.75rem; }
  html { scroll-padding-top: 96px; }
  .container { width: calc(100% - 32px); }
  .section { padding-block: var(--space-8); }
  .header-row { min-height: 80px; gap: var(--space-3); }
  .brand img { width: min(232px, calc(100vw - 140px)); height: 64px; }
  .header-contact, .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: grid; padding-top: var(--space-2); padding-bottom: var(--space-4); max-height: calc(100dvh - 80px); overflow-y: auto; }
  .mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 8px var(--space-3); border-radius: var(--radius-small); }
  .mobile-nav a:hover { background: var(--surface-soft); }
  .hero { padding-top: var(--space-7); padding-bottom: var(--space-5); }
  .hero-intro { padding-inline: var(--space-2); }
  .hero-description { margin-top: var(--space-4); max-width: 480px; }
  .hero-visual { margin-top: var(--space-7); aspect-ratio: 1.4; border-radius: var(--radius-large); }
  .hero-location { padding-inline: var(--space-2); }
  .section-heading { margin-bottom: var(--space-5); }
  .project-grid, .about-grid, .principles, .contact-panel { grid-template-columns: minmax(0, 1fr); }
  .project-grid { gap: var(--space-3); }
  .project-card { min-height: 0; padding: var(--space-5); gap: var(--space-5); border-radius: var(--radius-large); }
  .project-main { padding-block: var(--space-2); }
  .project-socials { scroll-margin-top: 96px; }
  .about-grid { gap: var(--space-5); }
  .about-copy { padding-top: 0; }
  .approach-section { padding-top: 0; }
  .principles { gap: var(--space-5); }
  .principles article { padding-top: var(--space-4); }
  .contact-panel { padding: var(--space-5); gap: var(--space-5); border-radius: var(--radius-large); }
  .contact-links a { padding-inline: 0; }
  .footer-brand img { width: min(320px, calc(100vw - 32px)); height: 88px; }
  .footer-main { align-items: flex-start; flex-wrap: wrap; gap: var(--space-4); }
  .footer-main > p { align-self: center; flex: 1; min-width: 160px; }
  .footer-main > .footer-link { flex-basis: 100%; }
  .footer-bottom { align-items: flex-start; }
  .footer-bottom p { max-width: 240px; }
  .footer-bottom > a { flex-shrink: 0; }
}

@media (max-width: 380px) {
  .project-card, .contact-panel { padding: var(--space-4); }
  .project-action { padding-inline: var(--space-3); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (forced-colors: active) {
  .project-card, .contact-panel, .social-links a, .button { border: 1px solid CanvasText; }
  .icon { forced-color-adjust: auto; }
}

@media print {
  .site-header, .hero-button, .social-more summary, .theme-toggle { display: none !important; }
  .section { padding-block: 24px; }
  .project-card, .contact-panel { break-inside: avoid; box-shadow: none; }
}
