/* adrianrus.com — Weave design system v1 (yellow + blue), 2026-11-30
   Yellow = fills and highlights (never text on light ground). Blue = accent text. */

@font-face{font-family:"Archivo"; src:url("/assets/fonts/archivo-var-latin.woff2") format("woff2"); font-weight:300 900; font-stretch:62% 125%; font-style:normal; font-display:swap}
@font-face{font-family:"JetBrains Mono"; src:url("/assets/fonts/jetbrains-mono-var-latin.woff2") format("woff2"); font-weight:100 800; font-style:normal; font-display:swap}

:root{
  --bg:#FFFFFF; --tint:#F2F2F0; --ink:#121212; --muted:#5E5E5C; --line:#DCDCD9;
  --inv-bg:#121212; --inv-ink:#F4F4F2; --inv-muted:#A3A3A0; --inv-line:#333331; --inv-field:#1C1C1B;
  --yellow:#FFC800; --on-yellow:#121212; --blue:#1A56FF; --busy:#D6453A; --online:#2FA866;
  --f-sans:"Archivo",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,monospace;
  --weave-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cg fill='%23000'%3E%3Crect x='1' y='2' width='10' height='1.6'/%3E%3Crect x='1' y='5.2' width='10' height='1.6'/%3E%3Crect x='1' y='8.4' width='10' height='1.6'/%3E%3Crect x='14' y='13' width='10' height='1.6'/%3E%3Crect x='14' y='16.2' width='10' height='1.6'/%3E%3Crect x='14' y='19.4' width='10' height='1.6'/%3E%3Crect x='14' y='1' width='1.6' height='10'/%3E%3Crect x='17.2' y='1' width='1.6' height='10'/%3E%3Crect x='20.4' y='1' width='1.6' height='10'/%3E%3Crect x='2' y='13' width='1.6' height='10'/%3E%3Crect x='5.2' y='13' width='1.6' height='10'/%3E%3Crect x='8.4' y='13' width='1.6' height='10'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme:light;
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){
  --bg:#0F0F10; --tint:#18181A; --ink:#F1F1EE; --muted:#A1A19D; --line:#2B2B2D;
  --inv-bg:#19191B; --inv-ink:#F1F1EE; --inv-muted:#A1A19D; --inv-line:#2E2E31; --inv-field:#121213;
  --blue:#3D82FF; --busy:#F07065; color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#0F0F10; --tint:#18181A; --ink:#F1F1EE; --muted:#A1A19D; --line:#2B2B2D;
  --inv-bg:#19191B; --inv-ink:#F1F1EE; --inv-muted:#A1A19D; --inv-line:#2E2E31; --inv-field:#121213;
  --blue:#3D82FF; --busy:#F07065; color-scheme:dark}

*{box-sizing:border-box}
html{scroll-behavior:smooth; -webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--ink); font-family:var(--f-sans); font-size:17px; line-height:1.55; -webkit-font-smoothing:antialiased; transition:background .25s,color .25s}
a{color:inherit}
h1,h2,h3{margin:0; text-wrap:balance}
p{margin:0}
img{max-width:100%; display:block}
:focus-visible{outline:2px solid var(--blue); outline-offset:3px}
.acc{color:var(--blue)}
.wrap{padding-left:max(16px,env(safe-area-inset-left,0px)); padding-right:max(16px,env(safe-area-inset-right,0px))}
.in{max-width:1200px; margin:0 auto}
.sr-only{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0}
@media (prefers-reduced-motion: reduce){*{transition:none!important; animation:none!important} html{scroll-behavior:auto}}

/* weave pattern: threads drawn with a mask so they follow the tokens */
.weave{position:relative; background:var(--weave-ground,var(--bg))}
.weave::after{content:""; position:absolute; inset:0; background:var(--weave-thread,var(--ink)); -webkit-mask-image:var(--weave-mask); mask-image:var(--weave-mask); -webkit-mask-size:24px 24px; mask-size:24px 24px; pointer-events:none}
.band{height:36px; --weave-ground:var(--ink); --weave-thread:var(--bg)}

