/* zidery.com, the AI portfolio (2026-10-29)
 *
 * Matches the owner's wallpaper: layered sand dunes that step from cream at
 * the top to dark chocolate at the bottom. Each section is one layer, a
 * shade darker than the one above, joined by a wave. The cards stay light
 * and plain so it still reads as a business site.
 *
 * assets/site.css is the old look, still used by /today and /admin.
 */

:root {
  --l1: #F2ECE4;   /* hero, the sky */
  --l2: #E8D8C4;   /* work */
  --l3: #D6BB98;   /* websites */
  --l4: #6E5139;   /* the deep layers: contact */
  --l5: #2E1C0E;   /* footer */
  --surface: #FFFDF9;
  --ink: #2A1A0D;
  --ink-2: #6B5442;
  --line: rgba(42, 26, 13, .12);
  --accent: #8A5A33;
  --accent-bg: #F1E4D3;
  --on-dark: #F2E3CF;
  --on-dark-2: rgba(242, 227, 207, .72);
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html { overflow-x: clip; }
body { background: var(--l1); color: var(--ink); font: 16px/1.55 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ------------------------------------------------------------ nav */

.nav { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; font-size: 17px; }
.brand img { width: auto; height: 44px; display: block; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a:not(.btn) { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 10px 14px; border-radius: 8px; }
.nav__links a:not(.btn):hover { color: var(--ink); }

/* --------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
  font: 600 15px "Inter", system-ui, sans-serif; text-decoration: none; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; transition: transform .15s, background .2s;
}
.btn:hover { background: #45301D; }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(42, 26, 13, .22); }
.btn--ghost:hover { background: rgba(42, 26, 13, .05); }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--line { background: transparent; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(242, 227, 207, .35); }
.btn--line:hover { background: rgba(242, 227, 207, .08); }
.btn[hidden] { display: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ----------------------------------------------------------- layers */

/* a layer's wave sits on its top edge, filled with the layer's own colour,
   so it rises into the one above like the next dune */
.layer { position: relative; }
.layer__wave { position: absolute; left: 0; bottom: 100%; width: 100%; height: clamp(40px, 7vw, 96px); display: block; margin-bottom: -1px; filter: drop-shadow(0 -6px 10px rgba(42, 26, 13, .08)); }
.layer--2 { background: var(--l2); color: var(--l2); }
.layer--3 { background: var(--l3); color: var(--l3); }
.layer--4 { background: var(--l4); color: var(--l4); }
.layer--5 { background: var(--l5); color: var(--l5); }
.layer > .wrap { color: var(--ink); }

.hero { padding-block: clamp(48px, 9vw, 112px) clamp(64px, 8vw, 96px); }
.eyebrow { font: 500 13px "JetBrains Mono", ui-monospace, monospace; color: var(--accent); letter-spacing: .02em; margin: 0 0 18px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; margin: 0; max-width: 16ch; }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 52ch; margin: 20px 0 32px; }

.section { padding-block: 24px clamp(96px, 12vw, 150px); }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: 26px; letter-spacing: -.02em; margin: 0; }
.sec-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.layer--3 .sec-head p { color: #5A4331; }

/* ------------------------------------------------------------ cards */

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; min-width: 0;
  box-shadow: 0 1px 2px rgba(42, 26, 13, .06), 0 12px 32px -12px rgba(42, 26, 13, .18);
}
.card--wide { grid-column: 1 / -1; }
.tag { display: inline-block; font: 500 12px "JetBrains Mono", ui-monospace, monospace; color: var(--accent); background: var(--accent-bg); padding: 4px 8px; border-radius: 6px; margin-bottom: 14px; align-self: flex-start; }
.card h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 8px; }
.card > p { color: var(--ink-2); margin: 0; }
.card .row { margin-top: auto; padding-top: 24px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 24px; }
.stat { background: var(--surface); padding: 16px; }
.stat b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--ink-2); }
.fine { font-size: 13px; color: var(--ink-2); margin: 14px 0 0; }

.links { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.links a span { margin-left: auto; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.links a::after { content: "↗"; color: var(--accent); }
.links a:hover { color: var(--accent); }

.extras { margin-top: 24px; padding: 14px 18px 4px; border-radius: 12px; background: var(--accent-bg); }
.extras h4 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.extras .links { margin-top: 8px; border-top: 0; }
.extras .links li:last-child a { border-bottom: 0; }
.extras .links a { min-height: 44px; padding: 10px 0; white-space: nowrap; }
.extras .links a span { white-space: normal; text-align: right; }

.shot { aspect-ratio: 16 / 10; border-radius: 10px; background: var(--accent-bg); margin: 0 0 20px; overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

/* ----------------------------------------- Roblox models (/roblox) */

/* three across, square pictures, so a row of renders lines up */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.model {
  background: var(--surface); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  box-shadow: 0 1px 2px rgba(42, 26, 13, .06), 0 12px 32px -12px rgba(42, 26, 13, .18);
}
.model__pic { aspect-ratio: 1 / 1; background: var(--accent-bg); }
.model__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.model__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.model__body .tag { margin-bottom: 10px; }
.model h3 { font-size: 18px; letter-spacing: -.01em; margin: 0 0 6px; }
.model p { color: var(--ink-2); margin: 0; font-size: 15px; }
.model__link { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.model__link::after { content: " ↗"; white-space: pre; }
.model__link:hover { text-decoration: underline; }

/* ---------------------------------------------------- contact, foot */

.contact { text-align: center; padding-block: 32px clamp(96px, 11vw, 140px); }
.layer--4 > .wrap, .layer--5 > .wrap { color: var(--on-dark); }
.contact h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; margin: 0 0 12px; }
.contact p { color: var(--on-dark-2); margin: 0 0 28px; }
.contact .row { justify-content: center; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-block: 8px 32px; font-size: 14px; color: var(--on-dark-2); }
.foot a { color: var(--on-dark-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--on-dark); }
.foot nav { display: flex; gap: 20px; }

/* ------------------------------------------------- plain pages (404) */

.page { padding-block: clamp(48px, 9vw, 112px) clamp(120px, 14vw, 180px); }
.page h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.035em; margin: 0 0 12px; }
.page p { color: var(--ink-2); margin: 0 0 28px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav__links a:not(.btn) { display: none; }
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .model__body { padding: 14px 14px 16px; }
}

@media (max-width: 420px) {
  .models { grid-template-columns: 1fr; }
}
