/* =============================================================
   Portfolio — modular single-column template
   Inspired by the julpav.com layout style.

   The whole look is controlled by the variables below.
   Change these first before touching anything else.
============================================================= */

:root {
  --col-width: 600px;          /* width of the text column + header image */
  --header-ratio: 21 / 9;      /* header image aspect ratio (w / h) */
  --radius: 18px;              /* corner radius on cards & images */
  --gap: 14px;                 /* space between cards */

  /* ---- light palette (the default) ---- */
  --bg: #ffffff;
  --card-bg: #fafafa;
  --border: #ececec;
  --text: #111214;
  --muted: #8a8d92;
  --accent: #111214;
  --chip-bg: #ffffff;
  --hover-bg: #f2f2f2;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- reset ---- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- the centered column ---- */
.page {
  width: 100%;
  max-width: var(--col-width);
  margin: 0 auto;
  padding: 40px 20px 64px;
}

/* =============================================================
   HEADER IMAGE — rounded, same width as the text column
============================================================= */
.header-image {
  margin-bottom: 34px;
}
.header-image img {
  width: 100%;
  aspect-ratio: var(--header-ratio);
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* =============================================================
   INTRO
============================================================= */
.intro { margin-bottom: 30px; }
.intro h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.intro .accent { color: var(--accent); }
.lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 42ch;
  /* keep line breaks typed in the editor */
  white-space: pre-line;
}

/* =============================================================
   SECTION LABELS
============================================================= */
.section-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 34px 0 14px;
}

/* =============================================================
   GRID + CARDS  (reusable building blocks)
============================================================= */
.grid { display: grid; gap: var(--gap); margin-bottom: var(--gap); }
.grid-2 { grid-template-columns: 1fr 1fr; }

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: var(--gap);
}
.grid .card { margin-bottom: 0; }

.card-icon { font-size: 20px; margin-bottom: 10px; }

/* uploaded icon image — height is set inline from the editor */
.card-icon-img {
  display: block;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}
.card-eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.card-title { font-size: 14px; font-weight: 600; }
/* white-space: pre-line keeps the line breaks you type in the editor,
   while still collapsing stray spaces and wrapping long lines. */
.card-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  white-space: pre-line;
}
.card-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.card-big { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.card-center { display: flex; align-items: center; justify-content: center; }

/* ---- chips / badges ---- */
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  color: var(--text);
}
/* Solid badge pill — inverts with the theme. The label uses --bg (not a
   hardcoded white) so it stays readable when --text becomes light in dark
   mode: dark pill + white text in light mode, light pill + black text in
   dark mode. */
.chip-solid {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ---- tick list ---- */
.tick-list { list-style: none; margin-top: 12px; }
.tick-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  margin-bottom: 4px;
}
.tick-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--text);
}

/* ---- contact button card ---- */
.card-button {
  display: block;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.card-button:hover { background: var(--hover-bg); }

/* =============================================================
   WORK
============================================================= */
.work-tile { display: block; }
.work-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--tone, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.15s ease;
}
.work-tile:hover .work-thumb { transform: translateY(-2px); }
.work-emoji { font-size: 40px; }

/* image used inside a tile, banner or feed thumb */
.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-banner .tile-img {
  position: absolute;
  inset: 0;
}
.work-banner .on-banner {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}
.work-name { font-size: 14px; font-weight: 600; margin-top: 10px; }
.work-role { font-size: 13px; color: var(--muted); }

.work-banner {
  display: flex;
  align-items: flex-end;
  aspect-ratio: 16 / 6;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--tone, #ddd);
  padding: 16px;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
}
.work-banner .work-emoji {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -60%);
  font-size: 52px;
}
.on-banner { position: relative; z-index: 1; }
.on-banner.light { color: #fff; }

/* =============================================================
   FEED
============================================================= */
.feed-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: var(--gap);
  transition: background 0.15s ease;
}
.feed-card:hover { background: var(--hover-bg); }
.feed-thumb {
  width: 64px; height: 64px;
  flex: 0 0 64px;
  border-radius: 12px;
  background: var(--tone, #eee);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feed-thumb .work-emoji { font-size: 26px; }
.feed-title { font-size: 14px; font-weight: 500; }

/* =============================================================
   FOOTER
============================================================= */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-logo { font-size: 28px; }

/* uploaded logo image — height is set inline from the editor */
.footer-logo-img {
  display: block;
  width: auto;
  object-fit: contain;
  flex: none;
}
.footer-cols { display: flex; gap: 40px; }
.footer-head { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.footer-cols a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.footer-cols a:hover { color: var(--text); }

.madeby {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 40px;
}

/* =============================================================
   RESPONSIVE
============================================================= */
@media (max-width: 480px) {
  .grid-2 { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 24px; }
}

/* =============================================================
   OPTIONAL DARK MODE
   Follows the visitor's system theme. Delete this block to
   keep the site always-light.
============================================================= */
/* =============================================================
   THEME

   The theme is set in the admin panel (Page settings → Theme),
   which puts data-theme="light" | "dark" | "auto" on <html>.

     auto  → follow the visitor's own system setting
     light → always light, even for dark-mode visitors
     dark  → always dark, even for light-mode visitors

   Only the colour tokens change between themes, so every rule
   above works in both without being written twice.
============================================================= */

/* Dark colours when the visitor's system prefers dark — unless the
   site has been explicitly pinned to light. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e10;
    --card-bg: #16181b;
    --border: #26282c;
    --text: #f2f3f5;
    --muted: #8a8d92;
    --accent: #f2f3f5;
    --chip-bg: #0d0e10;
    --hover-bg: #1d2024;
  }
}

/* Dark colours when the site is pinned to dark, whatever the visitor
   has their system set to. */
:root[data-theme="dark"] {
  --bg: #0d0e10;
  --card-bg: #16181b;
  --border: #26282c;
  --text: #f2f3f5;
  --muted: #8a8d92;
  --accent: #f2f3f5;
  --chip-bg: #0d0e10;
  --hover-bg: #1d2024;
}
