@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --bg: #2B2320;
  --surface: #241C19;
  --text: #EFE3D0;
  --text-muted: rgba(239, 227, 208, 0.62);
  --accent: #D98E4A;
  --divider: rgba(239, 227, 208, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', system-ui, sans-serif;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: #1A140F; }

nav {
  display: flex;
  gap: 20px;
  flex: none;
}

nav a {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
  white-space: nowrap;
}

nav a:hover { color: var(--accent); }

.hero {
  padding: 40px 32px 44px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.hero-top nav {
  padding-top: 10px;
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 0.98;
  margin: 0;
  letter-spacing: -0.5px;
}

.hero p, .hero .lede {
  font-weight: 700;
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 14px 0 0;
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
  padding: 8px 32px 56px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tile-media {
  aspect-ratio: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  border: 3px solid var(--felt, var(--accent));
  background: var(--felt, var(--surface));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tile:hover .tile-media {
  border-color: var(--accent);
  transform: translateY(-2px);
}

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

.tile-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px;
}

.tile-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--felt, var(--accent));
  flex: none;
}

.tile-label span {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
}

/* about page */
.about-body {
  padding: 8px 32px 72px;
}

.about-body .body {
  font-weight: 400;
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 640px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--text-muted);
}

.about-body .contact {
  margin-top: 32px;
}

.about-body .contact h3 {
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 8px;
  color: var(--text-muted);
}

.about-body .contact a {
  font-weight: 700;
  font-size: 17px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* project detail page */
.project-hero {
  padding: 40px 32px 24px;
}

.project-hero h1 {
  font-weight: 800;
  font-size: clamp(30px, 5.5vw, 56px);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.5px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 18px;
}

.project-meta .tag {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--bg);
  background: var(--accent);
  padding: 5px 12px;
  border-radius: 999px;
}

.project-meta .tag.outline {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--divider);
}

.project-meta a.tag.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.project-media {
  aspect-ratio: 16 / 9;
  width: calc(100% - 64px);
  margin: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  border: 3px solid var(--felt, var(--accent));
  background: var(--felt, var(--surface));
}

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

.project-media.has-embed {
  aspect-ratio: 640 / 380;
  background: #000;
}

.project-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.project-body {
  display: block;
  max-width: 720px;
  padding: 40px 32px 8px;
}

.project-body p {
  font-weight: 400;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.project-body h2 {
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text);
  margin: 40px 0 14px;
}

.project-body h3 {
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--accent);
  margin: 28px 0 10px;
}

.project-body p:empty { display: none; }

.project-body figure {
  margin: 28px 0;
}

.project-body figure img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 3px solid var(--felt, var(--accent));
}

.project-body figcaption {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 32px 56px;
}

.project-nav a {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-muted);
}

.project-nav a:hover { color: var(--accent); }
