/* =====================================================================
   MAGNISON  (Version 1: Feed)
   Built from 7pej.com: same darks and layout, orange instead of blue,
   squared-off link boxes outlined in orange.
   ===================================================================== */

/* ============ COLORS ============ */
:root {
  --bg: #0e0d0d;
  --card: #161515;          /* link boxes, a step lighter than the page */
  --panel: #141313;
  --line: #2a2826;
  --text: #f2eee8;
  --soft: #c8c2bb;
  --muted: #a29c96;
  --accent: #E06717;        /* Nathan's orange: outlines, icons, his name */
  --accent-line: #8a4314;   /* darker orange for quiet outlines */
  --accent-glow: rgba(224, 103, 23, .12);
  --raised: #1c1b1a;
  --edge: #393533;
  --faint: #89847e;
  --orange: #FF4300;        /* Cadre Club oranges */
  --amber: #FF9400;
  --radius: 4px;            /* "squares, with the slightest soft curve" */
  --name-font: 'Fraunces', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: 'Manrope', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page { min-height: 100vh; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 28px; max-width: 1600px; margin: 0 auto; }

/* ============ HEADER: centered name ============ */
header { display: flex; justify-content: center; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.site-name { font-family: var(--name-font); font-size: 22px; font-weight: 600; text-align: center; }
.slash { color: var(--accent); margin: 0 .2em; }

/* 3 columns: 30 / 40 / 30. They stack on phones. */
.cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.col { min-width: 0; }
.col-left, .col-right { flex: 3 1 300px; }
.col-center { flex: 4 1 420px; }

/* ============ LEFT: latest posts ============ */
.col-left { display: flex; flex-direction: column; gap: 12px; }
.reel-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.reel-head h2 { margin: 0; font-family: var(--name-font); font-weight: 400; font-size: 26px; }
.hint { font-size: 12px; color: var(--muted); }
.hint-touch { display: none; }
@media (hover: none) { .hint-desk { display: none; } .hint-touch { display: inline; } }

.reel {
  flex: 1 1 0; min-height: 560px; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 40px 4px;
  scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}
.reel::-webkit-scrollbar { display: none; }

/* One post */
.post { display: flex; flex-direction: column; gap: 10px; flex: none; }
.post-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: #241a14; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .18s ease; }
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.post:hover .post-media, .post:focus-visible .post-media { outline-color: var(--accent); }
.badge { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: var(--radius); background: rgba(14,13,13,.75); color: #fff; display: flex; align-items: center; justify-content: center; }
.post-caption { font-size: 14px; color: var(--soft); text-align: center; line-height: 1.35; }
.post-top { display: none; }

/* ============ CENTER: link tree ============ */
.col-center { display: flex; flex-direction: column; align-items: center; gap: 28px; padding-top: 12px; }
.intro { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.banner { width: 100%; max-width: 520px; height: 180px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--accent); overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }
h1 { margin: 0; font-family: var(--name-font); font-weight: 600; font-size: 60px; line-height: 1; letter-spacing: .04em; }
.real-name { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-top: -4px; }
.bio { margin: 0; font-size: 16px; color: var(--soft); max-width: 400px; line-height: 1.55; }

.links { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.lnk { display: flex; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border: 1px solid var(--accent); border-radius: var(--radius); background: var(--card); transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.lnk:hover, .lnk:focus-visible { transform: translateY(-2px); background: var(--raised); box-shadow: 0 0 0 3px var(--accent-glow); }
.lnk-icon { flex: none; width: 48px; height: 48px; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.lnk-icon img { width: 100%; height: 100%; object-fit: contain; }
.lnk-icon-plain { background: var(--accent); color: var(--bg); }
.lnk-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lnk-name { font-size: 17px; font-weight: 600; }
.lnk-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnk-arrow { margin-left: auto; flex: none; color: var(--accent); }
.foot { margin: 0; font-size: 12px; color: var(--faint); }

/* ============ RIGHT: Cadre Club, then software work ============ */
.col-right { display: flex; flex-direction: column; gap: 16px; }
.panel { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; text-align: center; }
.panel-cadre { flex: 1 1 auto; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.panel-img { flex: 1 1 auto; min-height: 240px; border-radius: var(--radius); overflow: hidden; border: 1px solid #3a2414; display: block; }
.panel-img img { width: 100%; height: 100%; object-fit: cover; }
.panel-img-small { flex: none; min-height: 0; height: 120px; border-color: var(--line); }   /* half the size */
.cadre-title { margin: 0; font-family: "Bungee", "Arial Black", sans-serif; font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--amber); text-shadow: 2px 2px 0 var(--orange); }
.panel p { margin: 0; font-size: 15px; color: var(--soft); line-height: 1.5; }
.panel .pro-line { font-size: 18px; font-weight: 600; color: var(--text); }
.btn { display: flex; justify-content: center; align-items: center; min-height: 48px; border-radius: var(--radius); font-weight: 700; font-size: 15px; border: 1px solid var(--amber); color: var(--text); transition: background-color .18s ease; }
.btn:hover, .btn:focus-visible { background: rgba(255, 148, 0, .12); }
.panel-pro .btn { border-color: var(--accent); }
.panel-pro .btn:hover, .panel-pro .btn:focus-visible { background: var(--accent-glow); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; transition: border-color .18s ease, background-color .18s ease; }
.chip svg { color: var(--amber); }
.chip:hover, .chip:focus-visible { border-color: #6b3a12; background: var(--raised); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ============ VERSION 1: one column of posts ============ */
.reel-list .post-caption { padding: 0 8px; }

/* ============ PHONES AND SMALL TABLETS ============ */
@media (max-width: 1060px) {
  .page { padding: 20px 16px 32px; gap: 24px; }
  .cols > .col { flex-basis: 100%; }
  .col-center { order: -1; padding-top: 0; }
  /* reel turns sideways so swiping it never fights page scrolling */
  .reel {
    flex: none; min-height: 0; height: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 4px 32px 8px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, #000 32px, #000 calc(100% - 32px), transparent 100%);
  }
  .post { width: 62%; max-width: 280px; }
  .panel-img { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .panel-img-small { aspect-ratio: auto; height: 110px; }
  h1 { font-size: 50px; }

}
@media (prefers-reduced-motion: reduce) { .lnk, .post-media, .chip, .btn { transition: none; } }