/* nav */
.nav{display:flex; align-items:center; gap:20px; padding-block:20px; flex-wrap:wrap}
.mark{display:flex; align-items:center; gap:12px; text-decoration:none}
.mark .ar{width:38px; height:38px; display:grid; place-items:center; background:var(--ink); color:var(--bg); font-weight:900; font-stretch:125%; font-size:14px; border-radius:4px; position:relative}
.mark .ar::after{content:""; position:absolute; right:-3px; bottom:-3px; width:10px; height:10px; border-radius:50%; background:var(--yellow); box-shadow:0 0 0 2px var(--bg)}
.mark b{display:block; font-weight:700; font-size:15px; line-height:1.2}
.mark small{display:block; font-family:var(--f-mono); font-size:11px; color:var(--muted)}
.nav nav{display:flex; gap:22px; margin-left:auto; font-size:15px; flex-wrap:wrap}
.nav nav a{text-decoration:none}
.nav nav a:hover{text-decoration:underline; text-decoration-color:var(--yellow); text-decoration-thickness:3px; text-underline-offset:6px}
.nav-r{display:flex; gap:10px; align-items:center}
.icon-btn{width:38px; height:38px; display:grid; place-items:center; border-radius:999px; border:1.5px solid var(--line); background:var(--bg); color:var(--ink); cursor:pointer; padding:0}
.icon-btn:hover{border-color:var(--ink)}
.icon-btn svg{width:16px; height:16px}
.icon-btn .sun{display:none}
:root[data-theme="dark"] .icon-btn .sun{display:block}
:root[data-theme="dark"] .icon-btn .moon{display:none}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .icon-btn .sun{display:block} :root:not([data-theme="light"]) .icon-btn .moon{display:none}}
.pill-btn{font-weight:700; font-size:14px; padding:10px 18px; border-radius:999px; background:var(--ink); color:var(--bg); text-decoration:none; white-space:nowrap; transition:background .2s,color .2s}
.pill-btn:hover{background:var(--yellow); color:var(--on-yellow)}
@media (max-width:520px){.nav nav{display:none}}

/* hero */
.hero{display:grid; grid-template-columns:1.3fr 1fr; gap:48px; padding-block:40px 56px; align-items:end}
@media (max-width:880px){.hero{grid-template-columns:1fr; gap:40px}}
.role{font-weight:650; font-size:13px; text-transform:uppercase; letter-spacing:.16em; display:flex; gap:12px; align-items:center}
.role i{width:26px; height:3px; background:var(--yellow)}
.name{font-size:clamp(54px,11vw,156px); font-weight:900; font-stretch:125%; line-height:.84; letter-spacing:-.03em; text-transform:uppercase; margin-top:20px}
.name span{color:var(--yellow)}
.hero h1{font-size:clamp(24px,2.7vw,34px); font-weight:560; line-height:1.18; letter-spacing:-.015em; max-width:22ch; margin-top:30px}
.hero .lead{font-size:clamp(17px,1.5vw,19px); color:var(--muted); max-width:52ch; margin-top:16px}
.actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:30px}
.btn{font:inherit; font-weight:700; font-size:15px; padding:13px 22px; border-radius:999px; text-decoration:none; border:2px solid var(--ink); display:inline-flex; gap:10px; align-items:center; cursor:pointer; background:none; color:var(--ink); transition:background .2s,color .2s,border-color .2s}
.btn.p{background:var(--ink); color:var(--bg)}
.btn.p:hover{background:var(--yellow); border-color:var(--yellow); color:var(--on-yellow)}
.btn:not(.p):hover{border-color:var(--blue); color:var(--blue)}
.btn svg{width:16px; height:16px; transition:transform .2s}
.btn:hover svg{transform:translateX(3px)}

