:root {
  color-scheme: light;
  --ink: #112435;
  --muted: #465d6c;
  --paper: #f6f8f8;
  --line: #c7d0d4;
  --blue: #164eaa;
  --lime: #d9f575;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font: 100%/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  scroll-padding-top: 1.5rem;
}
*, *::before, *::after { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
body { min-width: 0; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: .22em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .13em; }
:where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(button, input, select, textarea, a, summary):focus-visible { outline: 3px solid #2562d5; outline-offset: 3px; }
::selection { background: #d6ed99; color: #102430; }
.wrap { width: min(76rem, 91%); margin-inline: auto; }
header { border-bottom: 1px solid var(--line); background: #fff; }
.bar, .brand, .bar nav, .actions, .sectionhead, .filters, .app, .crumb { display: flex; align-items: center; }
.bar { min-height: 4.5rem; justify-content: space-between; gap: 1rem; }
.brand { gap: .44em; color: var(--ink); font-weight: 810; font-size: clamp(1.4rem, 3vw, 1.85rem); letter-spacing: -.065em; text-decoration: none; line-height: 1.1; }
.brand::before {
  content: ""; flex: none; width: .96em; height: .96em; border-radius: .2em;
  background: linear-gradient(133deg, transparent 41%, var(--lime) 42% 53%, transparent 54%) var(--ink);
}
.brand > i:empty { display: none; }
.bar nav, .actions { gap: clamp(.65rem, 2.2vw, 1.7rem); flex-wrap: wrap; }
.bar nav a, .sectionhead a, .actions a:not(.button) { font-size: .94rem; font-weight: 680; }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover { text-decoration: underline; }
.skip { position: absolute; z-index: 5; left: .5rem; top: .5rem; transform: translateY(-160%); padding: .55rem 1rem; background: white; }
.skip:focus { transform: none; }
.hero { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(1.3rem, 4.5vw, 4rem); align-items: center; padding-block: clamp(2rem, 4.8vw, 4.2rem); }
.hero > *, .cards > *, .apps > *, .workbench > * { min-width: 0; }
.kicker, .over { font-family: var(--mono); font-weight: 700; letter-spacing: .08em; font-size: .88rem; color: var(--muted); }
.hero h1 { font-size: clamp(2.25rem, 4.45vw, 4.4rem); line-height: 1.2; letter-spacing: -.065em; font-weight: 820; margin: .24em 0 .35em; text-wrap: balance; }
.hero .intro > p:not(.kicker, .over) { max-width: 36em; color: var(--muted); }
.actions { margin-block: 1.25rem .25rem; }
.button, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .58rem 1.12rem; border: 1px solid var(--ink); border-radius: .45rem;
  font-weight: 700; background: var(--ink); color: #fff; text-decoration: none; cursor: pointer;
}
.button:hover, button:hover, input[type="submit"]:hover { background: #27465d; color: #fff; }
button:disabled { opacity: .58; cursor: default; }
.feature { overflow: hidden; color: #fff; background: #0d1922; border: 1px solid var(--ink); border-radius: .8rem; position: relative; }
.feature > a:first-child { display: block; color: inherit; }
.feature img { width: 100%; height: clamp(14rem, 23vw, 21rem); display: block; object-fit: cover; object-position: center 73%; }
.feature figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; padding: .65rem 1rem; border-top: 1px solid #43545d; color: #eaf0ed; font-size: .88rem; }
.feature figcaption a { color: inherit; }
.sectionhead { gap: 1rem; justify-content: space-between; align-items: baseline; margin: 0 0 1rem; }
.sectionhead > :last-child:not(h2) { flex-shrink: 0; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: -.045em; line-height: 1.4; }
h3 { font-size: 1.1rem; line-height: 1.5; }
main > section:not(.hero), .section, .portfolio { margin-block: clamp(1.35rem, 3.4vw, 3rem); }
.cards, .apps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.card { display: block; padding: 1.15rem 1.2rem 1.3rem; border-radius: .62rem; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.card:hover, .app:hover { border-color: #647b8a; box-shadow: 0 2px 0 #c2ced3; }
.card small, .card .category { display: inline-block; font-family: var(--mono); color: #33543f; font-size: .8125rem; font-weight: 700; margin-bottom: .62rem; background: #e5f0d0; border-radius: .2rem; padding: .1rem .45rem; }
.card strong, .card h3 { display: block; font-size: 1.12rem; font-weight: 770; line-height: 1.5; letter-spacing: -.03em; }
.card p, .card > span:not(.category) { display: block; font-size: .94rem; color: var(--muted); margin-top: .25rem; }
.filters { gap: .55rem; flex-wrap: wrap; margin-block: .85rem 1.15rem; }
.filters button, button.secondary, .button.secondary { background: #fff; border-color: var(--line); color: var(--ink); }
.filters button { min-height: 2.6rem; padding: .35rem .95rem; font-size: .92rem; border-radius: 2rem; }
.filters .active, .filters [aria-pressed="true"] { background: var(--lime); border-color: #839e43; }
.filters button:hover, button.secondary:hover, .button.secondary:hover { border-color: var(--ink); }
input:not([type="checkbox"], [type="radio"], [type="submit"], [type="color"]), textarea, select {
  display: block; padding: .68rem .78rem; width: 100%; max-width: 100%; min-height: 2.85rem; background: #fff; color: var(--ink); border: 1px solid #9caeb8; border-radius: .35rem;
}
input[type="file"] { cursor: pointer; }
input[type="file"]::file-selector-button { padding: .35rem .65rem; border-radius: .25rem; border: 1px solid var(--line); background: var(--paper); color: var(--ink); margin-right: .6rem; }
input[type="color"] { width: 4.5rem; height: 2.8rem; padding: .2rem; border: 1px solid #9caeb8; border-radius: .35rem; background: white; }
textarea, pre { font: .98rem/1.65 var(--mono); }
textarea { resize: vertical; min-height: 8rem; tab-size: 2; }
.crumb { gap: .5rem; min-height: 2.5rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin-top: 1rem; }
h1:not(.hero h1) { font-size: clamp(1.9rem, 4.3vw, 3.25rem); line-height: 1.25; letter-spacing: -.06em; margin-block: .45rem .7rem; }
.workbench { padding: clamp(1rem, 3vw, 2.1rem); background: #fff; border: 1px solid var(--line); border-top: .3rem solid var(--ink); border-radius: .55rem; }
.field { display: block; margin: .75rem 0 1rem; min-width: 0; font-weight: 640; }
.field input, .field select, .field textarea { margin-top: .32rem; font-weight: 450; }
.result { margin-block: 1.2rem .5rem; padding: clamp(1rem, 2.6vw, 1.6rem); border-radius: .45rem; background: #eff4f6; border-left: .27rem solid #5e7d8e; overflow-wrap: anywhere; min-width: 0; }
.result pre, pre.result { white-space: pre-wrap; word-break: break-word; margin-block: .55rem; }
.result img, canvas { max-width: 100%; height: auto; }
.result table { border-collapse: collapse; font-size: .94rem; }
.result th, .result td { text-align: left; vertical-align: top; padding: .45rem .6rem; border-bottom: 1px solid var(--line); }
.app { gap: .85rem; border: 1px solid var(--line); border-radius: .5rem; background: #fff; padding: .85rem; color: var(--ink); text-decoration: none; }
.app img { border-radius: .6rem; flex: none; }
.app strong, .app span { display: block; }
.app span { color: var(--muted); font-size: .9rem; }
.portfolio a { margin-right: 1em; }
footer { margin-top: 3rem; padding-block: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
footer .bar { min-height: 2.5rem; flex-wrap: wrap; }
footer small, footer span { font-size: .88rem; }
@media (max-width: 56rem) {
  .cards, .apps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { gap: 1.25rem; }
}
@media (max-width: 43rem) {
  .wrap { width: min(100% - 2rem, 36rem); }
  .hero { grid-template-columns: 1fr; gap: 1.35rem; padding-block: 1.8rem 1rem; }
  .hero h1 { font-size: clamp(2.2rem, 8vw, 3.1rem); }
  .bar { min-height: 3.75rem; flex-wrap: wrap; padding-block: .65rem; gap: .55rem 1rem; }
  .bar nav { gap: .65rem; }
  .bar nav a, .sectionhead a { font-size: .88rem; }
  .feature img { height: clamp(11rem, 52vw, 17rem); }
  .sectionhead { flex-wrap: wrap; gap: .45rem .9rem; }
  .cards, .apps { grid-template-columns: 1fr; gap: .62rem; }
  .card { padding: .9rem 1.05rem 1rem; }
  .card small { margin-bottom: .32rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .app, button, .button { transition: border-color .12s ease, background-color .12s ease, box-shadow .12s ease; }
}
