:root {
  color-scheme: light;
  --navy: #101a2d;
  --ink: #11192b;
  --muted: #435167;
  --paper: #f8f7f3;
  --amber: #ffca64;
  --line: #c9c8c1;
  --blue: #dce9fa;
  --link: #143c70;
  --font: Inter, 'Segoe UI', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--font); }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #1765b0; outline-offset: 4px; }
.hero :focus-visible, .masthead :focus-visible, .footer :focus-visible { outline-color: #9dcfff; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.8vw, 2.65rem); font-weight: 780; }
h3 { font-size: 1.42rem; font-weight: 750; }
p { margin: 0; }
.wrap { width: min(100% - 2rem, 75rem); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; transform: translateY(-160%); z-index: 3; background: white; padding: .8rem; }
.skip:focus { transform: none; }
.masthead, .hero, .footer { background: var(--navy); color: #fff; }
.masthead { border-bottom: 1px solid #2c374a; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.header-inner { padding-block: .7rem; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: .55rem; color: #fff; font-size: clamp(1.04rem, 2vw, 1.34rem); font-weight: 790; letter-spacing: -.04em; text-decoration: none; }
.bars { display: inline-flex; align-items: end; gap: .16em; width: 1.18em; height: 1.12em; color: var(--amber); }
.bars b { height: 45%; width: 27%; background: currentColor; border-radius: .075em; }
.bars b:nth-child(2) { height: 71%; }
.bars b:nth-child(3) { height: 100%; }
.header-inner nav { width: 100%; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; align-items: center; }
.header-inner nav a, .footer nav a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration: none; }
.header-inner nav a:hover, .footer nav a:hover, .header-inner nav a[aria-current] { text-decoration: underline; }
.menu-toggle { min-height: 44px; padding: .35rem .7rem; border: 1px solid #8995a6; border-radius: .45rem; background: transparent; color: white; font-weight: 650; }
.button, .secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .55rem 1.05rem; border-radius: .47rem; font-weight: 740; text-align: center; text-decoration: none; border: 1px solid transparent; }
.button, .header-inner nav .button { background: var(--amber); color: #15191f; }
.button:hover { background: #ffda8e; }
.outline { background: transparent; color: #fff; border-color: #e6edf8; }
.outline:hover { background: #2c3b54; }
.secondary { background: #fff; border-color: #8d98a5; color: var(--ink); }
.secondary:hover { background: #eef3fa; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 720; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-inner { display: grid; align-items: center; gap: 1.35rem; padding-block: clamp(1.5rem, 4vw, 3rem); }
.hero h1 { color: #fcfcfd; text-wrap: wrap; }
.hero h1 span { display: block; }
.hero p { margin-block: .9rem 1.25rem; color: #dce6f2; font-size: clamp(1rem, 2vw, 1.25rem); max-width: 47ch; }
.hero .actions > a { flex-grow: 1; }
.hero-photo { width: min(100%, 14rem); height: auto; justify-self: center; border-radius: .85rem; }
.home-content { display: grid; gap: clamp(1.5rem, 4vw, 2.9rem); padding-block: clamp(1.6rem, 4vw, 2.75rem) clamp(2rem, 5vw, 3.75rem); }
.track-grid { display: grid; gap: .85rem; margin-top: 1.25rem; }
.track { border: 1px solid var(--line); border-radius: .7rem; padding: 1rem 1.3rem .7rem; display: flex; align-items: flex-start; flex-direction: column; }
.track-icon, .row-icon, .resource-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; font-size: 1.65rem; color: #815214; }
.track-icon .bars, .row-icon .bars { color: #b87518; }
.sql-icon { display: block; width: 1em; height: 1.13em; border: 2px solid currentColor; border-radius: 50% / 21%; position: relative; }
.sql-icon::before, .sql-icon::after { content: ''; position: absolute; left: -2px; right: -2px; height: .43em; border: 2px solid currentColor; border-radius: 50%; }
.sql-icon::before { top: -2px; }
.sql-icon::after { top: .25em; border-top-color: transparent; }
.mentor-icon { display: block; width: 1.06em; height: .53em; border: 2px solid currentColor; border-bottom: 0; border-radius: 50% 50% 0 0; position: relative; margin-top: .48em; }
.mentor-icon::before { content: ''; position: absolute; top: -.69em; left: .22em; width: .49em; height: .49em; border: 2px solid currentColor; border-radius: 50%; }
.file-icon { display: block; position: relative; width: .91em; height: 1.15em; border: 2px solid currentColor; border-radius: .12em; }
.file-icon::before { content: ''; position: absolute; top: .24em; left: .14em; width: .45em; height: 2px; background: currentColor; box-shadow: 0 .21em currentColor, 0 .42em currentColor; }
.track h3 { margin-top: .45rem; }
.track p { margin-block: .35rem .35rem; color: var(--muted); }
.track a { margin-top: auto; }
.resource-band { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; background: var(--blue); border-radius: .7rem; padding: 1rem 1.3rem; }
.resource-band h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.resource-band p { margin-top: .22rem; }
.resource-icon { color: var(--link); }
.article-grid { display: grid; gap: 1.15rem; margin-top: 1rem; }
.article-grid article { padding-top: .85rem; border-top: 1px solid var(--line); }
.article-grid article > p:not(.category) { margin-top: .45rem; color: var(--muted); }
.article-grid :is(h2, h3) { font-size: 1.42rem; }
.article-grid :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.article-grid :is(h2, h3) a:hover { text-decoration: underline; }
.category { font-size: .83rem; font-weight: 730; color: var(--link); margin-bottom: .35rem; }
.inner { padding-block: 1.15rem clamp(2.5rem, 5vw, 4.5rem); }
.inner h1 { font-size: clamp(2.1rem, 5vw, 3.75rem); }
.crumb { display: flex; gap: .55rem; flex-wrap: wrap; align-items: baseline; margin-bottom: 1.1rem; color: var(--muted); font-size: .91rem; }
.intro { max-width: 64ch; font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--muted); margin-block: .7rem 1.5rem; }
.catalog { display: grid; gap: .65rem; }
.row { display: grid; gap: .3rem .9rem; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: .65rem; padding: .8rem .9rem; }
.row-icon { border-radius: .48rem; background: #f9e9c9; }
.row h2 { font-size: 1.2rem; text-wrap: wrap; }
.row p { margin-top: .25rem; color: var(--muted); }
.row > a { grid-column: 2; justify-self: start; }
.related { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; margin-top: 1rem; }
.prose { max-width: 70ch; }
.prose > p { margin-block: 0 1rem; }
.prose > h2 { margin-block: 1.55rem .55rem; font-size: 1.55rem; }
.reading pre { overflow: auto; background: var(--navy); color: white; border-radius: .55rem; padding: 1rem; }
.about { display: grid; gap: 1.25rem; align-items: start; }
.about img { width: min(100%, 16rem); height: auto; border-radius: .8rem; }
.footer-inner { padding-block: 1rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.footer-setting { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .3rem; background: transparent; border: 0; color: #e5edf6; text-decoration: underline; }
dialog { width: min(100% - 2rem, 34rem); border: 1px solid var(--line); border-radius: .7rem; padding: 1.25rem; color: var(--ink); background: var(--paper); }
dialog h2 { font-size: 1.5rem; }
dialog p { margin-block: .65rem 1rem; }
dialog::backdrop { background: #101a2d9e; }

@media (min-width: 43rem) {
  .wrap { width: min(100% - 4rem, 75rem); }
  .track-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.45rem; }
  .article-grid article { padding-top: 0; border-top: 0; }
  .article-grid article + article { border-left: 1px solid var(--line); padding-left: 1.45rem; }
  .row { grid-template-columns: auto 1fr auto; padding: .95rem 1.2rem; }
  .row > a { grid-column: 3; justify-self: end; }
  .about { grid-template-columns: minmax(12rem, 22rem) 1fr; }
}
@media (min-width: 55rem) {
  .header-inner nav { width: auto; gap: clamp(.5rem, 2vw, 1.7rem); }
  .menu-toggle { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.4rem); }
  .hero-photo { width: min(100%, 16.5rem); }
  .hero .actions > a { flex-grow: 0; }
  .resource-band .button { margin-left: auto; }
}