.portrait{position:relative; margin:0 0 0 20px; max-width:100%}
.portrait .backing{position:absolute; inset:20px 0 -20px -20px; border-radius:6px; overflow:hidden; --weave-ground:var(--bg); --weave-thread:var(--ink)}
.portrait .photo{position:relative; aspect-ratio:4/5; border-radius:6px; overflow:hidden; background:var(--tint)}
.portrait img{width:100%; height:100%; object-fit:cover}
.tagrow{position:absolute; left:14px; right:14px; top:14px; display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap}
.chip{font-family:var(--f-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; background:var(--bg); color:var(--ink); padding:5px 9px; border-radius:3px; display:inline-flex; gap:7px; align-items:center}
.chip i{width:7px; height:7px; border-radius:50%; background:var(--online)}
.loc{position:absolute; left:14px; bottom:14px; background:var(--bg); color:var(--ink); padding:10px 14px; border-radius:3px}
.loc small{display:block; font-family:var(--f-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted)}
.loc b{display:block; font-size:17px; font-weight:700; line-height:1.2}
.loc span{font-family:var(--f-mono); font-size:11.5px; color:var(--muted)}

/* facts */
.facts{display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; border-top:2px solid var(--ink); border-bottom:1px solid var(--line); margin-bottom:64px}
.facts>div{padding:22px 24px 24px 0; display:grid; gap:4px; align-content:start; min-width:0}
.facts>div+div{padding-left:24px; border-left:1px solid var(--line)}
@media (max-width:860px){.facts{grid-template-columns:1fr 1fr}.facts>div:nth-child(3){padding-left:0; border-left:0}.facts>div:nth-child(n+3){border-top:1px solid var(--line)}}
@media (max-width:460px){.facts{grid-template-columns:1fr}.facts>div{padding-left:0!important; border-left:0!important}.facts>div+div{border-top:1px solid var(--line)}}
.facts .lbl{font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); display:flex; gap:8px; align-items:center}
.dot{width:8px; height:8px; border-radius:50%; background:var(--busy); position:relative; flex:none}
.dot::after{content:""; position:absolute; inset:-4px; border-radius:50%; background:var(--busy); opacity:.3; animation:pulse 1.8s ease-in-out infinite}
@keyframes pulse{0%,100%{transform:scale(.6); opacity:.35}50%{transform:scale(1.1); opacity:.12}}
.facts .big{font-size:clamp(30px,3.4vw,44px); font-weight:850; font-stretch:115%; letter-spacing:-.02em; line-height:1.05; font-variant-numeric:tabular-nums}
.facts .big sup{color:var(--yellow); font-size:.7em; vertical-align:.18em;}
.facts .status{font-size:24px; font-weight:800; font-stretch:110%; line-height:1.15}
.facts p{color:var(--muted); font-size:14.5px}
.facts a{color:var(--blue); font-family:var(--f-mono); font-size:12px; text-decoration:none}
.facts a:hover{text-decoration:underline}

/* sections */
.sec{padding-block:88px; scroll-margin-top:12px}
.sec-h{display:grid; grid-template-columns:1.3fr 1fr; gap:20px 48px; align-items:end; margin-bottom:44px}
@media (max-width:760px){.sec-h{grid-template-columns:1fr}}
.eyebrow{font-family:var(--f-mono); font-size:12px; text-transform:uppercase; letter-spacing:.12em; color:var(--muted); margin-bottom:16px; display:block}
.sec-h h2{font-size:clamp(36px,5.4vw,68px); font-weight:900; font-stretch:118%; letter-spacing:-.025em; line-height:.95; text-transform:uppercase}
.sec-h p{color:var(--muted); font-size:18px; max-width:42ch}

.svc{border-top:2px solid var(--ink)}
.svc-row{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.25fr); gap:12px 56px; padding-block:30px; border-bottom:1px solid var(--line)}
@media (max-width:760px){.svc-row{grid-template-columns:1fr}}
.svc-row .k{font-family:var(--f-mono); font-size:12px; color:var(--blue); display:block; margin-bottom:8px}
.svc-row h3{font-size:clamp(24px,2.6vw,32px); font-weight:850; font-stretch:110%; letter-spacing:-.015em; line-height:1.05}
.svc-row p{color:var(--muted); max-width:56ch}
.tags{display:flex; flex-wrap:wrap; gap:6px; margin:16px 0 0; padding:0; list-style:none}
.tags li{font-family:var(--f-mono); font-size:11.5px; padding:4px 10px; border-radius:999px; border:1px solid var(--line); color:var(--ink); transition:border-color .2s}
.svc-row:hover .tags li{border-color:var(--yellow)}

.logos{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-top:1px solid var(--line); border-left:1px solid var(--line)}
@media (max-width:760px){.logos{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:480px){.logos{grid-template-columns:repeat(2,minmax(0,1fr))}}
.logos div{border-right:1px solid var(--line); border-bottom:1px solid var(--line); height:110px; display:grid; place-items:center; padding:20px; transition:background .2s}
.logos div:hover{background:var(--tint)}
.logos img{max-height:32px; width:auto; filter:grayscale(1); opacity:.7; transition:filter .25s,opacity .25s,transform .25s}
.logos div:hover img{filter:none; opacity:1; transform:translateY(-2px)}
:root[data-theme="dark"] .logos img,:root[data-theme="dark"] .logos div:hover img{filter:grayscale(1) brightness(0) invert(1)}
:root[data-theme="dark"] .logos img{opacity:.66}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .logos img,:root:not([data-theme="light"]) .logos div:hover img{filter:grayscale(1) brightness(0) invert(1)} :root:not([data-theme="light"]) .logos img{opacity:.66}}

