/* BEEN.HOMES — static archive site
   Edit colors and spacing here. No external assets required. */

:root {
  --bg: #f4f2ed;
  --ink: #101010;
  --muted: #6f6d68;
  --line: rgba(16, 16, 16, 0.16);
  --soft: rgba(16, 16, 16, 0.05);
  --panel: rgba(255, 255, 255, 0.42);
  --reverse: #101010;
  --reverse-ink: #f4f2ed;
  --radius: 0;
  --mono: "SF Mono", "Roboto Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Times New Roman", "Noto Serif KR", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(0, 0, 0, 0.06) 0 1px, transparent 1px);
  background-size: 18px 18px, 23px 23px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  background: rgba(244, 242, 237, 0.75);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  font-size: 10px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.main-nav a {
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 180ms ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.section {
  padding: 86px 28px;
  border-bottom: 1px solid var(--line);
}

.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-kicker,
.section-number {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-kicker {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 30px;
  align-items: end;
  margin: 78px 0;
}

h1 {
  margin: 0;
  max-width: 1100px;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.86;
  letter-spacing: -0.085em;
  font-weight: 650;
}

h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 620;
}

.hero-panel {
  border: 1px solid var(--line);
  padding: 18px;
  background: var(--panel);
}

.hero-panel p {
  margin: 0 0 40px;
  line-height: 1.6;
  word-break: keep-all;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.hero-meta span,
.tag {
  border: 1px solid var(--line);
  padding: 5px 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ticker div {
  display: flex;
  gap: 34px;
  width: max-content;
  padding: 13px 0;
  animation: slide 35s linear infinite;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.split-intro {
  display: grid;
  grid-template-columns: 190px minmax(0, 720px);
  gap: 30px;
  align-items: start;
}

.split-intro p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 18px;
  word-break: keep-all;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 34px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-button {
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 11px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.masonry-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr 0.8fr;
  gap: 12px;
}

.mix-card,
.work-card,
.personal-card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.mix-card:hover,
.work-card:hover,
.personal-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.62);
}

.mix-card {
  min-height: 260px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mix-card:nth-child(1) {
  min-height: 430px;
  grid-row: span 2;
}

.mix-card:nth-child(4) {
  min-height: 430px;
  grid-row: span 2;
}

.card-no,
.card-type,
.card-date {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-title {
  margin: 28px 0 10px;
  font-size: clamp(26px, 3vw, 52px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 620;
}

.card-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  word-break: keep-all;
}

.placeholder {
  position: absolute;
  inset: auto 16px 16px auto;
  width: 88px;
  height: 88px;
  border: 1px solid var(--ink);
  opacity: 0.34;
}

.placeholder::before,
.placeholder::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.placeholder::before {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
}

.placeholder::after {
  top: 50%;
  left: 0;
  height: 1px;
  width: 100%;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}

.work-card {
  min-height: 420px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}

.work-card:nth-child(3n + 1) {
  grid-column: span 5;
}

.work-card:nth-child(3n + 2) {
  grid-column: span 3;
}

.thumb {
  position: relative;
  min-height: 240px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(16,16,16,0.02), rgba(16,16,16,0.13)),
    repeating-linear-gradient(90deg, rgba(16,16,16,0.12) 0 1px, transparent 1px 46px);
}

.thumb::after {
  content: attr(data-category);
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.work-body,
.personal-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-title,
.personal-title {
  margin: 18px 0 12px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
}

.personal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.personal-card {
  min-height: 310px;
}

.personal-card:nth-child(4n + 2) {
  transform: translateY(34px);
}

.personal-card:nth-child(4n + 2):hover {
  transform: translateY(31px);
}

.personal-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
}

.index-section {
  background: var(--reverse);
  color: var(--reverse-ink);
}

.index-section .section-number,
.index-section .card-date {
  color: rgba(244, 242, 237, 0.62);
}

.search-label {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.search-label input {
  border: 1px solid rgba(244, 242, 237, 0.22);
  background: rgba(244, 242, 237, 0.08);
  color: var(--reverse-ink);
  padding: 12px;
  outline: none;
}

.search-label input::placeholder {
  color: rgba(244, 242, 237, 0.44);
}

.table-wrap {
  overflow-x: auto;
  border-top: 1px solid rgba(244, 242, 237, 0.2);
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 880px;
  font-family: var(--mono);
  font-size: 12px;
}

.archive-table th,
.archive-table td {
  border-bottom: 1px solid rgba(244, 242, 237, 0.16);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

.archive-table th {
  color: rgba(244, 242, 237, 0.55);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.archive-table tr {
  cursor: pointer;
}

.archive-table tr:hover {
  background: rgba(244, 242, 237, 0.08);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 12px;
}

.about-card {
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-card p:last-child {
  max-width: 760px;
  font-size: clamp(26px, 4vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin: 40px 0 0;
}

.about-list {
  border: 1px solid var(--line);
}

.about-list div {
  padding: 18px;
  min-height: 150px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-list div:last-child {
  border-bottom: 0;
}

.about-list span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-list strong {
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-dialog {
  width: min(920px, calc(100% - 28px));
  border: 1px solid var(--ink);
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

.detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dialog-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 540px;
}

.dialog-visual {
  min-height: 100%;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 40% 35%, rgba(16,16,16,0.12), transparent 28%),
    repeating-linear-gradient(0deg, rgba(16,16,16,0.09) 0 1px, transparent 1px 34px);
}

.dialog-text {
  padding: 60px 28px 28px;
}

.dialog-text h3 {
  margin: 16px 0;
  font-size: clamp(40px, 6vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.dialog-text p {
  line-height: 1.65;
  color: var(--muted);
  word-break: keep-all;
}

.dialog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .hero-grid,
  .about-section,
  .split-intro,
  .dialog-inner {
    grid-template-columns: 1fr;
  }

  .masonry-grid,
  .personal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .work-card,
  .work-card:nth-child(3n + 1),
  .work-card:nth-child(3n + 2) {
    grid-column: span 3;
  }

  .personal-card:nth-child(4n + 2),
  .personal-card:nth-child(4n + 2):hover {
    transform: none;
  }

  .dialog-visual {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .section {
    padding: 58px 16px;
  }

  h1 {
    font-size: clamp(54px, 18vw, 94px);
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    margin: 58px 0;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .controls {
    justify-content: flex-start;
  }

  .masonry-grid,
  .personal-grid,
  .works-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-card,
  .work-card:nth-child(3n + 1),
  .work-card:nth-child(3n + 2) {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
    padding: 24px 16px;
  }
}
