/* n0te.dhin.dev. The page wears an Omarchy theme, the way n0te does: each
   palette below is derived from that theme's colors.toml with n0te's own
   math (theme.rs: mix(text, bg, 28%) for dim, and so on). Tokyo Night is
   the default, Rosé Pine when the system prefers light, and the picker
   under the screenshot sets data-theme on <html>. */

@font-face { font-family: "Quattro"; src: url("fonts/iAWriterQuattroS-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Quattro"; src: url("fonts/iAWriterQuattroS-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Quattro"; src: url("fonts/iAWriterQuattroS-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Quattro"; src: url("fonts/iAWriterQuattroS-BoldItalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root, [data-theme="tokyo-night"] {
  --bg: #1a1b26; --text: #a9b1d6; --heading: #c0caf5; --dim: #8187a5; --faint: #676c85;
  --surface: #20222e; --surface-2: #272836; --rule: #2f3240; --raise: #24283b;
  --accent: #7aa2f7; --on-accent: #1a1b26; --selection: #292e42; --green: #9ece6a; --yellow: #e0af68;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #faf4ed; --text: #575279; --heading: #575279; --dim: #857f99; --faint: #a29dae;
    --surface: #f3ede8; --surface-2: #ebe5e3; --rule: #e2dcdc; --raise: #f0eae6;
    --accent: #56949f; --on-accent: #faf4ed; --selection: #dfdad9; --green: #286983; --yellow: #ea9d34;
    --shadow: .16; color-scheme: light;
  }
}
[data-theme="catppuccin"] {
  --bg: #1e1e2e; --text: #cdd6f4; --heading: #cdd6f4; --dim: #9ca2bd; --faint: #7c8199;
  --surface: #262637; --surface-2: #2e2f40; --rule: #383a4c; --raise: #313244;
  --accent: #89b4fa; --on-accent: #1e1e2e; --selection: #45475a; --green: #a6e3a1; --yellow: #f9e2af;
  color-scheme: dark;
}
[data-theme="gruvbox"] {
  --bg: #282828; --text: #d4be98; --heading: #d4be98; --dim: #a49479; --faint: #857964;
  --surface: #302f2d; --surface-2: #373632; --rule: #423e39; --raise: #3c3836;
  --accent: #7daea3; --on-accent: #282828; --selection: #504945; --green: #a9b665; --yellow: #d8a657;
  color-scheme: dark;
}
[data-theme="everforest"] {
  --bg: #2d353b; --text: #d3c6aa; --heading: #d3c6aa; --dim: #a59d8b; --faint: #878377;
  --surface: #343c40; --surface-2: #3c4245; --rule: #464b4c; --raise: #343f44;
  --accent: #7fbbb3; --on-accent: #2d353b; --selection: #3d484d; --green: #a7c080; --yellow: #dbbc7f;
  color-scheme: dark;
}
[data-theme="nord"] {
  --bg: #2e3440; --text: #d8dee9; --heading: #d8dee9; --dim: #a8aeba; --faint: #8a909b;
  --surface: #363c48; --surface-2: #3d434f; --rule: #484e59; --raise: #3b4252;
  --accent: #81a1c1; --on-accent: #2e3440; --selection: #434c5e; --green: #a3be8c; --yellow: #ebcb8b;
  color-scheme: dark;
}
[data-theme="rose-pine"] {
  --bg: #faf4ed; --text: #575279; --heading: #575279; --dim: #857f99; --faint: #a29dae;
  --surface: #f3ede8; --surface-2: #ebe5e3; --rule: #e2dcdc; --raise: #f0eae6;
  --accent: #56949f; --on-accent: #faf4ed; --selection: #dfdad9; --green: #286983; --yellow: #ea9d34;
  --shadow: .16; color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.6 "Quattro", "iA Writer Quattro S", "IBM Plex Sans", system-ui, sans-serif;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body, body * { transition: none !important; }
}
::selection { background: var(--selection); color: var(--heading); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

a { color: var(--heading); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code, kbd, pre { font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .84em; }
code { background: var(--surface-2); color: var(--heading); padding: .1em .35em; border-radius: 4px; }
kbd {
  display: inline-block; min-width: 1.7em; padding: .05em .45em; text-align: center;
  color: var(--heading); background: var(--surface); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 5px;
}
h1, h2, h3 { color: var(--heading); line-height: 1.2; font-weight: 700; margin: 0; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* ---- top bar ---- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.mark { font-weight: 700; font-size: 22px; color: var(--heading); text-decoration: none; letter-spacing: .01em; }
.mark span { color: var(--accent); }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.top nav a { color: var(--dim); text-decoration: none; font-size: 16px; }
.top nav a:hover { color: var(--heading); }

/* ---- hero ---- */
.hero { padding-block: clamp(36px, 7vw, 84px) 28px; }
.kicker { color: var(--dim); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -.01em; max-width: 30ch; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--text); max-width: 40em; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 30px; }
.button {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
}
.button:hover { color: var(--on-accent); filter: brightness(1.08); }
.button.quiet { background: transparent; color: var(--heading); border-color: var(--rule); }
.button.quiet:hover { border-color: var(--accent); color: var(--heading); filter: none; }
.actions .note { color: var(--faint); font-size: 15px; }

/* ---- the window ---- */
.stage { margin-top: clamp(40px, 6vw, 64px); }
.window {
  position: relative; border-radius: 12px; overflow: hidden; background: var(--bg);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 0 var(--rule), 0 30px 80px -30px rgba(0, 0, 0, var(--shadow, .55));
  aspect-ratio: 980 / 768;
}
.window img { display: block; width: 100%; height: auto; }
.picker { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.picker button {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font: inherit; font-size: 15px; color: var(--dim);
  background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px 6px 8px;
}
.picker button:hover { color: var(--heading); border-color: var(--faint); }
.picker button[aria-pressed="true"] { color: var(--heading); border-color: var(--accent); background: var(--surface); }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(127, 127, 127, .35); background: linear-gradient(135deg, var(--s-bg) 50%, var(--s-accent) 50%); }
.caption { text-align: center; color: var(--faint); font-size: 15px; margin-top: 12px; }

/* ---- features ---- */
section { padding-block: clamp(56px, 9vw, 110px) 0; }
.section-head { max-width: 40em; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }
.section-head p { color: var(--dim); margin-top: 12px; font-size: 19px; }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.row + .row { margin-top: clamp(48px, 8vw, 96px); }
.row.flip .text { order: 2; }
.row h3 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 14px; }
.row .text p + p { margin-top: 12px; }
.row .shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--rule); aspect-ratio: 980 / 768; background: var(--bg); }
.row .shot img { display: block; width: 100%; height: auto; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.cell { background: var(--bg); padding: 26px 26px 28px; transition: background-color .35s ease; }
.cell h3 { font-size: 19px; margin-bottom: 8px; }
.cell p { color: var(--dim); font-size: 16.5px; }
.cell .figure { color: var(--accent); font-weight: 700; }

/* ---- keys ---- */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; }
.keys div { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.keys .k { flex: 0 0 auto; min-width: 5.2em; }
.keys span:last-child { color: var(--dim); font-size: 16.5px; }
.more { margin-top: 22px; color: var(--dim); }

/* ---- install ---- */
.install { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 860px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card > p { color: var(--dim); font-size: 16.5px; }
.code { margin-top: 16px; }
pre {
  margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--rule); color: var(--heading); line-height: 1.7;
}
pre code { background: none; padding: 0; border-radius: 0; color: inherit; font-size: 1em; }
pre .c { color: var(--faint); }
pre .p { color: var(--faint); user-select: none; }
.copy {
  position: absolute; top: 22px; right: 22px; cursor: pointer;
  font: inherit; font-size: 13px; color: var(--dim); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 3px 10px;
}
.copy:hover { color: var(--heading); border-color: var(--faint); }
.then { margin-top: 24px; color: var(--dim); }
.files { margin-top: 14px; color: var(--faint); font-size: 15px; }
.plain { margin: 12px 0 0; padding: 0; list-style: none; color: var(--dim); font-size: 16.5px; }
.plain li { padding: 9px 0; border-bottom: 1px solid var(--rule); }
.plain li:last-child { border-bottom: 0; }
.nowrap { white-space: nowrap; }

/* ---- footer ---- */
footer { margin-top: clamp(72px, 10vw, 128px); padding-block: 30px 40px; border-top: 1px solid var(--rule); color: var(--faint); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--heading); }

@media (max-width: 860px) {
  .row, .row.flip { grid-template-columns: minmax(0, 1fr); }
  .row.flip .text { order: 0; }
  .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .install { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .top nav a.hide-small { display: none; }
  .picker button { font-size: 14px; padding-right: 12px; }
}