/* contact (dark block in both themes) */
.contact{background:var(--inv-bg); color:var(--inv-ink); scroll-margin-top:0}
.contact .band{--weave-ground:var(--bg); --weave-thread:var(--ink)}
.contact .in{padding-block:88px 72px; display:grid; grid-template-columns:1fr 1.2fr; gap:48px 64px; align-items:start}
@media (max-width:900px){.contact .in{grid-template-columns:1fr}}
.contact .eyebrow{color:var(--inv-muted)}
.contact h2{font-size:clamp(44px,7vw,92px); font-weight:900; font-stretch:122%; line-height:.9; text-transform:uppercase; letter-spacing:-.025em}
.contact h2 .acc{color:var(--yellow)}
.contact .intro{color:var(--inv-muted); font-size:18px; max-width:40ch; margin-top:22px}
.info{margin-top:32px; border-top:1px solid var(--inv-line)}
.info>div{display:flex; justify-content:space-between; gap:16px; padding-block:14px; border-bottom:1px solid var(--inv-line); font-family:var(--f-mono); font-size:13px; flex-wrap:wrap}
.info>div>span:first-child{color:var(--inv-muted)}
.info .mail{align-items:center; padding-block:16px}
.info .mail small{display:block; font-family:var(--f-mono); font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--inv-muted); margin-bottom:4px}
.info .mail a{font-family:var(--f-sans); font-size:clamp(18px,2vw,22px); font-weight:700; overflow-wrap:anywhere; text-decoration:none; color:var(--inv-ink)}
.info .mail a:hover{text-decoration:underline; text-decoration-color:var(--yellow); text-decoration-thickness:2px; text-underline-offset:5px}
.copy{font:inherit; font-family:var(--f-sans); font-size:13px; font-weight:700; border:1.5px solid var(--inv-ink); background:none; color:var(--inv-ink); border-radius:999px; padding:6px 14px; cursor:pointer}
.copy{transition:border-color .2s,color .2s,background .2s}
.copy:hover{border-color:var(--yellow); color:var(--yellow); background:none}
.cform{display:grid; grid-template-columns:1fr 1fr; gap:14px; background:var(--inv-field); border:1px solid var(--inv-line); border-radius:8px; padding:clamp(20px,3vw,32px)}
@media (max-width:560px){.cform{grid-template-columns:1fr}}
.form-h{grid-column:1/-1; display:flex; justify-content:space-between; gap:12px; font-family:var(--f-mono); font-size:11.5px; text-transform:uppercase; letter-spacing:.1em; color:var(--inv-muted); padding-bottom:14px; border-bottom:1px solid var(--inv-line); margin-bottom:4px}
.form-h i{display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--yellow); margin-right:8px; vertical-align:middle}
.field{display:grid; gap:6px; min-width:0}
.field.full{grid-column:1/-1}
.field label{font-size:13.5px; font-weight:600; color:var(--inv-ink)}
.field input,.field textarea{font:inherit; font-size:16px; color:var(--inv-ink); background:var(--inv-bg); border:1.5px solid var(--inv-line); border-radius:6px; padding:12px 14px; width:100%}
.field input:focus,.field textarea:focus{outline:none; border-color:var(--yellow)}
.field textarea{resize:vertical; min-height:150px}
.field.cap input{max-width:160px}
.hp{display:none}
.form-foot{display:flex; align-items:end; justify-content:flex-end}
.send{font:inherit; font-weight:700; font-size:15px; padding:13px 22px; border-radius:999px; border:0; background:var(--yellow); color:var(--on-yellow); cursor:pointer; display:inline-flex; gap:10px; align-items:center}
.send:disabled{opacity:.7; cursor:progress}
.send{transition:background .2s,color .2s}
.send:hover:not(:disabled){background:var(--inv-ink); color:var(--inv-bg)}
.send svg{width:16px; height:16px; transition:transform .2s}
.send:hover:not(:disabled) svg{transform:translateX(3px)}
.msgs{grid-column:1/-1; display:grid; gap:8px}
.msgs:empty{display:none}
.msg{font-size:14.5px; padding:12px 14px; border-radius:6px; border:1px solid var(--inv-line); border-left:4px solid var(--busy)}
.msg.ok{border-left-color:var(--online)}
.foot{border-top:1px solid var(--inv-line)}
.foot .in2{max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding-block:26px 34px; font-family:var(--f-mono); font-size:12px; color:var(--inv-muted)}
.foot b{color:var(--inv-ink); font-weight:500}
/* AutoShip logo has a filled badge: invert it instead of flattening to a white block */
:root[data-theme="dark"] .logos img[src$="client5.svg"],:root[data-theme="dark"] .logos div:hover img[src$="client5.svg"]{filter:grayscale(1) invert(1)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .logos img[src$="client5.svg"],:root:not([data-theme="light"]) .logos div:hover img[src$="client5.svg"]{filter:grayscale(1) invert(1)}}
