@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600;700&display=swap');

:root {
  /* Type scale */
  --size-big: clamp(36px, 7vw, 56px);
  --size-medium: clamp(20px, 3vw, 26px);
  --size-small: 16px;

  /* Dark theme */
  --font-sans: 'Josefin Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text: #e6e6e6;
  --muted: #8b8f98;
  --bg: #121417;
  --bg-alt: #1a1d21;
  --accent: #cfd6ff;
  --accent-blue: #7aa8ff;
  --border: #2a2d31;
  --card: #1c1f23;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.55);

  --maxw: 1000px;
  --sidebar-width: 240px; /* left sidebar width on desktop */
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 18px;
  font-weight: 400;
}

/* ----------------------------- */
/* TYPOGRAPHY (simple / original*/
/* ----------------------------- */

h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  color: var(--accent-blue);
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}

p,
li {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.8;
}

.muted,
figcaption {
  color: var(--muted);
  font-size: 1rem;
}

/* ----------------------------- */
/* GLOBAL WRAP                   */
/* ----------------------------- */

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px;
  box-sizing: border-box;
}

/* ----------------------------- */
/* LEFT SIDEBAR                  */
/* ----------------------------- */

header.site {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: #101215;
  padding: 24px 20px;
  z-index: 50;

  display: flex;
  flex-direction: column;
  gap: 32px;

  overflow: hidden;    /* no scroll inside nav */
  border-right: none;  /* no border on nav bar */
  box-shadow: none;
}

/* Override wrap inside header so it doesn't center in 240px column */
header.site .wrap {
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

header.site .brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

/* Vertical nav */
header.site nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

header.site nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  position: relative;
}

/* Left highlight stripe */
header.site nav a::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: transparent;
  transition: background 0.15s ease;
}

header.site nav a:hover::before,
header.site nav a:focus-visible::before {
  background: var(--accent-blue);
}

header.site nav a:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* ------------------------------------------- */
/* DESKTOP LAYOUT: CENTER CONTENT TO THE RIGHT */
/* ------------------------------------------- */

@media (min-width: 960px) {
  /* Reserve space for sidebar so content never sits underneath it */
  body {
    padding-left: var(--sidebar-width);
  }

  /* All main content wrappers stay centered in the remaining space */
  main.wrap,
  .cover.wrap,
  footer.wrap,
  footer .wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px;
  }
}

/* ----------------------------- */
/* COVER / SECTION / CARDS       */
/* ----------------------------- */

.cover {
  padding: 64px 0 32px;
}

.title {
  font-size: var(--size-big);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.subtitle {
  font-size: var(--size-medium);
  color: var(--muted);
  margin: 0 0 20px;
}

section {
  margin: 32px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

/* ----------------------------- */
/* META GRID                     */
/* ----------------------------- */

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.meta .item {
  background: #16181c;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.meta .label {
  color: var(--muted);
  font-size: 1rem;
}

.meta .value {
  font-weight: 600;
  font-size: 1.1rem;
}

/* ----------------------------- */
/* PLACEHOLDERS / IMAGES         */
/* ----------------------------- */

.placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px dashed #3a3f45;
  border-radius: 14px;
  background: repeating-linear-gradient(
    45deg,
    #1c1f23,
    #1c1f23 10px,
    #181a1e 10px,
    #181a1e 20px
  );
  display: grid;
  place-items: center;
  color: #777c85;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--muted);
  font-size: 1rem;
  margin-top: 8px;
}

/* ----------------------------- */
/* PLACEHOLDER LINKS             */
/* ----------------------------- */

a.placeholder-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  border: 1px dashed #4a4f55;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--accent-blue);
  background: #1e2126;
  font-size: 1rem;
  font-weight: 600;
}

a.placeholder-link:hover {
  background: #262a30;
}

/* ----------------------------- */
/* FOOTER                        */
/* ----------------------------- */

footer {
  padding: 40px 0 70px;
  color: var(--muted);
  font-size: 1rem;
}

/* ----------------------------- */
/* UTILITIES                     */
/* ----------------------------- */

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}

.stack {
  display: grid;
  gap: 14px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #1e2126;
  font-size: 1rem;
}

.muted {
  color: var(--muted);
}

.spacer {
  height: 10px;
}

/* ----------------------------- */
/* MOBILE / TABLET (NO SIDEBAR)  */
/* ----------------------------- */

@media (max-width: 959px) {
  /* Sidebar becomes a top bar */
  header.site {
    position: sticky;
    height: auto;
    width: 100%;
    padding: 14px 20px;
  }

  header.site .wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  header.site nav {
    flex-direction: row;
    gap: 10px;
    overflow-x: auto;
  }

  body {
    padding-left: 0;
  }
}

/* ----------------------------- */
/* PRINT                         */
/* ----------------------------- */

@media print {
  header.site,
  nav {
    display: none;
  }

  .wrap {
    padding: 0;
    margin: 0;
    max-width: none;
  }

  body {
    background: #fff;
    color: #000;
  }
}
