/* BereaNote 사이트.
   색은 히어로 그림에서 쟀다: 아래쪽 어둠 #040103, 띠 #230c1e, 빛 #dbc7e5. 강조색은 앱과 같은 티레 자주 #7d1d63.
   모서리는 앱과 같은 4 / 6 / 10. */

:root {
  --paper: #fff;
  --ink: #000;
  --ink-2: #5b5560;
  --rule: #e6e1e5;
  --tyre: #7d1d63;
  --tyre-text: #7d1d63;

  --night: #040103;
  --dye: #230c1e;
  --bloom: #dbc7e5;
  --on-dark-2: #c3b5be;

  --r-s: 4px;
  --r-m: 6px;
  --r-l: 10px;
  --gutter: 24px;

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", Pretendard, "Noto Sans KR",
    "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #000;
    --ink: #fff;
    --ink-2: #b9aeb6;
    --rule: #2a2228;
    --tyre-text: #dc9aca;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: var(--r-s);
}

.skip {
  position: absolute;
  z-index: 10;
  top: 8px;
  left: 8px;
  padding: 8px 14px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-m);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ── 머리 막대 ─────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(var(--gutter), env(safe-area-inset-right)) 18px max(var(--gutter), env(safe-area-inset-left));
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--rule);
}

.site-header--over {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  justify-content: flex-end;
  color: #fff;
  border-bottom: 0;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 22px;
}

.site-header a {
  text-decoration: none;
}

.site-header a:hover,
.site-header a[aria-current="page"] {
  text-decoration: underline;
}

.wordmark {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
}

/* ── 히어로 ───────────────────────────────────────────────────
   그림 안에 피라미드와 워드마크가 들어 있다(워드마크는 그림 높이의 50% 지점).
   그림의 폭을 정해 두고 글을 그 높이의 57.5% 아래에서 시작하게 해서 어느 화면에서도 워드마크 바로 밑에 온다. */

.hero {
  --art-w: max(100vw, 1080px);
  --art-h: calc(var(--art-w) * 0.5625);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: var(--art-h);
  background: var(--night);
  color: #fff;
  text-align: center;
}

.hero__art {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: var(--art-w);
  height: var(--art-h);
  transform: translateX(-50%);
}

.hero__art img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16%;
  background: linear-gradient(transparent, var(--night));
}

