/* Lemondrops: a lemon-yellow field, candy-tin ink, and one moment of motion (the drops) */
:root {
  --lemon: #FFE24A;
  --rind: #E3BC00;
  --ink: #1C2459;
  --muted: #4A5180;
  --paper: #FFFFFF;
  --mist: #F3F4F9;
  --hero-bg: var(--lemon);
  --hero-ink: var(--ink);
  --link-line: var(--rind);
  --link-hover: var(--lemon);
  --display: 'Darumadrop One', 'IBM Plex Sans KR', system-ui, sans-serif;
  --text: 'IBM Plex Sans KR', system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EEF0FA;
    --muted: #A9AFD3;
    --paper: #10142F;
    --mist: #171C40;
    --hero-bg: #161B45;
    --hero-ink: var(--lemon);
    --link-line: #8C7A1C;
    --link-hover: #3A3410;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
  text-decoration-thickness: .16em;
  text-underline-offset: .22em;
}
a:hover { background: var(--link-hover); }
a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

/* The hero: the name, what the studio is, and its works falling into place */
.hero {
  background: var(--hero-bg);
  color: var(--hero-ink);
  overflow: hidden;
}
.hero-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 12vw, 7rem) 1rem clamp(2.5rem, 8vw, 4.5rem);
}
.wordmark {
  margin: 0;
  font: 400 clamp(3.75rem, 17vw, 8.5rem)/.95 var(--display);
  letter-spacing: -.01em;
}
.lede {
  max-width: 30rem;
  margin: 1.25rem 0 0;
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  line-height: 1.55;
}
.drops {
  display: flex;
  gap: clamp(.875rem, 3vw, 1.5rem);
  margin: clamp(2rem, 6vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.drops a { display: block; border-radius: 22%; }
.drops a:hover { background: none; }
.drops img {
  display: block;
  width: clamp(4.25rem, 16vw, 6rem);
  height: auto;
  border-radius: 22%;
  animation: drop .9s cubic-bezier(.3, 1.35, .5, 1) both;
}
.drops li:nth-child(2) img { animation-delay: .14s; }
.drops li:nth-child(3) img { animation-delay: .28s; }
@keyframes drop {
  from { transform: translateY(-160%) rotate(-10deg); opacity: 0; }
  40% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .drops img { animation: none; }
}

/* The works, one after another, each with where to get it */
main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1rem 3rem;
}
h2 {
  margin: 0 0 1.75rem;
  font: 400 clamp(1.875rem, 6vw, 2.5rem)/1.1 var(--display);
}
.work {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.25rem;
  align-items: start;
  margin: 0 0 2.75rem;
  scroll-margin-top: 1.5rem;
}
.work-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
}
.work h3 {
  margin: .1rem 0 .4rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.work p { margin: 0; max-width: 34rem; }
.where {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .45rem 1.25rem;
  margin: .9rem 0 0;
}
.where div { display: contents; }
.where dt { color: var(--muted); }
.where dd { margin: 0; }
.more {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  margin-top: .6rem !important;
}
@media (max-width: 30rem) {
  .work { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
  .work-icon { width: 3.5rem; height: 3.5rem; }
  .where { grid-template-columns: 1fr; gap: 0; }
  .where dd + dt { margin-top: .5rem; }
}

/* Pacenote's macOS icon carries its own margin; this brings it to the others' size */
.inset { scale: 1.22; }

.contact { margin-top: 3.5rem; }
.contact h2 { margin-bottom: .75rem; }
.contact p { margin: 0; overflow-wrap: anywhere; }

/* A work's own pages (support, privacy): the name as a way home, then plain reading */
.page-head {
  background: var(--hero-bg);
  color: var(--hero-ink);
}
.page-head-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: .9rem 1rem;
}
.page-head .home {
  font: 400 1.75rem/1 var(--display);
  text-decoration: none;
}
.page-head .home:hover { background: none; text-decoration: underline; text-decoration-color: var(--link-line); }
.doc { padding-top: clamp(2rem, 6vw, 3.5rem); }
.doc h1 {
  margin: 0 0 .5rem;
  font: 400 clamp(2.25rem, 8vw, 3.25rem)/1.05 var(--display);
}
.doc .lang,
.doc .updated {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: .9375rem;
}
.doc h1 + .updated { margin-bottom: .25rem; }
.doc h2,
.doc h3 {
  margin: 2rem 0 .4rem;
  font: 600 1.1875rem/1.35 var(--text);
}
.doc p { max-width: 38rem; margin: 0 0 1rem; }
.doc ul { max-width: 38rem; margin: 0 0 1rem; padding-left: 1.25rem; }
.doc li + li { margin-top: .5rem; }
.doc .ko {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid var(--mist);
  word-break: keep-all;
}
.doc .ko .ko-title {
  margin: 0 0 .5rem;
  font: 400 clamp(1.875rem, 6vw, 2.5rem)/1.1 var(--display);
}
.doc .ko-title + p:not(.updated) { margin-top: 1.25rem; }

.site-footer {
  background: var(--mist);
  color: var(--muted);
  font-size: .8125rem;
}
.site-footer p {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}
