/* Webborne: shared styles for the homepage and the showcase.
   Brand from the original site: charcoal #1a1a1a, burnt orange #d5603f, and the wordmark's
   red → orange → tan gradient. The slanted orange band between sections is kept from the original. */
@font-face { font-family: 'Bricolage Grotesque'; src: url(fonts/bricolage.woff2) format('woff2'); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(fonts/figtree.woff2) format('woff2'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url(fonts/figtree-italic.woff2) format('woff2'); font-weight: 300 900; font-style: italic; font-display: swap; }
:root {
  --night: #1a1a1a;
  --night-2: #232120;
  --ember: #dd4430;
  --flame: #d5603f;
  --rope: #c99a62;
  --mist: #f3f4f3;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --slate: #586264;
  --line: #dfe2e1;
  --on-dark: #f6f1ec;
  --on-dark-dim: #c8bdb4;
  --display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --slant: 4vw;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--rope); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(32px, 6vw, 52px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--slate); max-width: 34em; margin-top: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 700 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s; }
.btn-flame { background: var(--flame); color: #fff; }
.btn-flame:hover { background: var(--ember); }
.btn-ghost { border-color: rgba(246, 241, 236, .45); color: var(--on-dark); background: transparent; }
.btn-ghost:hover { border-color: var(--on-dark); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }

/* header (sits on the dark hero / page top) */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(26, 26, 26, .92); backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg { width: 22px; height: 31px; }
.brand img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { white-space: nowrap; color: var(--on-dark-dim); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { color: #fff; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 15px; margin-left: 6px; color: #fff; }
.nav .hide-s { display: none; }
@media (min-width: 760px) { .nav .hide-s { display: inline-block; } .brand img { width: 170px; } }
@media (max-width: 430px) { .brand img { width: 118px; } .brand svg { width: 18px; height: 26px; } .nav a { padding: 10px 6px; font-size: 14px; } .nav .btn { padding: 0 12px; font-size: 14px; } }

/* the slanted orange band from the original site */
/* .slant: a divider element between a section coloured --a (above) and one coloured --b (below).
   The line rises to the right and the orange band thickens towards the right, as on the original. */
.slant { position: relative; z-index: 1; height: calc(var(--slant) + 12px); background: var(--a, var(--night)); margin: -1px 0; }
.slant::before, .slant::after { content: ''; position: absolute; inset: 0; }
.slant::before { background: var(--b, var(--paper)); clip-path: polygon(0 100%, 100% 12px, 100% 100%); inset: 0 0 -1px; }
.slant::after { background: var(--flame); clip-path: polygon(0 calc(100% - 3px), 100% 0, 100% 12px, 0 100%); }

/* footer */
.site-foot { background: var(--night); color: var(--on-dark-dim); padding: 44px 0 calc(env(safe-area-inset-bottom) + 32px); font-size: 15px; }
.site-foot .wrap { display: grid; gap: 28px; }
@media (min-width: 760px) { .site-foot .wrap { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }
.site-foot img { width: 160px; height: auto; }
.site-foot p { max-width: 36em; margin-top: 12px; }
.site-foot a { color: var(--on-dark); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.foot-contact { display: grid; gap: 6px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); }
.socials a:hover { background: var(--flame); text-decoration: none; }
.socials svg { width: 19px; height: 19px; fill: currentColor; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; font-size: 14px; }

/* project cards (homepage featured + showcase) */
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: 14px; overflow: hidden; text-decoration: none;
  color: inherit; border: 1px solid var(--line); }
.card .shot { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; background: var(--night); }
.card .shot.pix { image-rendering: pixelated; }
.card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .kind { font-size: 14px; font-weight: 600; color: var(--slate); display: flex; align-items: center; gap: 8px; }
.card .kind i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); flex: none; }
.card h3 { font-size: 24px; }
.card p { color: var(--slate); font-size: 16px; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tags span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: #3d4547; }
.card .go { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--flame); display: inline-flex; align-items: center; gap: 6px; }
.card .go svg { width: 16px; height: 16px; transition: transform .15s; }
.card:hover { border-color: #c7cbca; }
.card:hover .go svg { transform: translateX(3px); }
[data-cat="websites"] { --dot: #2f8f83; }
[data-cat="apps"] { --dot: #3a6fd8; }
[data-cat="games"] { --dot: var(--flame); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
