/* Rumaru Studio. Direction: a quiet studio page; black type on white, the only colour is the work itself.
   Read design/DIRECTION.md before changing anything visible. */
@font-face { font-family: "SCD"; font-weight: 200; font-display: swap; src: url("../fonts/SCDream2.otf") format("opentype"); }
@font-face { font-family: "SCD"; font-weight: 600; font-display: swap; src: url("../fonts/SCDream6.otf") format("opentype"); }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url("../fonts/plex-kr-400.woff2") format("woff2"); }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url("../fonts/plex-kr-500.woff2") format("woff2"); }

:root { --bg: #fff; --ink: #0b0b0b; --mut: #6d6d69; --hair: #e3e3df; --film: #0b0b0b;
  --pad: clamp(20px, 5vw, 64px); --gap: clamp(88px, 13vw, 176px); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.75 "Plex", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--pad); top: 12px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 9; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.num { font-variant-numeric: tabular-nums; }

/* header */
.top { display: flex; align-items: center; gap: 28px; height: 84px; font-size: 15px; }
.top .logo { display: flex; align-items: center; gap: 12px; margin-right: auto; font-weight: 500; }
.top .logo img { width: 34px; height: 34px; border-radius: 50%; }
.top nav { display: flex; gap: 28px; color: var(--mut); }
.top nav a:hover, .top .lang:hover { color: var(--ink); }
.top .lang { color: var(--mut); font-size: 13px; letter-spacing: .08em; padding: 6px 4px; }
.top .ask { border: 1px solid var(--ink); border-radius: 999px; padding: 7px 18px; }
.top .ask:hover { background: var(--ink); color: var(--bg); }

/* hero */
.hero { padding-top: clamp(28px, 4vw, 60px); }
.kick { font: 500 13px "Plex"; letter-spacing: .14em; color: var(--mut); }
h1 { font: 200 min(7.7vw, clamp(30px, 5vw, 76px))/1.17 "SCD", sans-serif; letter-spacing: -.06em; margin: .35em 0 .5em -.04em; }
h1, h2 { text-wrap: balance; }
h1 b, h2 b { white-space: nowrap; }
:lang(en) h1, :lang(en) h2 { letter-spacing: -.035em; }
p, figcaption { text-wrap: pretty; }
h1 b, h2 b { font-weight: 600; }
.lead { max-width: 44em; font-size: clamp(17px, 1.45vw, 20px); color: var(--mut); }
.lead b { color: var(--ink); font-weight: 400; }
.film { background: var(--film); border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 9; width: 100%; position: relative; }
.zoom { position: absolute; right: 10px; bottom: 10px; font-size: 12px; line-height: 1; padding: 8px 11px; border-radius: 999px; background: rgba(11, 11, 11, .72); color: #f4f4f1; border: 1px solid rgba(244, 244, 241, .3); opacity: 0; transition: opacity .2s; }
.film:hover .zoom, .zoom:focus-visible { opacity: 1; }
@media (hover: none) { .zoom { opacity: 1; } }
.film video { width: 100%; height: 100%; object-fit: cover; }
.reel { margin-top: clamp(32px, 3.6vw, 52px); }
.note { display: flex; justify-content: space-between; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--mut); }

/* sections */
section { padding-top: var(--gap); }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ink); padding-top: 18px; }
.head .kick { color: var(--ink); }
h2 { font: 200 clamp(30px, 4vw, 56px)/1.25 "SCD", sans-serif; letter-spacing: -.055em; margin: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 40px) -.03em; max-width: 16em; }
.sub { color: var(--mut); max-width: 36em; }

