@font-face {
  font-family: "Bief Inter";
  src: url("assets/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bief Display";
  src: url("assets/inter-display-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --gutter: clamp(24px, 4.45vw, 80px);
  font-family: "Bief Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bief-bg);
  color: var(--bief-text);
}

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

.page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(36px, 5.5vh, 68px);
  min-height: 100svh;
  max-width: 1920px;
  margin-inline: auto;
  padding: clamp(28px, 4.8vh, 52px) var(--gutter) clamp(28px, 4.5vh, 48px);
}

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: block;
  width: 156px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.domain, .frame-caption {
  color: var(--bief-text-2);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.workspace {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 460px;
  padding: clamp(40px, 7vw, 120px);
}

.workspace-frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--bief-border);
  border-top: 2px solid var(--bief-accent);
  transform-origin: left center;
  animation: unfold 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.statement { position: relative; }

h1 {
  margin: 0;
  font-family: "Bief Display", "Bief Inter", sans-serif;
  font-size: clamp(60px, 7.65vw, 144px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.065em;
  animation: arrive 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.headline-line { display: block; }
.connective { color: var(--bief-text-2); }

.translation {
  margin: clamp(28px, 3.6vw, 48px) 0 0;
  color: var(--bief-text-2);
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.08em;
  animation: arrive 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.frame-caption {
  position: absolute;
  right: 24px;
  bottom: -9px;
  padding-inline: 12px;
  background: var(--bief-bg);
}

.availability {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}

.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--bief-text-2);
}

.divider, .availability-zh { color: var(--bief-text-2); }
.availability-zh { font-size: 12px; letter-spacing: 0.06em; }

@keyframes unfold {
  from { opacity: 0; transform: scaleX(0.94); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1920px) {
  .page { gap: 68px; }
}

@media (max-width: 700px) {
  .page { gap: 40px; }
  .wordmark { width: 120px; }
  .workspace { min-height: 400px; padding: 48px 24px; }
  h1 { font-size: clamp(46px, 14vw, 76px); letter-spacing: -0.06em; line-height: 1.1; }
  .workspace-word { display: block; }
  .translation { margin-top: 30px; font-size: 12px; letter-spacing: 0.04em; }
  .frame-caption { right: 12px; font-size: 10px; bottom: -8px; padding-inline: 10px; }
  .footer { gap: 16px; }
  .availability { gap: 9px; font-size: 12px; }
  .availability-zh, .domain { font-size: 10px; }
}

@media (max-width: 360px) {
  :root { --gutter: 20px; }
  .workspace { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
