/* codewith.com until the product is ready: one screen, the mark and four sentences.
   No licensed typeface: the mark is our own drawing and the text is JetBrains Mono, served from this domain. */

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

/* Light, dark, or the device's own (System), as the visitor chooses in the footer; theme.js sets data-theme. */
:root { color-scheme: light; --bg: #ffffff; --fg: #0a0a0c; --mute: #6b6c78; --pink: #ff2d78; --maker: none; --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0a0a0c; --fg: #f4f4f6; --mute: #9a9ba8; --maker: invert(1); }
}
:root[data-theme="dark"] { color-scheme: dark; --bg: #0a0a0c; --fg: #f4f4f6; --mute: #9a9ba8; --maker: invert(1); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 18px/1.6 var(--mono); -webkit-font-smoothing: antialiased; font-variant-ligatures: none;
       display: grid; grid-template-rows: 1fr auto; min-height: 100vh; min-height: 100svh; padding: 0 clamp(22px, 6vw, 96px); }
a { color: inherit; }
a:focus-visible, select:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

main { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; column-gap: clamp(32px, 6vw, 110px); padding: 48px 0 24px; }
.mark { width: 100%; max-width: 560px; height: auto; justify-self: end; }
.mark .slash { stroke: var(--pink); }
.text { max-width: 31em; }
.name { font-size: 15px; color: var(--mute); }
.name b { color: var(--fg); font-weight: 700; }
h1 { font: 700 clamp(30px, 3.5vw, 50px)/1.14 var(--mono); letter-spacing: -0.02em; margin-top: 18px; }
h1 em { font-style: normal; color: var(--pink); }
.what { margin-top: 26px; }
.old { margin-top: 16px; color: var(--mute); font-size: 16px; }
.home { margin-top: 26px; }

footer { display: flex; align-items: flex-start; gap: 22px; padding: 22px 0 26px; font-size: 14px; color: var(--mute); }
footer .choice:first-of-type { margin-left: auto; }
footer .maker { display: block; margin-top: 10px; width: fit-content; }
footer .maker img { height: 14px; width: auto; opacity: 0.4; display: block; filter: var(--maker); }
footer .choice { display: inline-flex; align-items: center; gap: 6px; }
footer select { font: inherit; color: inherit; background: transparent; border: 0; appearance: none; cursor: pointer; }

@media (max-width: 820px) {
  body { font-size: 16px; }
  main { grid-template-columns: 1fr; align-content: center; row-gap: 40px; padding: 40px 0 16px; }
  .mark { max-width: 250px; justify-self: start; }
  .old { font-size: 14.5px; }
}

/* the narrowest phones: the © line, the theme and the language still fit on one row */
@media (max-width: 380px) {
  footer { font-size: 13px; gap: 12px; }
}