/* what we do */
.job { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4.5vw, 72px); padding: clamp(40px, 5.5vw, 76px) 0; border-top: 1px solid var(--hair); align-items: start; }
.job:first-of-type { margin-top: clamp(28px, 4vw, 56px); }
.job .no { font: 500 13px "Plex"; color: var(--mut); letter-spacing: .08em; }
.job h3 { font: 500 clamp(24px, 2.3vw, 31px)/1.3 "Plex"; letter-spacing: -.03em; margin: 10px 0 16px; }
.job p { color: var(--mut); }
.job dl { margin-top: 26px; font-size: 15px; }
.job dl div { display: grid; grid-template-columns: 5.2em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hair); }
:lang(en) .job dl div { grid-template-columns: 6.8em 1fr; }
.job dl div:last-child { border-bottom: 1px solid var(--hair); }
.job dt { color: var(--mut); }
.job figure figcaption { margin-top: 10px; font-size: 13px; color: var(--mut); }
/* server setup: a sample channel and permission plan, drawn as a table */
.plan .flow { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 15px; padding-bottom: 18px; }
.plan .flow li + li:before { content: "→"; color: var(--mut); margin: 0 .8em; }
.plan table { width: 100%; border-collapse: collapse; font-size: 15px; }
.plan th, .plan td { text-align: left; font-weight: 400; padding: 9px 0; border-top: 1px solid var(--hair); }
.plan thead th { font-size: 13px; color: var(--mut); border-top-color: var(--ink); }
.plan th + th, .plan td { width: 19%; }
.plan .cat th { font-size: 13px; color: var(--mut); letter-spacing: .08em; padding-top: 20px; border-top: 0; }
.plan tbody tr:last-child > * { border-bottom: 1px solid var(--hair); }
.plan td { color: var(--mut); }
.plan td b { color: var(--ink); font-weight: 500; }
.plan td i { font-style: normal; color: #c2c2bd; }
.smp { margin-top: 22px; }
.smp p { font-size: 13px; color: var(--mut); margin-bottom: 8px; }
.smp button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 15px; text-align: left; }
.smp li:last-child button { border-bottom: 1px solid var(--hair); }
.smp i { width: 22px; height: 22px; border: 1px solid var(--ink); border-radius: 50%; position: relative; flex: none; }
.smp i:before { content: ""; position: absolute; left: 8px; top: 6px; border: 4.5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
.smp .on i { background: var(--ink); }
.smp .on i:before { left: 7px; top: 7px; width: 2px; height: 7px; border: 0; border-left: 2px solid var(--bg); border-right: 2px solid var(--bg); }
.smp button:hover i { box-shadow: 0 0 0 3px var(--hair); }
.smp time { margin-left: auto; color: var(--mut); font-size: 13px; }

/* prices */
.fees { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 72px); margin-top: clamp(28px, 4vw, 56px); }
.fees h3 { font: 500 19px "Plex"; padding-bottom: 14px; }
.fees li { display: grid; grid-template-columns: 6.2em 1fr auto; gap: 14px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--hair); }
.fees li:last-child { border-bottom: 1px solid var(--hair); }
.fees li span { font-size: 13px; letter-spacing: .1em; color: var(--mut); }
.fees li p { font-size: 15px; color: var(--mut); }
.fees li p b { display: block; color: var(--ink); font-weight: 400; font-size: 16px; }
.fees li strong { font: 200 clamp(24px, 2.5vw, 34px) "SCD", sans-serif; letter-spacing: -.04em; white-space: nowrap; }
.fine { margin-top: 22px; font-size: 14px; color: var(--mut); max-width: 46em; }
.fine + .fine { margin-top: 8px; }
.quote { margin-top: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--hair); }
.quote li { padding: 18px 18px 18px 0; font-size: 15px; color: var(--mut); }
.quote li b { display: block; color: var(--ink); font-weight: 500; font-size: 17px; }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(28px, 4vw, 56px); }
.steps li { border-top: 1px solid var(--hair); padding-top: 18px; }
.steps span { font: 500 13px "Plex"; color: var(--mut); letter-spacing: .08em; }
.steps b { display: block; font-weight: 500; font-size: 20px; letter-spacing: -.02em; margin: 8px 0 8px; }
.steps p { font-size: 15px; color: var(--mut); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.about h2 { margin-bottom: 0; }
.about .body { padding-top: clamp(28px, 4vw, 62px); }
.about .body p + p { margin-top: 1.1em; }
#about figure { margin-top: clamp(36px, 5vw, 64px); }

/* contact + footer */
.ask2 { padding-bottom: var(--gap); }
.ask2 h2 { font-size: clamp(34px, 5.4vw, 80px); line-height: 1.18; margin-bottom: .6em; }
.mail { font: 600 clamp(20px, 2.6vw, 34px) "SCD", sans-serif; letter-spacing: -.04em; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.ask2 ul { margin-top: 34px; color: var(--mut); font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 28px; }
footer { padding-bottom: 44px; font-size: 13px; line-height: 1.8; color: var(--mut); }
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 28px; }
footer p { max-width: 62em; }
footer a { text-decoration: underline; text-underline-offset: 3px; }

/* things come in quietly once, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .rv.in { opacity: 1; transform: none; }
}

@media (max-width: 1100px) { .fees { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .top nav { display: none; }
  .job, .about, .fees { grid-template-columns: 1fr; }
  .steps, .quote { grid-template-columns: 1fr 1fr; }
  .about .body { padding-top: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top { height: 68px; gap: 16px; }
  .fees li { grid-template-columns: 1fr auto; }
  .fees li span { grid-column: 1 / -1; margin-bottom: -8px; }
  .note { flex-direction: column; gap: 2px; }
}
