@font-face { font-family: "Italiana"; font-weight: 400; font-display: swap; src: url("/fonts/italiana-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-display: swap; src: url("/fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 700; font-display: swap; src: url("/fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 900; font-style: normal; font-display: swap; src: url("/fonts/playfair-display-latin-900-normal.woff2") format("woff2"); }
/* leejiles.com — cool mist and slate, square letterforms that echo the L.J mark, orange only on the point. */
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("/fonts/chakra-petch-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 600; font-display: swap; src: url("/fonts/chakra-petch-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-display: swap; src: url("/fonts/ibm-plex-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url("/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 100 900; font-display: swap; src: url("/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2"); }

:root {
  --bg: #e9ecea;        /* mist */
  --surface: #f6f7f5;
  --ink: #1c2624;       /* deep slate */
  --muted: #56625e;
  --line: #d2d8d5;
  --band: #23302d;      /* projects band */
  --band-ink: #e8ede9;
  --band-muted: #a7b4af;
  --band-line: #34433f;
  --point: #f0622d;     /* the orange point, used sparingly */
  --f-head: "Italiana", "Cormorant Garamond", Garamond, serif;
  --f-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.6 var(--f-body); }
a { color: inherit; text-decoration-color: var(--point); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--point); outline-offset: 4px; border-radius: 4px; }
.wrap { max-width: 1100px; margin: 0 auto; padding-inline: 32px; }

/* the mark */
.mark { display: block; fill: currentColor; }
.mark .pt { fill: var(--point); }

/* top bar */
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 21px/1 var(--f-head); letter-spacing: .01em; white-space: nowrap; }
.brand { gap: 14px; }
.brand svg { display: block; fill: currentColor; height: auto; }
.brand .mono { width: 40px; }
.brand .word { width: 104px; margin-top: 4px; }
.top nav { display: flex; gap: 40px; }
.top .nav-l { justify-content: flex-end; padding-right: 56px; }
.top .nav-r { justify-content: flex-start; padding-left: 56px; }
.home-name { display: block; color: var(--ink); }
.home-name svg { display: block; width: 132px; height: auto; fill: currentColor; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top nav a { font: 500 16px/1 var(--f-body); color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* home intro: the mark, big */
.intro .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: 40px 80px; }
.mono.big { display: block; fill: currentColor; width: clamp(110px, 12vw, 170px); height: auto; }
.intro h1 .word { display: block; fill: currentColor; width: clamp(220px, 26vw, 360px); height: auto; margin: 0 auto; }
.intro h1 { margin: 0; line-height: 0; }
.intro .lede { margin: 6px auto 0; max-width: none; font-size: 15.5px; font-weight: 400; line-height: 1.5; letter-spacing: .06em; color: var(--muted); }

h2 { font: 400 44px/1.05 var(--f-head); margin: 0 0 32px; letter-spacing: 0; }
h3 { font: 600 22px/1.25 var(--f-head); margin: 28px 0 8px; }

/* one card for everything: apps, projects, books */
.home .wrap { max-width: 1440px; }
section.apps { padding-block: 0 96px; }
.grid { --cols: 5; --gap: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 56px var(--gap); }
.grid > .card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
.card { display: flex; flex-direction: column; text-decoration: none; color: inherit; min-width: 0; }
.card .icon, .card .badge { width: 88px; height: 88px; border-radius: 20px; flex: none; box-shadow: 0 1px 0 rgba(28,38,36,.06), 0 8px 22px rgba(28,38,36,.12); }
.card .cover { width: 88px; height: auto; flex: none; border-radius: 3px; box-shadow: 0 1px 0 rgba(28,38,36,.08), 0 10px 22px rgba(28,38,36,.22); }
.card h3 { margin: 20px 0 6px; font: 400 25px/1.15 var(--f-head); letter-spacing: .01em; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: none; }
.meta-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin-top: auto; padding-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.meta-line .go { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--point); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a.card:hover h3 { text-decoration: underline; text-decoration-color: var(--point); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.card:focus-visible { outline: 2px solid var(--point); outline-offset: 6px; border-radius: 6px; }

/* badges: logos for things without an app icon, all 88px */
.badge { display: grid; place-items: center; overflow: hidden; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 600 30px/1 var(--f-head); }
.badge.thread { background: #06060f; border-color: #06060f; }
.badge.thread .spool { font: 400 46px/1.15 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.badge.amigo { display: flex; align-items: center; justify-content: center; background: #0b0d10; border-color: #0b0d10; color: #f2f0eb; font: 500 16.5px/1 var(--f-body); letter-spacing: -.01em; }
.badge.amigo i { width: 5.5px; height: 5.5px; border-radius: 50%; background: #425af6; margin-left: 3px; margin-top: 2px; flex: none; }
.badge.amigo i:first-of-type { margin-left: 5px; }
.badge.tameshi { background: #0b0d10; border-color: #0b0d10; color: #f2f0eb; font: 600 40px/1 "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; }
.badge.fd { background: #f4efe6; border: 2px solid #171412; color: #171412; font: 700 34px/1 Georgia, "Times New Roman", serif; letter-spacing: -1px; }
.badge.nm { display: flex; align-items: center; justify-content: center; background: #fff; border-color: #fff; color: #0a0a0a; font: 900 54px/1 "Playfair Display", Georgia, serif; letter-spacing: -.035em; padding-bottom: 8px; }
.badge.nm i { font-style: normal; }
.badge.robot { background: #fbf6ec; border-color: #fbf6ec; }
.badge.robot img { width: 66%; height: auto; }
.badge.beacon { background: #0e1726; border-color: #0e1726; }
.badge.beacon svg, .badge.dock img { width: 100%; height: 100%; display: block; }
.badge.ddrb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: #16181c; border-color: #16181c; color: #fff; font: 300 23px/1 "IBM Plex Sans", sans-serif; letter-spacing: .02em; }
.badge.ddrb i { width: 27px; height: 3.5px; background: #ff462d; }
.badge.views { background: #1F2937; border-color: #1F2937; }
.badge.views svg { width: 54px; height: 54px; }
.badge.skrbl { display: flex; align-items: center; justify-content: center; background: #fff; border-color: #fff; font: 700 25px/1 "Fredoka", "Arial Rounded MT Bold", sans-serif; }
.badge.skrbl b { display: inline-block; font-weight: 700; }
.badge.dock { background: #0f2439; border-color: #0f2439; }
.badge.royale { background: #0D0D0D; border-color: #0D0D0D; color: #C9A24A; font: 900 50px/1 "Playfair Display", Georgia, serif; padding-bottom: 4px; }
.badge.hermano { background: #7c3aed; border-color: #7c3aed; }
.badge.hermano .cowboy { font: 400 46px/1.15 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.badge.wah { display: flex; align-items: center; justify-content: center; gap: 3px; background: #F8F6F3; border-color: #E5E2DB; }
.badge.wah b { width: 23px; height: 26px; border-radius: 4px; display: grid; place-items: center; font: 700 15px/1 var(--f-body); color: #1A1A1A; background: #fff; border: 1.5px solid #BFBAB2; }
.badge.wah b.g { background: #3A7D44; border-color: #3A7D44; color: #fff; }
.badge.wah b.y { background: #D4A017; border-color: #D4A017; color: #fff; }

/* projects: same cards on the slate band */
.projects { background: var(--band); color: var(--band-ink); padding-block: 88px 96px; }
.projects-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 32px; margin-bottom: 36px; }
.projects-head h2 { margin: 0; }
.projects-head p { margin: 0; color: var(--band-muted); }
.projects .card h3 { color: var(--band-ink); }
.projects .card p, .projects .meta-line { color: var(--band-muted); }
.projects .card .badge { box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.25); }

/* books */
.books { padding-block: 88px 8px; }

/* contact */
.contact-band { padding-block: 88px 96px; }
.contact-band h2 { margin-bottom: 12px; }
.big-mail { font: 600 clamp(28px, 5vw, 52px)/1.1 var(--f-head); text-decoration: underline; text-decoration-color: var(--point); text-decoration-thickness: 3px; text-underline-offset: 8px; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 28px; font-size: 15px; color: var(--muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
footer a { color: var(--muted); }

/* ---- app support and privacy pages ---- */
body:not(.home) .wrap { max-width: 860px; }
.hero { padding-block: 48px 40px; }
.label { font: 500 16px/1.3 var(--f-body); color: var(--muted); margin: 0 0 18px; }
.hero h1 { font: 600 clamp(40px, 7vw, 68px)/1 var(--f-head); margin: 0; }
.lede { margin: 22px 0 0; max-width: 52ch; color: var(--muted); font-size: 21px; line-height: 1.5; }
.app-head { display: flex; align-items: center; gap: 24px; }
.app-head img { width: 96px; height: 96px; border-radius: 22px; flex: none; box-shadow: 0 1px 0 rgba(28,38,36,.06), 0 8px 24px rgba(28,38,36,.10); }
body:not(.home) main .wrap { padding-block: 8px 88px; }
body:not(.home) section { padding-top: 24px; }
body:not(.home) h2 { font-size: 30px; margin: 0 0 14px; }
section > h2:not(:first-child) { margin-top: 44px; }
p, li, dd { max-width: 68ch; }
p { margin: 12px 0; }
ul { padding-left: 1.1em; margin: 12px 0; }
li { margin: 8px 0; }
li::marker { color: var(--point); }
strong { font-weight: 650; }
.meta { font-size: 15.5px; color: var(--muted); }
.contact { margin: 20px 0; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--point); border-radius: 6px; }
.contact a { font: 600 22px/1.2 var(--f-head); }
.summary, .note { padding: 18px 22px; margin: 18px 0; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--point); border-radius: 6px; }
dl { margin: 12px 0; }
dt { font-weight: 650; margin-top: 20px; }
dd { margin: 4px 0 0; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 52px 0 0; }

@media (max-width: 1200px) {
  .grid { --cols: 4; }
}
@media (max-width: 960px) {
  .grid { --cols: 3; --gap: 32px; row-gap: 48px; }
}
@media (max-width: 720px) {
  .grid { --cols: 2; --gap: 24px; row-gap: 44px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding-inline: 20px; }
  .top .wrap { height: 68px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand .mono { width: 32px; } .brand .word { width: 86px; }
  .top nav { gap: 12px; }
  .top nav a { font-size: 14px; }
  .intro .wrap { gap: 16px; padding-block: 32px 64px; }
  .mono.big { width: 96px; }
  .projects { padding-block: 64px 72px; }
  .app-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .contact-band { padding-block: 64px 72px; }
  .books { padding-block: 64px 0; }
}
@media (max-width: 440px) {
  .grid { --cols: 1; }
}

/* home: centered nav, side-rail section headings */
.split { display: block; }
.sec-head { display: flex; align-items: center; gap: 28px; margin: 0 0 44px; }
.sec-head::before, .sec-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.projects .sec-head::before, .projects .sec-head::after { background: var(--band-line); }
.sec-head h2 { margin: 0; font: 400 30px/1 var(--f-head); letter-spacing: .04em; white-space: nowrap; }
.sec-head p { display: none; }
.contact-band .split { display: flex; flex-direction: column; align-items: center; }
.contact-band .sec-head { align-self: stretch; }
.home footer .wrap { justify-content: center; gap: 28px; }
@media (max-width: 600px) {
  }

@media (max-width: 720px) {
  .top .wrap { grid-template-columns: 1fr 1fr; grid-template-areas: "name name" "l r"; height: auto; padding-block: 18px 6px; row-gap: 12px; }
  .home-name { grid-area: name; justify-self: center; }
  .home-name svg { width: 118px; }
  .top .nav-l { grid-area: l; padding-right: 14px; gap: 20px; }
  .top .nav-r { grid-area: r; padding-left: 14px; gap: 20px; }
}
