/* The page wears the app's Windows theme in the dark: its sidebar and content colors, yellow folders and row lines. */
:root {
  --content: #0e1015;
  --sidebar: #12141a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eaf0;
  --dim: #9aa1b0;
  --folder: #f2c94c;
  --select: #2a63c8;
  --link: #8fb8ff;
  --measure: 62ch;
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--content); color: var(--text); font-size: 1.0625rem; line-height: 1.7; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--folder); outline-offset: 3px; border-radius: 4px; }
h1, h2 { line-height: 1.25; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 700; }
p { margin: 0 0 1rem; max-width: var(--measure); }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--folder); color: #111; padding: 0.4rem 0.8rem; z-index: 10; }

/* The toolbar */
.bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 1.5rem; padding: 0.7rem clamp(1rem, 4vw, 3rem); background: color-mix(in srgb, var(--sidebar) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.bar nav { display: flex; gap: 0.25rem; margin-right: auto; flex-wrap: wrap; }
.bar nav a { color: var(--dim); text-decoration: none; padding: 0.3rem 0.75rem; border-radius: 6px; font-size: 0.98rem; }
.bar nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.bar nav a[aria-current] { color: #fff; background: var(--select); }
.store { display: inline-block; font-size: 0.85rem; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.8rem; white-space: nowrap; }

/* Sections */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) clamp(1rem, 4vw, 3rem) 2rem; max-width: 76rem; margin: 0 auto; }
.hero.narrow { padding-bottom: 0.5rem; }
.lead { color: var(--dim); font-size: 1.15rem; margin-top: 1.25rem; }
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1.75rem 0 2.5rem; max-width: none; }
.button { background: var(--folder); color: #17130a; font-weight: 700; text-decoration: none; padding: 0.6rem 1.3rem; border-radius: 8px; }
.button:hover { background: #ffdc73; color: #17130a; }
.block { max-width: 76rem; margin: 0 auto; padding: 2.5rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.block h2 { margin-bottom: 1.25rem; }
.block.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; }
.block.two p { color: var(--dim); }

/* A folder, drawn. --folder comes from the page or from the demo's theme. */
.folder { display: inline-block; position: relative; flex: none; width: 1.05em; height: 0.8em; background: var(--folder); border-radius: 0.12em; vertical-align: -0.05em; }
.folder::before { content: ""; position: absolute; left: 0; top: -0.16em; width: 45%; height: 0.24em; background: var(--folder); border-radius: 0.1em 0.14em 0 0; filter: brightness(0.86); }
.folder.big { font-size: 1.5em; margin-right: 0.45em; }

/* The home page lists feature groups the way the app lists folders. */
.listing li { border-bottom: 1px solid var(--line); }
.listing a { display: grid; grid-template-columns: 1.6rem minmax(8rem, 13rem) 1fr auto; gap: 0.75rem; align-items: center; padding: 0.7rem 0.6rem; color: var(--text); text-decoration: none; border-radius: 6px; }
.listing a:hover, .listing a:focus-visible { background: var(--select); color: #fff; }
.listing a span:not(.folder), .listing em { color: var(--dim); font-style: normal; font-size: 0.95rem; }
.listing a:hover span:not(.folder), .listing a:hover em { color: #dfe9ff; }
.listing em { font-variant-numeric: tabular-nums; }

.release-line { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 0.4rem; }
.release-line strong { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.release-line time { color: var(--dim); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.notes { margin-bottom: 1rem; }
.notes li { padding-left: 1.1rem; position: relative; max-width: var(--measure); }
.notes li::before { content: ""; position: absolute; left: 0.1rem; top: 0.72em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--folder); }
.timeline > li { padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.timeline > li:first-child { padding-top: 0; }

/* Features: a tree on the left, sheets of rows on the right. */
.explorer { display: grid; grid-template-columns: 15rem 1fr; max-width: 82rem; margin: 0 auto; }
.rail { background: var(--sidebar); border-right: 1px solid var(--line); padding: 2rem 0.75rem; position: sticky; top: 3.4rem; align-self: start; height: calc(100vh - 3.4rem); overflow: auto; }
.sidehead { color: var(--dim); font-size: 0.82rem; font-weight: 600; margin: 0 0 0.5rem 0.6rem; }
.rail a { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.6rem; color: var(--text); text-decoration: none; border-radius: 6px; font-size: 0.98rem; }
.rail a:hover { background: rgba(255, 255, 255, 0.07); }
.sheet { padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3.5rem); min-width: 0; }
.group { padding-top: 3rem; }
.group h2 { display: flex; align-items: center; }
.summary { color: var(--dim); margin: 0.5rem 0 1rem; }
.rowsheet > div { display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 1.5rem; padding: 0.8rem 0; border-top: 1px solid var(--line); }
.rowsheet > div:last-child { border-bottom: 1px solid var(--line); }
.rowsheet.wide > div { grid-template-columns: minmax(10rem, 20rem) 1fr; }
.rowsheet dt { font-weight: 650; }
.rowsheet dd { color: var(--dim); max-width: var(--measure); }

/* The demo window. Its colors are its own, so a theme repaints only the window. */
.demo { --w-on-select: #fff; --w-side: #12141a; --w-main: #0e1015; --w-bar: #12141a; --w-text: #e8eaf0; --w-dim: #8e95a3; --w-line: rgba(255, 255, 255, 0.08); --w-select: #2a63c8; --folder: #f2c94c; }
.chooser { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.swatches button, .modes button { font: inherit; font-size: 0.9rem; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.25rem 0.75rem 0.25rem 0.5rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; }
.modes button { padding: 0.25rem 0.8rem; }
.swatches button i { width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.swatches button[aria-pressed="true"], .modes button[aria-pressed="true"] { border-color: var(--folder); background: rgba(242, 201, 76, 0.12); }
.window { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; overflow: hidden; background: var(--w-main); color: var(--w-text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); font-size: 0.86rem; line-height: 1.4; transition: background-color 0.25s, color 0.25s; }
.titlebar { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 0.9rem; background: var(--w-bar); border-bottom: 1px solid var(--w-line); transition: background-color 0.25s; }
.lights { display: flex; gap: 0.45rem; }
.lights i { width: 0.72rem; height: 0.72rem; border-radius: 50%; background: #fe5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.tools { display: flex; gap: 0.5rem; margin-left: 1rem; }
.tools b { width: 1.5rem; height: 1.15rem; border: 1.5px solid var(--w-dim); border-radius: 4px; opacity: 0.55; }
.tools b.on { background: var(--w-line); opacity: 1; }
.search { margin-left: auto; color: var(--w-dim); border: 1px solid var(--w-line); border-radius: 6px; padding: 0.15rem 3.5rem 0.15rem 0.7rem; }
.panes { display: grid; grid-template-columns: 14.5rem 1fr; min-height: 23rem; }
.side { background: var(--w-side); border-right: 1px solid var(--w-line); padding: 0.8rem 0.5rem; transition: background-color 0.25s; }
.side .sidehead { color: var(--w-dim); font-size: 0.76rem; margin-left: 0.5rem; }
.favorites { margin-bottom: 0.9rem; }
.favorites li { display: flex; align-items: center; gap: 0.55rem; padding: 0.22rem 0.5rem; }
.glyph { width: 0.95rem; height: 0.72rem; border: 1.5px solid var(--w-dim); border-radius: 2px; flex: none; }
.tree button, .rows button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.tree li > div { display: flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.4rem; border-radius: 5px; }
.tree li > div.here { background: var(--w-select); color: var(--w-on-select); }
.tree .twist { width: 1rem; height: 1rem; display: inline-flex; align-items: center; justify-content: center; color: var(--w-dim); font-size: 0.62rem; transition: transform 0.15s; }
.tree li > div.here .twist { color: var(--w-on-select); }
.tree .twist[aria-expanded="true"] { transform: rotate(90deg); }
.tree .twist[disabled] { visibility: hidden; }
.tree .name { display: flex; align-items: center; gap: 0.45rem; flex: 1; }
.tree ul { padding-left: 1rem; }
.main { display: flex; flex-direction: column; min-width: 0; }
.heading { display: flex; align-items: center; padding: 0.9rem 1rem 0.7rem; font-size: 1.25rem; }
.columns, .rows li > * { display: grid; grid-template-columns: 1fr 6.5rem 7rem 4.5rem; gap: 0.75rem; }
.columns { padding: 0.3rem 1rem; color: var(--w-dim); font-size: 0.76rem; border-top: 1px solid var(--w-line); border-bottom: 1px solid var(--w-line); }
.rows { flex: 1; padding: 0.25rem 0.5rem; }
.rows li { border-bottom: 1px solid var(--w-line); }
.rows li > * { width: 100%; padding: 0.3rem 0.5rem; border-radius: 5px; align-items: center; }
.rows li > button:hover, .rows li > button:focus-visible { background: var(--w-select); color: var(--w-on-select); }
.rows li > button:hover span:not(.folder), .rows li > button:focus-visible span:not(.folder) { color: var(--w-on-select); }
.rows .cell { display: flex; align-items: center; gap: 0.5rem; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rows span:not(.cell):not(.folder):not(.doc) { color: var(--w-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc { width: 0.8em; height: 1em; border: 1.5px solid var(--w-dim); border-radius: 2px; flex: none; }
.pathbar { padding: 0.4rem 1rem; color: var(--w-dim); font-size: 0.76rem; border-top: 1px solid var(--w-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint { color: var(--dim); font-size: 0.9rem; margin-top: 0.9rem; }

.foot { margin-top: 3rem; padding: 2.5rem clamp(1rem, 4vw, 3rem) 3rem; background: var(--sidebar); border-top: 1px solid var(--line); color: var(--dim); font-size: 0.95rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-bottom: 1rem; }
.foot a { color: var(--text); }
.fine { font-size: 0.85rem; max-width: none; margin: 0; }

@media (max-width: 52rem) {
  .bar { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .bar nav { order: 3; width: 100%; margin: 0; }
  .explorer { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem 0.75rem; }
  .rail ul { display: flex; flex-wrap: wrap; gap: 0.2rem; }
  .listing a { grid-template-columns: 1.6rem 1fr auto; }
  .listing a span:not(.folder) { display: none; }
  .rowsheet > div, .rowsheet.wide > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .panes { grid-template-columns: 9.5rem 1fr; }
  .favorites, .side .sidehead, .tools, .search { display: none; }
  .columns, .rows li > * { grid-template-columns: 1fr 4.2rem; }
  .columns span:nth-child(2), .columns span:nth-child(3), .rows li > * > span:nth-child(2), .rows li > * > span:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
