html.fonts-loading body {
  visibility: hidden;
}

@font-face {
  font-family: "Merriweather";
  src: url("/fonts/Merriweather-VariableFont_opsz,wdth,wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Merriweather";
  src: url("/fonts/Merriweather-Italic-VariableFont_opsz,wdth,wght.woff2") format("woff2");
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Code";
  src: url("/fonts/GoogleSansCode-VariableFont_wght.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Google Sans Code";
  src: url("/fonts/GoogleSansCode-Italic-VariableFont_wght.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --elel-bg-light: #f7f3ec;
  --elel-text-light: #141010;

  --elel-bg-dark: #050607;
  --elel-text-dark: #d9d2c7;

  --elel-font-serif: "Merriweather", "Times New Roman", serif;
  --elel-font-sans: "Google Sans Code", "SF Pro Text", "Segoe UI", system-ui,
    -apple-system, sans-serif;
  --elel-font-badge: "Google Sans Code", "SF Mono", "SFMono-Regular",
    "Cascadia Code", "JetBrains Mono", monospace;
  --elel-lightbox-close: #f4f7f9;
  --elel-lightbox-close-surface: rgba(0, 0, 0, 0.36);
  --elel-lightbox-close-border: rgba(244, 247, 249, 0.34);
  --elel-photo-outline: #c8b89a;
  --elel-logo-accent: #d9734f;
  --elel-logo-accent-glow: rgba(217, 115, 79, 0.32);
  --elel-badge-border: rgba(20, 16, 16, 0.58);
  --elel-badge-surface: rgba(255, 255, 255, 0.44);
  --elel-badge-hover-surface: rgba(20, 16, 16, 0.08);
  --elel-badge-focus: rgba(20, 16, 16, 0.42);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--elel-bg-light);
  color: var(--elel-text-light);
  font-family: var(--elel-font-serif);
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--elel-bg-dark);
    color: var(--elel-text-dark);
  }

  :root {
    --elel-lightbox-close: #f4f7f9;
    --elel-lightbox-close-surface: rgba(0, 0, 0, 0.46);
    --elel-lightbox-close-border: rgba(244, 247, 249, 0.28);
    --elel-photo-outline: #555555;
    --elel-logo-accent: #d9734f;
    --elel-logo-accent-glow: rgba(217, 115, 79, 0.34);
    --elel-badge-border: rgba(245, 241, 234, 0.54);
    --elel-badge-surface: rgba(245, 241, 234, 0.08);
    --elel-badge-hover-surface: rgba(245, 241, 234, 0.16);
    --elel-badge-focus: rgba(245, 241, 234, 0.5);
  }
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] body {
  background-color: var(--elel-bg-light);
  color: var(--elel-text-light);
}

html[data-theme="dark"] body {
  background-color: var(--elel-bg-dark);
  color: var(--elel-text-dark);
}

html[data-theme="light"] {
  --elel-lightbox-close: #f4f7f9;
  --elel-lightbox-close-surface: rgba(0, 0, 0, 0.36);
  --elel-lightbox-close-border: rgba(244, 247, 249, 0.34);
  --elel-photo-outline: #c8b89a;
  --elel-logo-accent: #d9734f;
  --elel-logo-accent-glow: rgba(217, 115, 79, 0.32);
  --elel-badge-border: rgba(20, 16, 16, 0.58);
  --elel-badge-surface: rgba(255, 255, 255, 0.44);
  --elel-badge-hover-surface: rgba(20, 16, 16, 0.08);
  --elel-badge-focus: rgba(20, 16, 16, 0.42);
}

html[data-theme="dark"] {
  --elel-lightbox-close: #f4f7f9;
  --elel-lightbox-close-surface: rgba(0, 0, 0, 0.46);
  --elel-lightbox-close-border: rgba(244, 247, 249, 0.28);
  --elel-photo-outline: #555555;
  --elel-logo-accent: #d9734f;
  --elel-logo-accent-glow: rgba(217, 115, 79, 0.34);
  --elel-badge-border: rgba(245, 241, 234, 0.54);
  --elel-badge-surface: rgba(245, 241, 234, 0.08);
  --elel-badge-hover-surface: rgba(245, 241, 234, 0.16);
  --elel-badge-focus: rgba(245, 241, 234, 0.5);
}

.elel-page {
  min-height: 100vh;
  padding-top: max(32px, calc(env(safe-area-inset-top) + 16px));
  padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 16px));
  padding-left: max(24px, calc(env(safe-area-inset-left) + 16px));
  padding-right: max(24px, calc(env(safe-area-inset-right) + 16px));
  box-sizing: border-box;
}

body.elel-home .elel-page {
  display: block;
}

