@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

html {
  font-optical-sizing: auto;
}

:root {
  --bg: #ffffff;
  --fg: #000000;
  --muted: #4d4d4d;
  --subtle: #999999;
  --pill-bg: #fafafa;
  --pill-border: #f1f1f1;
  --card: #ffffff;
  --border: #f1f1f1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

html {
  color-scheme: light dark;
}

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  margin-top: 160px;
}

.container {
  width: min(600px, 100vw);
  max-width: 600px;
  margin: 0 auto;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 0 24px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.brand-avatar {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.title {
  margin: 0;
  color: var(--fg);
  font-weight: 550;
  font-size: 22px;
  line-height: 28px;
  text-align: left;
}

.subtitle {
  margin: 0;
  color: var(--subtle);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: -0.004em;
  text-align: left;
}

.section {
  padding: 24px 0;
}

.section-title {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.004em;
  color: var(--subtle);
}

.text-block p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
}

.masonry-outer {
  width: 100%;
}

.masonry-grid {
  width: calc(100% - 96px);
  max-width: 1184px;
  margin: 64px auto 0;
  column-count: 3;
  column-gap: 16px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
}

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

.h-268 {
  height: 268px;
}
.h-332 {
  height: 332px;
}
.h-400 {
  height: 400px;
}
.h-440 {
  height: 440px;
}
.h-536 {
  height: 536px;
}
.h-600 {
  height: 600px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.card-media {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.card-media img {
  display: block;
  width: 100%;
  height: auto;
}

.work-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.work-card {
  display: flex;
  height: 280px;
  gap: 40px;
  box-sizing: border-box;
  overflow: hidden;
}
.work-content {
  width: 224px;
  display: flex;
  flex-direction: column;
  padding: 20px 0 20px 20px;
}
.work-content .card-title {
  margin: 0;
}
.work-content .card-desc {
  margin-top: 8px;
  width: 184px;
}
.work-content .pill-list {
  margin-top: auto;
}
.work-media {
  width: 336px;
  height: 280px;
  margin-left: auto;
  overflow: hidden;
  width: calc(100% - 20px - 224px - 40px);
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 6px;
}

.pill {
  background: var(--pill-bg);
  color: var(--fg);
  border: 1px solid var(--pill-border);
  border-radius: 9999px;
  padding: 0 8px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}

.pill-accent {
  background: var(--pill-bg);
}

.card-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 19px;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.link {
  color: var(--subtle);
  text-decoration: none;
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 0 64px;
  color: var(--subtle);
}

.site-footer .links {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 600ms cubic-bezier(0.4, 0, 0.2, 1),
    transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  body {
    margin-top: 64px;
  }

  .container {
    width: calc(100% - 48px);
  }
  .masonry-grid {
    width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
    column-count: 1;
    column-gap: 12px;
  }
  .section {
    padding: 24px 0;
  }
  .brand {
    gap: 20px;
  }

  .brand-avatar {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
  }

  .title {
    font-size: 20px;
    line-height: 26px;
  }

  .subtitle {
    font-size: 14px;
    line-height: 22px;
  }
  .work-card {
    flex-direction: column;
    height: auto;
    gap: 0px;
  }
  .work-content {
    width: 100%;
    padding: 20px 20px 0 20px;
  }
  .work-content .card-desc {
    width: 100%;
    max-width: 256px;
    margin-bottom: 16px;
  }
  .work-media {
    width: 100%;
    height: auto;
  }
  .site-footer {
    padding: 48px 0 64px;
  }
  .site-footer .links {
    gap: 20px;
    flex-wrap: wrap;
  }

  .site-footer .link {
    font-size: 14px;
  }
  .pill-list {
    margin-top: 16px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0b;
    --fg: #f5f5f5;
    --muted: #c9c9c9;
    --subtle: #a7a7a7;
    --card: #111111;
    --border: #232323;
    --pill-bg: #151515;
    --pill-border: #262626;
  }
}
