/* ==========================================================================
   BROAD STROKES ONLY. Swap the variables below and the whole site changes.
   Real design goes here later.
   ========================================================================== */

:root {
  --bg:        #0d0d0f;
  --bg-panel:  #141416;
  --ink:       #d8d4cc;
  --ink-dim:   #7a766e;
  --accent:    #b81d1d;
  --line:      #2b2b30;
  --frame:     #4a4a52;   /* stronger border for cards, headings, buttons */
  --shadow:    4px 4px 0 #000;

  --font:      ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  --measure:   68ch;      /* max text width */
  --gap:       20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  /* cheap lo-fi tiled texture, no image file needed. delete if you hate it. */
  background-image:
    repeating-linear-gradient(0deg,   rgba(255,255,255,.02) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,.02) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 var(--gap); }

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

.site-head {
  border-bottom: 1px solid var(--line);
  padding: 28px 0 20px;
  margin-bottom: 36px;
}
.site-name {
  font-size: 22px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.site-tagline { color: var(--ink-dim); margin: 0 0 18px; }

.nav { display: flex; gap: 18px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: bold;
  background: var(--bg-panel);
  border: 2px solid var(--frame);
  box-shadow: var(--shadow);
  padding: 6px 14px;
}
.nav a:hover { border-color: var(--accent); color: var(--accent); }
.nav a[aria-current="page"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- text page ---------- */

/* the column is full width so photos can sit in the side margin,
   but the text itself keeps a readable measure */
.prose { max-width: none; }
/* keep floated photos inside the text block instead of hanging past the footer */
.prose::after { content: ""; display: block; clear: both; }
.prose > h2,
.prose > h3,
.prose > p,
.prose > ul,
.prose > .prices { max-width: var(--measure); }
.prose h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #fff;
}
.prose a { color: #fff; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.prose a:hover { color: var(--accent); }
/* contacts inside the page: same buttons as the footer, a bit larger */
.contacts-big { margin: 0 0 16px; }
.contacts-big a { font-size: 15px; padding: 8px 16px; }
/* section headings sit in a red frame, sized to the text */
.prose h2 {
  /* flow-root keeps a framed box beside a floated photo instead of sliding under it */
  display: flow-root;
  width: fit-content;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--bg-panel);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 6px 14px;
  margin: 44px 0 18px;
}
/* last section starts below the photos, otherwise its first line sits in the float */
.prose h2:last-of-type { clear: both; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose .location { color: var(--ink-dim); }

/* ---------- photos ---------- */

/* photos sit beside the text; the text wraps around them */
.photos {
  display: grid;
  gap: 12px;
  width: 240px;
  float: right;
  clear: both;
  margin: 4px 0 18px 28px;
}
[data-photos="work"] {
  float: left;
  width: 300px;
  margin: 4px 28px 18px 0;
}

/* first photo — printed snapshot: paper border, slight tilt, soft shadow */
[data-photos="about"] { width: 360px; margin-top: 0; }
[data-photos="about"] .photo {
  padding: 10px 10px 30px;
  background: #ece7dd;
  /* faint paper grain, no image file needed */
  background-image:
    repeating-linear-gradient(0deg,  rgba(0,0,0,.03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.02) 0 1px, transparent 1px 3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.55);
  transform: rotate(1.5deg);
}
[data-photos="about"] .photo img { border: 0; }

/* handwritten note on the print, with an arrow pointing up at the photo */
.photo-caption {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: 8px;
  color: #1a1a1a;
  font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  transform: rotate(-1deg);
}

/* wide photo at the top of the work page */
[data-photos="work-top"] {
  float: none;
  width: auto;
  margin: 0 0 26px;
}
[data-photos="work-top"] .photo img {
  max-height: 340px;
  object-fit: cover;
  object-position: center 35%;
  border: 6px solid #3a3a40;
  box-shadow: var(--shadow);
}
.photo { margin: 0; }
/* no cropping — each photo keeps its own proportions */
.photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.photo-empty {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  color: var(--ink-dim);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* ---------- prices ---------- */

.prices {
  display: flow-root;
  margin: 0 0 14px;
  font-size: 17px;
  background: var(--bg-panel);
  border: 2px solid var(--frame);
  box-shadow: var(--shadow);
  padding: 18px 20px 8px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}
/* service names stay plain white, only the amounts are red */
.price-name { color: var(--ink); }
/* dotted leader between service and price */
.price::after {
  content: "";
  order: 1;
  flex: 1;
  border-bottom: 1px dotted var(--line);
}
.price-value { order: 2; color: var(--accent); white-space: nowrap; }
.price-note { color: var(--ink-dim); font-size: 13px; margin: -6px 0 14px; }

/* ---------- filters ---------- */

.filters { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }
.filters button {
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--bg-panel);
  color: var(--ink);
  border: 2px solid var(--frame);
  box-shadow: var(--shadow);
  padding: 6px 16px;
  cursor: pointer;
}
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- project grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
  /* cards keep their own height — nothing stretches to match a neighbour */
  align-items: start;
}

/* video takes the whole row, so it never sits next to a track card */
.card[data-type="video"] { grid-column: 1 / -1; }
.card[data-type="video"] .facade,
.card[data-type="video"] .embed {
  aspect-ratio: auto;
  height: 300px;
}

/* cards in a row share a height; the title block is pushed to the bottom
   so titles line up across the row instead of floating mid-card */
.card {
  display: flex;
  flex-direction: column;
  background: var(--bg-panel);
  border: 2px solid var(--frame);
  box-shadow: 6px 6px 0 #000;
  padding: 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}
.card-media { margin-bottom: 12px; }

/* marked card keeps the normal frame — only the label stands out */
.card-badge {
  display: inline-block;
  align-self: flex-start;   /* the card is a flex column — don't stretch the label */
  margin-top: 10px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
}

/* title follows the player, so titles line up across a row */
.card-title { margin: 0; font-size: 16px; font-weight: bold; color: #fff; }
.card-meta  { color: var(--ink-dim); font-size: 13px; margin: 4px 0 0; }
.card-note  { font-size: 13px; margin: 10px 0 0; color: var(--ink-dim); }

.card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  margin-bottom: 10px;
}

/* video: click-to-load facade, so 10 embeds don't kill the page */
.facade {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000 center/cover no-repeat;
  border: 1px solid var(--line);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.facade::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}
.facade span {
  position: relative; z-index: 1;
  font: inherit; font-size: 26px; color: #fff;
  border: 1px solid rgba(255,255,255,.6);
  width: 54px; height: 54px;
  display: grid; place-items: center;
}
.facade:hover span { border-color: var(--accent); color: var(--accent); }
.facade iframe, .embed iframe { width: 100%; height: 100%; border: 0; display: block; }
.embed { aspect-ratio: 16 / 9; width: 100%; }

audio { width: 100%; }

/* album art sits beside the player, not above it */
/* every track card is the same height, with or without a label or a note */
.card[data-type="audio"] { min-height: 205px; }
.card[data-type="audio"] .card-media {
  display: flex;
  align-items: center;
  gap: 12px;
}
.card[data-type="audio"] audio { flex: 1; min-width: 0; }

.cover {
  flex: none;
  width: 76px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--frame);
}
.cover-empty {
  display: grid;
  place-items: center;
  border-style: dashed;
  color: var(--ink-dim);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 24px 0 50px;
  color: var(--ink-dim);
  font-size: 13px;
}
.contacts { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.contacts a {
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-panel);
  border: 2px solid var(--frame);
  box-shadow: var(--shadow);
  padding: 6px 14px;
}
.contacts a:hover { border-color: var(--accent); color: var(--accent); }
.contacts b {
  color: var(--ink-dim);
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  margin-right: 6px;
}

@media (max-width: 760px) {
  /* too narrow to sit beside the text — put them in a row instead */
  .photos,
  [data-photos="work"] {
    float: none;
    width: auto;
    margin: 22px 0;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .site-name { font-size: 18px; }
}
