:root {
  color-scheme: light;
  --paper: #f9f6ef;
  --card: #fffdf8;
  --ink: #27211e;
  --muted: #63554b;
  --line: #ded4c6;
  --red: #ba3b2c;
  --red-dark: #9c2c21;
  --tint: #f5e5db;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: #eae2d8; }

body {
  max-width: 30rem;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  word-break: keep-all;
  box-shadow: 0 0 2rem #45281912;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.052em; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
button, label:has(input) { cursor: pointer; }
button:disabled { cursor: default; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
:focus-visible { outline: 2px solid var(--red-dark); outline-offset: 4px; }
::selection { background: #f0bcaa; }

.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--card);
}

.wrap {
  width: calc(100% - 2.5rem);
  margin-inline: auto;
}

.site-header, .app-header { border-bottom: 1px solid var(--line); }

.site-nav, .app-nav, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 1;
}

.brand-mark {
  --mark-size: 1.57rem;
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: var(--mark-size);
  height: var(--mark-size);
  margin-right: 0.48rem;
  border-radius: 28%;
  background: var(--red);
  color: var(--card);
}

.brand-mark::before {
  content: "";
  width: 46%;
  height: 46%;
  border: max(1px, calc(var(--mark-size) / 13)) solid currentColor;
  border-radius: 50%;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 19%;
  right: 17%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: currentColor;
}

.brand-dot, .sparkle { color: var(--red); }
.text-link { font-size: 0.9375rem; font-weight: 650; }
.text-link:hover { color: var(--red-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
}

.button-primary {
  background: var(--red);
  color: #fffdf8;
}

.button-primary:hover:not(:disabled) { background: var(--red-dark); }
.button-primary:disabled { background: #e8ded2; color: #736357; }
.button-outline { border-color: #b39f8f; background: transparent; }
.button-outline:hover { border-color: var(--red); background: var(--tint); }
.button-small { min-height: 2.75rem; padding-inline: 0.95rem; font-size: 0.875rem; }
.button-block { width: 100%; }

.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.hero {
  display: grid;
  gap: 1.8rem;
  padding-block: 2.5rem 2.7rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--red-dark);
  font-size: 0.875rem;
  font-weight: 750;
}

.eyebrow-line { width: 1.4rem; height: 1px; background: currentColor; }
.hero h1 { margin-block: 1.1rem; font-size: clamp(2.5rem, 10.4vw, 3.1rem); font-weight: 850; line-height: 1.09; letter-spacing: -0.06em; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-description { color: var(--muted); line-height: 1.75; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.35rem; }

.hero-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.05;
  border-radius: 0.7rem;
  background-color: #b53629;
  background-image: radial-gradient(ellipse at 57% 25%, #d4543a 0%, transparent 67%), repeating-linear-gradient(115deg, #ffffff07 0 1px, transparent 1px 4px);
  color: var(--paper);
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.85rem;
  border: 1px solid #fbe7cc58;
  border-radius: 0.33rem;
}

.art-note, .art-date {
  position: absolute;
  font: 0.66rem/1.4 var(--mono);
  letter-spacing: 0.06em;
}

.art-note { top: 1.4rem; left: 1.55rem; }
.art-date { top: 1.4rem; right: 1.55rem; text-align: right; }
.art-caption { position: absolute; right: 1.55rem; bottom: 1.12rem; font-size: 0.75rem; }

.print {
  position: absolute;
  padding: 0.45rem 0.45rem 1.2rem;
  background: #f6ebd8;
  box-shadow: 0 0.85rem 1.6rem #4f1d2057;
}

.print img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.print-coffee { top: 18%; left: 12%; width: 34%; transform: rotate(-14deg); }
.print-bookshop { top: 47%; left: 10%; width: 36%; transform: rotate(-8deg); }
.art-phone {
  position: absolute;
  top: 9%;
  left: 43%;
  width: 44%;
  height: 78%;
  overflow: hidden;
  border: 4px solid #2c221e;
  border-radius: 1.2rem;
  background: var(--card);
  box-shadow: 0 1.2rem 2rem #4f1d2077, 0 0 0 1px #7f6355;
  color: var(--ink);
  transform: rotate(7deg);
}

.art-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 1.28rem;
  padding: 0 0.42rem;
  font-size: 0.66rem;
  font-weight: 800;
}

.phone-island { position: absolute; top: 26%; left: 50%; width: 27%; height: 0.6rem; transform: translateX(-50%); border-radius: 1rem; background: #27211e; }
.phone-battery { width: 0.75rem; height: 0.38rem; border: 1px solid #27211e; border-radius: 0.1rem; background: linear-gradient(to right, #27211e 80%, transparent 80%); }
.art-phone-content { padding: 0.18rem 0.5rem; }
.art-phone-brand { display: flex; align-items: center; font-size: 0.85rem; line-height: 1; font-weight: 850; letter-spacing: -0.08em; }
.art-phone-brand .brand-mark { --mark-size: 0.95rem; margin-right: 0.24rem; }
.art-phone-date { margin-block: 0.42rem 0.3rem; font-size: 0.68rem; font-weight: 750; }
.art-phone-photo { width: 100%; height: auto; aspect-ratio: 1.34; border-radius: 0.3rem; object-fit: cover; }
.art-phone-label { margin-top: 0.35rem; color: var(--red-dark); font-size: 0.65rem; font-weight: 750; }
.art-phone-title { margin-top: 0.22rem; font-size: 1.05rem; letter-spacing: -0.065em; font-weight: 850; line-height: 1.12; }
.phone-home { position: absolute; bottom: 0.43rem; left: 32%; width: 36%; height: 3px; border-radius: 3px; background: #29211d; }

.example {
  padding-block: 2.75rem;
  border-block: 1px solid var(--line);
  background: #f2eae0;
  scroll-margin-top: 1.5rem;
}

.example-layout {
  display: grid;
  gap: 1.25rem;
}

.section-intro h2 { margin-block: 0.85rem; font-size: 2rem; }
.section-intro > p:last-child:not(.eyebrow) { max-width: 24rem; color: var(--muted); }
.example-report, .daily-card { overflow: hidden; border: 1px solid var(--line); border-radius: 0.65rem; background: var(--card); }
.example-photos { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3px; }
.example-photos img { width: 100%; height: 7.2rem; object-fit: cover; }
.example-copy, .daily-copy { padding: 1rem 1.15rem 1.15rem; }
.example-copy h3, .daily-copy h2 { margin-block: 0.35rem 0.5rem; font-size: 1.4rem; }
.example-copy > p:last-child, .daily-copy > p:not(.report-kicker) { color: var(--muted); }
.report-kicker { color: var(--red-dark); font-size: 0.875rem; font-weight: 750; }
.report-kicker .sparkle { margin-right: 0.12rem; font-size: 1.08em; }

.steps { padding-block: 2.75rem; }
.steps-list { display: grid; gap: 1.25rem; margin-block: 1.5rem 2rem; }
.steps-list article { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.steps-list h3 { margin-block: 0.55rem 0.45rem; font-size: 1.31rem; }
.steps-list p { color: var(--muted); }

.step-icon {
  display: grid;
  place-items: center;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.45rem;
  background: var(--tint);
  color: var(--red-dark);
  font-size: 1.3rem;
}

.step-photos::before, .step-photos::after, .step-calendar::before, .step-calendar::after {
  position: absolute;
  content: "";
}

.step-photos::before, .step-photos::after { width: 0.875rem; height: 0.98rem; border: 1.5px solid currentColor; border-radius: 2px; background: var(--tint); }
.step-photos::before { transform: translate(-0.19rem, -0.06rem) rotate(-12deg); }
.step-photos::after { transform: translate(0.18rem, 0.09rem) rotate(10deg); }
.step-calendar::before { width: 1.13rem; height: 1rem; border: 1.5px solid currentColor; border-radius: 2px; }
.step-calendar::after { width: 1rem; height: 1.5px; background: currentColor; transform: translateY(-0.2rem); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner p { color: var(--muted); font-size: 0.875rem; }

.app-page { background: var(--card); }
.app-header { background: var(--paper); }
.app-screen { padding: 1.4rem 1.2rem 2.5rem; }
.app-screen h1 { font-size: 2rem; font-weight: 850; }
.app-screen h1:focus { outline: none; }
.screen-lead { margin-top: 0.55rem; color: var(--muted); }
.screen-note { margin-top: 0.72rem; color: var(--muted); font-size: 0.875rem; text-align: center; }

.permission-art {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 9rem;
  margin-bottom: 1.3rem;
  border-radius: 0.6rem;
  background: #efe0d2;
}

.permission-art img {
  width: 24%;
  max-width: 6.2rem;
  height: auto;
  aspect-ratio: 1;
  border: 0.24rem solid var(--card);
  border-bottom-width: 0.65rem;
  object-fit: cover;
  box-shadow: 0 0.2rem 0.6rem #40251832;
}

.permission-art img:first-child { transform: translate(0.65rem, 0.34rem) rotate(-13deg); }
.permission-art img:nth-child(2) { position: relative; z-index: 1; transform: rotate(3deg) scale(1.15); }
.permission-art img:last-child { transform: translate(-0.65rem, 0.28rem) rotate(12deg); }

.scope-list { display: grid; gap: 0.6rem; margin-block: 1.2rem 1rem; }
.scope-option {
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--paper);
  text-align: left;
}
.scope-option:hover { border-color: var(--red); background: #fbefe8; }
.scope-option strong, .scope-option small { display: block; }
.scope-option small { color: var(--muted); font-size: 0.875rem; }
.app-back { margin-bottom: 1rem; }
.gallery-group { margin-top: 1.1rem; }
.gallery-group legend { margin-bottom: 0.38rem; font-size: 0.9rem; font-weight: 750; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.gallery-photo { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 0.42rem; background: var(--paper); }
.gallery-photo:has(:checked) { outline: 2px solid var(--red); outline-offset: -2px; }
.gallery-photo:has(:focus-visible) { outline: 2px solid var(--red-dark); outline-offset: 3px; }
.gallery-photo input { position: absolute; top: 0.4rem; right: 0.35rem; width: 1.35rem; height: 1.35rem; opacity: 0; }
.gallery-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.gallery-check { position: absolute; top: 0.35rem; right: 0.35rem; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border: 1px solid #fffdf8; border-radius: 50%; background: #27211e74; color: var(--card); pointer-events: none; }
.gallery-photo:has(:checked) .gallery-check { background: var(--red-dark); }
.gallery-photo:has(:checked) .gallery-check::after { content: ""; width: 0.32rem; height: 0.58rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-0.05rem) rotate(45deg); }
.gallery-caption { display: block; padding: 0.3rem 0.42rem; color: var(--muted); font-size: 0.8125rem; font-weight: 650; }
#picker-continue { margin-top: 1.4rem; }
.report-header { display: flex; justify-content: space-between; align-items: end; gap: 0.65rem; }
.report-header h1 { margin-top: 0.2rem; }
.photo-access { min-height: 2.75rem; color: var(--muted); }
.date-list { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-block: 1.15rem; }
.date-button { min-height: 2.75rem; padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: 0.4rem; background: var(--paper); font-size: 0.875rem; font-weight: 750; }
.date-button:hover { border-color: var(--red); }
.date-button[aria-pressed="true"] { border-color: var(--red); background: var(--tint); color: var(--red-dark); }
.date-button span { margin-left: 0.15rem; font-weight: 600; }
.daily-photos { display: grid; gap: 3px; height: 13rem; overflow: hidden; background: var(--line); }
.daily-photos-2 { grid-template-columns: repeat(2, 1fr); }
.daily-photos-3 { grid-template: repeat(2, minmax(0, 1fr)) / 1.7fr 1fr; }
.daily-photos-3 img:first-child { grid-row: span 2; }
.daily-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.insight-observation { padding-top: 0.65rem; margin-top: 0.65rem; border-top: 1px solid var(--line); font-size: 0.875rem; }
.moments { margin-top: 1.35rem; }
.moments h2 { display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; }
.moments h2 span { color: var(--muted); font-size: 0.875rem; font-weight: 650; }
.moments ul { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.moments li { display: flex; align-items: center; gap: 0.72rem; padding-block: 0.5rem; border-top: 1px solid var(--line); }
.moments img { width: 2.75rem; height: 2.75rem; border-radius: 0.25rem; object-fit: cover; }
.moments strong, .moments time { display: block; }
.moments time { color: var(--muted); font-size: 0.8125rem; }
.report-empty { padding: 2rem 1rem; border: 1px dashed #b9aa99; border-radius: 0.6rem; text-align: center; }
.report-empty h2 { margin-block: 0.4rem; font-size: 1.44rem; }
.report-empty > p:not(.report-kicker) { color: var(--muted); }
.report-empty button { margin-top: 1rem; }

@media (max-width: 350px) {
  .wrap { width: calc(100% - 1.75rem); }
  .hero h1 { font-size: 2.32rem; }
  .art-note, .art-date { font-size: 0.59rem; }
  .art-phone-top, .art-phone-brand { display: none; }
  .art-phone-content { padding-top: 0.42rem; }
  .art-phone-title { font-size: 0.9rem; }
  .art-caption { bottom: 1rem; }
  .app-screen { padding-inline: 0.9rem; }
}