body.elel-home .elel-main {
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
}

body.elel-home .elel-main-inner {
  width: 100%;
  text-align: left;
}

body.elel-project {
  line-height: 1.65;
}

body.elel-project .elel-main {
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
}

.elel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body.elel-home .elel-header {
  width: 100%;
  max-width: 66ch;
  margin: 0 auto 12px;
}

body.elel-project .elel-header {
  align-items: flex-start;
  width: 100%;
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
}

.elel-project-content {
  width: 100%;
  max-width: 66ch;
  margin: 0 auto;
}

.elel-theme-toggle {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  outline: none;
  box-shadow: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.elel-home-link {
  width: 30px;
  height: 30px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  outline: none;
  box-shadow: none;
  transition: transform 0.15s ease, background-color 0.15s ease,
    color 0.18s ease;
}

.elel-theme-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.elel-theme-toggle:hover,
.elel-theme-toggle:focus-visible,
.elel-home-link:hover,
.elel-home-link:focus-visible {
  transform: translateY(-1px);
  opacity: 0.8;
}

.elel-home-link:hover,
.elel-home-link:focus-visible {
  color: var(--elel-logo-accent);
  opacity: 1;
}

.elel-theme-toggle:focus,
.elel-theme-toggle:active,
.elel-home-link:focus,
.elel-home-link:active {
  background: transparent;
  box-shadow: none;
}

.elel-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

body.elel-home .elel-badge-row {
  justify-content: flex-start;
  margin-bottom: 18px;
}

body.elel-project .elel-badge-row {
  margin-bottom: 20px;
}

.elel-header .elel-header-nav {
  align-items: flex-start;
  margin-bottom: 0;
}

.elel-bottom-back {
  width: 100%;
  max-width: 66ch;
  margin: 32px auto 0;
  display: flex;
  justify-content: flex-start;
}

.elel-home-badge-group {
  margin: 0 0 14px;
  max-width: 540px;
  width: 100%;
}

.elel-home-badge-label {
  margin: 0 0 4px;
  font-family: var(--elel-font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}

.elel-home-badge-hint {
  margin: 0 0 10px;
  font-family: var(--elel-font-sans);
  font-size: 12px;
  opacity: 0.7;
}

.elel-badge-row-projects {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  justify-items: start;
}

.elel-badge-row-projects-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.elel-badge-row-projects-inline .elel-badge {
  white-space: nowrap;
}

.elel-badge-row-links {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  margin-top: 24px;
  margin-bottom: 0;
}

.elel-badge {
  border: 1.5px solid var(--elel-badge-border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--elel-font-badge);
  font-style: normal;
  white-space: nowrap;
  background: var(--elel-badge-surface);
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  transition:
    transform 0.16s ease,
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.elel-badge-row-projects .elel-badge {
  width: auto;
  max-width: 100%;
  justify-content: space-between;
  padding: 10px 16px;
  white-space: normal;
  text-align: left;
}

.elel-badge-cta {
  font-family: var(--elel-font-sans);
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.elel-badge:hover,
.elel-badge:focus-visible {
  transform: translateY(-1px);
  background-color: var(--elel-badge-hover-surface);
}

.elel-badge:hover .elel-badge-cta,
.elel-badge:focus-visible .elel-badge-cta {
  opacity: 1;
}

.elel-badge:hover .elel-badge-cta:first-child,
.elel-badge:focus-visible .elel-badge-cta:first-child {
  transform: translateX(-2px);
}

.elel-badge:hover .elel-badge-cta:last-child,
.elel-badge:focus-visible .elel-badge-cta:last-child {
  transform: translateX(2px);
}

.elel-badge:focus-visible {
  outline: 2px solid var(--elel-badge-focus);
  outline-offset: 2px;
}

@media (prefers-color-scheme: dark) {
  .elel-badge:hover,
  .elel-badge:focus-visible {
    background-color: var(--elel-badge-hover-surface);
  }
}

@media (prefers-reduced-motion: reduce) {
  .elel-badge,
  .elel-badge-cta {
    transition: none;
  }

  .elel-badge:hover,
  .elel-badge:focus-visible {
    transform: none;
  }

  .elel-badge:hover .elel-badge-cta,
  .elel-badge:focus-visible .elel-badge-cta {
    transform: none;
  }
}

.elel-body p {
  margin: 0 0 1em;
}

.elel-pre-greeting-image-wrap {
  display: flex;
  justify-content: flex-start;
  margin: 48px 0 24px;
}

.elel-pre-greeting-image {
  width: 60%;
  max-width: 360px;
  min-width: 200px;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  border: 1.5px solid var(--elel-photo-outline);
}

.elel-home-wordmark {
  font-family: inherit;
  font-style: italic;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  display: inline;
  vertical-align: baseline;
}

@media (max-width: 480px) {
  .elel-pre-greeting-image {
    width: 70%;
  }
}

.elel-body p:last-child {
  margin-bottom: 0;
}

html[data-motion="enhanced"] .elel-project-title,
html[data-motion="enhanced"] .elel-project-summary,
html[data-motion="enhanced"] .elel-home-badge-group,
html[data-motion="enhanced"] .elel-section,
html[data-motion="enhanced"] .elel-shot,
html[data-motion="enhanced"] .elel-note-header-row,
html[data-motion="enhanced"] .elel-note-title,
html[data-motion="enhanced"] .elel-note-card,
html[data-motion="enhanced"] .elel-note-content h3,
html[data-motion="enhanced"] .elel-note-footer-card,
html[data-motion="enhanced"] .elel-badge-row-links .elel-badge,
html[data-motion="enhanced"] .elel-pre-greeting-image-wrap,
html[data-motion="enhanced"] .elel-lightbox,
html[data-motion="enhanced"] .elel-lightbox-image,
html[data-motion="enhanced"] .elel-lightbox-close {
  will-change: transform, opacity;
}

.elel-home-logo-mark {
  width: 30px;
  height: auto;
  display: block;
  fill: currentColor;
  transition: filter 0.18s ease;
}

.elel-home-link:hover .elel-home-logo-mark,
.elel-home-link:focus-visible .elel-home-logo-mark {
  filter: drop-shadow(0 0 10px var(--elel-logo-accent-glow));
}

.elel-emphasis {
  margin-top: 1.5em;
  font-size: 15px;
}

body.elel-home .elel-body {
  max-width: 66ch;
  margin: 0 auto;
}

.elel-footer {
  font-family: var(--elel-font-sans);
  font-size: 12px;
  opacity: 0.85;
  text-align: center;
  margin-top: 40px;
}

.elel-footer a {
  color: inherit;
  text-decoration: none;
}

.elel-note-card,
.elel-note-footer-card {
  border: none;
  border-radius: 10px;
  background: transparent;
  padding: 12px 0;
  box-sizing: border-box;
}

.elel-note-card {
  margin: 0 0 28px;
}

.elel-note-header-row {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 28px;
  font-family: var(--elel-font-badge);
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.elel-note-number,
.elel-note-date {
  font-size: 0.72em;
}

.elel-note-header-dot {
  position: relative;
  top: 0.13em;
}

.elel-note-title {
  margin: 0 0 26px;
  font-family: var(--elel-font-badge);
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.elel-note-meta {
  margin: 0;
  font-family: var(--elel-font-badge);
  font-size: 0.85rem;
  line-height: 1.45;
}

.elel-note-content p {
  margin: 0 0 1em;
}

.elel-note-content p:last-child {
  margin-bottom: 0;
}

.elel-note-content ul {
  margin: 0 0 1em 1.2em;
  padding: 0;
}

.elel-note-content li {
  margin: 0 0 0.08em;
  line-height: 1.35;
}

.elel-note-content li:last-child {
  margin-bottom: 0;
}

.elel-note-content code,
.elel-project-content code {
  font-family: var(--elel-font-badge);
  font-size: 0.92em;
  background-color: rgba(20, 16, 16, 0.16);
  border: 1px solid rgba(20, 16, 16, 0.24);
  border-radius: 6px;
  padding: 0.08em 0.38em;
}

.elel-inline-code {
  font-family: var(--elel-font-badge);
  font-size: 0.92em;
  background-color: #ded8cd;
  border: 1px solid #bfb6a7;
  border-radius: 6px;
  padding: 0.08em 0.38em;
}

html[data-theme="light"] .elel-note-content code,
html[data-theme="light"] .elel-project-content code,
html[data-theme="light"] .elel-inline-code {
  background-color: #ded8cd;
  border-color: #bfb6a7;
}

html[data-theme="dark"] .elel-note-content code,
html[data-theme="dark"] .elel-project-content code,
html[data-theme="dark"] .elel-inline-code {
  background-color: rgba(245, 241, 234, 0.12);
  border-color: rgba(245, 241, 234, 0.24);
}

@media (prefers-color-scheme: dark) {
  .elel-note-content code,
  .elel-project-content code,
  .elel-inline-code {
    background-color: rgba(245, 241, 234, 0.12);
    border-color: rgba(245, 241, 234, 0.24);
  }
}

.elel-note-footer-card {
  margin-top: 36px;
  font-family: var(--elel-font-badge);
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.15;
  white-space: nowrap;
}

.elel-note-signature-name {
  font-family: var(--elel-font-serif);
  font-style: italic;
}

@media (max-width: 640px) {
  .elel-note-card {
    padding: 12px 0;
    border-radius: 10px;
  }

  .elel-note-footer-card {
    padding: 0;
    border-radius: 0;
  }
}

.elel-project-title {
  font-family: var(--elel-font-sans);
  font-size: clamp(32px, 4.4vw, 44px);
  line-height: 1.15;
  margin: 0 0 10px;
}

.elel-project-summary {
  margin: 0 0 26px;
}

.elel-project-content[data-gsap-scope="project-detail"] > .elel-project-summary {
  margin-bottom: 20px;
}

.elel-project-content[data-gsap-scope="project-detail"]
  > .elel-project-summary
  + .elel-badge-row {
  margin-bottom: 32px;
}

.elel-project-content .elel-grouped-badge-index,
.elel-project-content[data-gsap-scope="project-detail"] .elel-section:last-child {
  margin-bottom: 0;
}

.elel-project-content .elel-grouped-badge-index .elel-home-badge-group .elel-home-badge-label {
  margin-bottom: 2px;
}

.elel-project-content .elel-grouped-badge-index .elel-home-badge-group .elel-badge-row {
  margin-bottom: 0;
}

.elel-project-content .elel-grouped-badge-index .elel-home-badge-group:last-child {
  margin-bottom: 0;
}

.elel-project-content[data-gsap-scope="notes-index"] + .elel-bottom-back {
  margin-top: 48px;
}

.elel-project-content[data-gsap-scope="project-detail"] .elel-section {
  margin: 0 0 32px;
}

.elel-project-content[data-gsap-scope="project-detail"] .elel-section h2 {
  margin-bottom: 14px;
}

.elel-project-content[data-gsap-scope="project-detail"] .elel-section > p {
  margin: 0;
}

.elel-project-meta {
  margin: 18px 0 0;
  font-family: var(--elel-font-badge);
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.72;
}

.elel-project-meta-label {
  display: block;
  margin-bottom: 4px;
  margin-right: 0.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.elel-section {
  margin: 0 0 24px;
}

.elel-section h2 {
  margin: 0 0 8px;
  font-family: var(--elel-font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.82;
}

.elel-section ul {
  margin: 0;
  padding-left: 18px;
}

.elel-section li {
  margin: 0 0 8px;
}

body.elel-project .elel-section ul {
  list-style: disc;
  padding-left: 1.05em;
}

body.elel-project .elel-section li {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 2px;
}

body.elel-project .elel-section li::marker {
  font-size: 0.8em;
}

.elel-shot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px);
  justify-content: start;
  gap: 12px;
}

.elel-shot {
  border: 1.5px solid currentColor;
  border-radius: 8px;
  width: 220px;
  min-height: 0;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--elel-font-sans);
  font-size: 12px;
  opacity: 0.8;
  overflow: hidden;
  margin: 0;
}

.elel-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.elel-shot-note-cover {
  width: min(100%, 640px);
  aspect-ratio: 3741 / 2120;
  margin: 0 0 24px;
}

.elel-shot-photo-outline {
  border: 1.5px solid var(--elel-photo-outline);
  border-radius: 12px;
}

.elel-shot-no-outline {
  border: none;
}

.elel-shot[data-lightbox-ready] {
  cursor: zoom-in;
}

.elel-shot[data-lightbox-ready]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.elel-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  overscroll-behavior: contain;
  touch-action: manipulation;
}

.elel-lightbox[aria-hidden="false"] {
  display: flex;
}

.elel-lightbox-image {
  max-width: min(96vw, 1100px);
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1.5px solid rgba(244, 247, 249, 0.7);
  background: #111;
  object-fit: contain;
}

.elel-lightbox-close {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 12px);
  right: calc(env(safe-area-inset-right) + 12px);
  width: 46px;
  height: 46px;
  border: 1.5px solid var(--elel-lightbox-close-border);
  border-radius: 999px;
  background: var(--elel-lightbox-close-surface);
  color: var(--elel-lightbox-close);
  font-family: var(--elel-font-sans);
  font-size: 20px;
  opacity: 0.85;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.elel-lightbox-close:hover,
.elel-lightbox-close:focus-visible {
  transform: translateY(-1px);
  opacity: 1;
  background: rgba(0, 0, 0, 0.58);
  border-color: rgba(244, 247, 249, 0.52);
}

.elel-lightbox-close:focus-visible {
  outline: 2px solid rgba(244, 247, 249, 0.7);
  outline-offset: 2px;
}

body.elel-lightbox-open {
  overflow: hidden;
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}