.hero__copy {
  max-width: 46rem;
  margin: 0 auto;
  padding: calc(var(--art-h) * 0.575) var(--gutter) 88px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(1.875rem, 1.15rem + 3vw, 3.5rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.hero__lead {
  max-width: 34rem;
  margin: 0 auto 36px;
  color: var(--on-dark-2);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}

@media (prefers-reduced-motion: no-preference) {
  .hero__art img {
    animation: art-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__copy > * {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__copy > :nth-child(1) {
    animation-delay: 0.45s;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 0.6s;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 0.75s;
  }
}

@keyframes art-in {
  from {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* ── 스토어 줄(히어로와 마무리) ─────────────────────────────── */

.store p {
  margin: 0;
}

.store__soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1rem;
}

/* 그림 속 수평선 위의 빛점 */
.store__soon::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(219, 199, 229, 0.25), 0 0 14px 4px rgba(178, 79, 145, 0.9);
}

.store__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store__meta {
  margin-top: 10px !important;
  color: var(--on-dark-2);
  font-size: 0.875rem;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--r-m);
  background: var(--tyre);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(219, 199, 229, 0.3);
}

.button:hover {
  background: #96257a;
}

/* ── 기능: 글 블록 ──────────────────────────────────────────── */

.feature__text {
  max-width: 60rem;
  margin: 0 auto;
  padding: 104px var(--gutter) 84px;
  text-align: center;
}

.mark {
  width: 28px;
  height: 30px;
}

.mark__top {
  fill: #b24f91;
}

.mark__left {
  fill: #822068;
}

.mark__right {
  fill: #4f1240;
}

.feature__text h2 {
  margin: 18px 0 36px;
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.625rem);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.feature__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 52rem;
  margin: 0 auto;
  color: var(--ink-2);
  text-align: left;
}

.feature__cols p {
  margin: 0;
}

@media (max-width: 720px) {
  .feature__text {
    padding: 72px var(--gutter) 56px;
  }

  .feature__cols {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}

/* ── 기능: 스크린샷 띠 ─────────────────────────────────────────
   히어로 그림의 수평선과 빛을 띠마다 되풀이한다. 스크린샷이 그 선 위에 선다. */

.stage {
  --floor: 112px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 56px var(--gutter) var(--floor);
  background: linear-gradient(180deg, #2b0f25 0%, var(--dye) 42%, #0c030a 100%);
  color: #fff;
  text-align: center;
}

/* 수평선: 스크린샷의 아래 모서리가 정확히 이 선에 닿는다 */
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: var(--floor);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #823c71 14%, #f6ecf7 50%, #823c71 86%, transparent 100%);
}

.stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: var(--floor);
  width: min(1500px, 170%);
  height: calc(var(--floor) * 1.9);
  transform: translate(-50%, 50%);
  background: radial-gradient(closest-side, rgba(203, 110, 173, 0.6), rgba(125, 29, 99, 0.2) 52%, transparent);
}

@media (max-width: 720px) {
  .stage {
    --floor: 72px;
    padding-top: 40px;
  }
}

.tabs {
  display: inline-flex;
  gap: 2px;
  margin-bottom: 32px;
  padding: 3px;
  border: 1px solid rgba(219, 199, 229, 0.25);
  border-radius: var(--r-m);
  background: rgba(4, 1, 3, 0.4);
}

.tabs button {
  padding: 6px 18px;
  border: 0;
  border-radius: var(--r-s);
  background: none;
  color: var(--on-dark-2);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

.tabs button:hover {
  color: #fff;
}

.tabs button[aria-selected="true"] {
  background: rgba(219, 199, 229, 0.18);
  color: #fff;
}

.shot {
  margin: 0 auto;
}

.shot--mac {
  max-width: 1040px;
}

.shot--ipad {
  max-width: 820px;
}

.shot--iphone {
  max-width: min(300px, 68vw);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-l);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.6);
}

.shot--ipad img {
  border-radius: 16px;
}

.shot--iphone img {
  border-radius: 30px;
}

.slot {
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 28px 20px;
  border: 1px dashed rgba(219, 199, 229, 0.45);
  border-radius: var(--r-l);
  background: rgba(4, 1, 3, 0.32);
  color: var(--on-dark-2);
  font-size: 0.875rem;
  line-height: 1.55;
}

.slot--mac {
  aspect-ratio: 16 / 10;
}

.slot--ipad {
  aspect-ratio: 2360 / 1640;
}

.slot--iphone {
  aspect-ratio: 1206 / 2622;
  border-radius: 30px;
}

.slot p,
.slot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slot__title {
  color: #fff;
  font-size: 1rem;
}

.slot code {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.slot li span {
  white-space: nowrap;
}

.slot__hint {
  max-width: 26rem;
}

/* ── 마무리 ─────────────────────────────────────────────────── */

.closing {
  padding: 112px var(--gutter) 104px;
  background: linear-gradient(180deg, #0c030a, var(--night));
  color: #fff;
  text-align: center;
}

.mark--large {
  width: 44px;
  height: 47px;
}

.closing h2 {
  margin: 22px 0 18px;
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 300;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.closing > p {
  max-width: 34rem;
  margin: 0 auto 40px;
  color: var(--on-dark-2);
}

/* ── 푸터 ───────────────────────────────────────────────────── */

.site-footer {
  padding: 36px max(var(--gutter), env(safe-area-inset-right)) calc(52px + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid rgba(219, 199, 229, 0.14);
  background: var(--night);
  color: var(--on-dark-2);
  font-size: 0.8125rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-bottom: 26px;
  font-size: 0.875rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a[aria-current="page"] {
  text-decoration: underline;
}

.site-footer p {
  max-width: 44rem;
  margin: 0 auto 6px;
}

/* ── 글로 된 쪽 ─────────────────────────────────────────────── */

.doc {
  max-width: 42rem;
  margin: 0 auto;
  padding: 64px var(--gutter) 128px;
}

.doc h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 1.45rem + 2.3vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.doc__meta {
  margin: 0 0 40px;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.doc__intro {
  margin: 0 0 48px;
  font-size: 1.1875rem;
  line-height: 1.65;
}

.doc h1 + .doc__intro {
  margin-top: 28px;
}

.doc h2 {
  margin: 48px 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

.doc h3 {
  margin: 30px 0 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.5;
}

.doc p {
  margin: 0 0 14px;
}

.doc section > p,
.doc h3 + p {
  color: var(--ink-2);
}

.doc a {
  color: var(--tyre-text);
}

.doc--notfound section + section {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid var(--rule);
}

.draft {
  margin: 0;
  padding: 10px var(--gutter);
  background: #fff2c9;
  color: #4d3800;
  font-size: 0.875rem;
  text-align: center;
}

.todo {
  padding: 1px 6px;
  border-radius: var(--r-s);
  background: #fff2c9;
  color: #4d3800;
}
