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

:root {
  --bg: #f1ede3;
  --fg: #101010;
  --fg-muted: #444444;
  --border: #000000;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --entry-duration: 0.3s;
  --entry-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background: transparent;
  position: relative;
}

a {
  color: var(--fg);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.6;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  max-width: 600px;
}

section {
  padding: 4rem 0;
}

section:first-child {
  padding-top: 6rem;
}

section:last-child {
  padding-bottom: 6rem;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: 3rem 0;
  }

  section:first-child {
    padding-top: 5rem;
  }
}

.border-top {
  width: 98%;
  height: 1.5px;
  background: var(--border);
  margin: 1.5rem auto 0;
}

.border-bottom {
  width: 98%;
  height: 1.5px;
  background: var(--border);
  margin: 0 auto 1.5rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 100;
}



.content-box {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.intro {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio {
  font-size: 1.625rem;
  color: var(--fg);
  line-height: 1.7;
  max-width: 750px;
}

.links {
  margin-top: 1rem;
  margin-left: 1.25rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.link-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  font-size: 0.875rem;
  color: var(--fg);
}

.link-label {
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.link-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.email-copy-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.email-copy {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.copy-hint {
  color: var(--fg-muted);
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 0.15s;
}

.copy-hint.copied {
  color: var(--fg);
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .header {
    padding: 1rem 1.5rem;
  }

  .content-box {
    padding: 0 1.5rem;
  }

  .link-item {
    grid-template-columns: 6rem 1fr;
  }
}

.project-entry {
  margin-left: 1.25rem;
}

.entry-collapse {
  height: 0;
  overflow: hidden;
}

/* Fallback for no-JS: app.js takes over the height inline when it runs. */
.project-entry[open] > .entry-collapse {
  height: auto;
}

.entry-collapse > .entry-body {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transition: opacity var(--entry-duration) var(--entry-ease);
}

.project-entry[open] > .entry-collapse > .entry-body {
  opacity: 1;
}

.project-entry summary {
  list-style: none;
  cursor: pointer;
}

.project-entry summary::-webkit-details-marker {
  display: none;
}

.entry-summary {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.entry-chevron {
  width: 0.75rem;
  height: 0.75rem;
  margin-left: auto;
  padding-left: 0;
  flex-shrink: 0;
  align-self: center;
  color: var(--fg-muted);
  transition: transform var(--entry-duration) var(--entry-ease);
}

.project-entry[open] > .entry-summary .entry-chevron {
  transform: rotate(180deg);
}

.entry-title {
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.entry-status {
  padding-left: 0.75rem;
  font-weight: 400;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  white-space: nowrap;
}

.entry-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 700px;
  margin-top: 0.5rem;
}

.entry-video {
  margin-top: 0.75rem;
  margin-left: 1.25rem;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 16 / 9;
  background: var(--fg-muted);
  opacity: 0.1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.entry-links {
  margin-top: 0.75rem;
  margin-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.entry-links .link-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  font-size: 0.875rem;
  color: var(--fg);
}

.entry-links .link-label {
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.entry-links .link-item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-insight {
  margin-top: 1rem;
  margin-left: 1.25rem;
}

.insight-toggle {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.15s;
}

.insight-toggle:hover {
  color: var(--fg);
}

.insight-toggle::after {
  content: '';
  margin-left: 0.6rem;
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform var(--entry-duration) var(--entry-ease);
}

.entry-insight[open] > .insight-toggle::after {
  transform: translateY(0.1rem) rotate(-135deg);
}

.insight-text {
  margin-top: 0.6rem;
  font-size: 0.9375rem;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.7;
  max-width: 700px;
}

@media (max-width: 768px) {
  .entry-links .link-item {
    grid-template-columns: 6rem 1fr;
  }
}

.signature {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  max-width: 160px;
  aspect-ratio: 603.47 / 221.98;
  line-height: 0;
}

.stroke {
  grid-column: 1 / 1;
  grid-row: 1 / 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  opacity: 0;
  animation-name: draw-in;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  animation-fill-mode: forwards;
}

@keyframes draw-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-collapse > .entry-body,
  .entry-chevron,
  .insight-toggle::after {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stroke {
    animation: none !important;
    opacity: 1 !important;
  }
}
