/* Brocan — minimal studio site (light only) */

:root {
  --bg: #f7f5f0;          /* warm paper, easy on the eyes */
  --surface: #fdfcfa;
  --ink: #1f2733;         /* navy-tinted ink, matches the logo */
  --ink-soft: #59626e;
  --ink-faint: #8a919c;
  --line: #e6e2d8;
  --line-soft: #eeeae1;
  --accent: #1e3555;      /* logo navy */
  --navy: #1e3555;
  --yellow-1: #ffd84d;    /* logo yellow */
  --yellow-2: #f5a41f;    /* logo orange */
  --live: #1c7a4e;
  --live-bg: #e6f0e8;
  --maxw: 68rem;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

::selection {
  background: var(--yellow-1);
  color: var(--navy);
}

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

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

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

.site-head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--pad) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo {
  height: 2.5rem;
  width: auto;
  display: block;
}

.site-head nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9375rem;
}

.site-head nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 0.2rem;
  transition: color 0.15s ease;
}

.site-head nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--yellow-1), var(--yellow-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-head nav a:hover { color: var(--navy); }
.site-head nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero { padding: clamp(5rem, 12vw, 8.5rem) 0 clamp(4rem, 10vw, 7rem); }

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  line-height: 1.14;
  letter-spacing: -0.032em;
  font-weight: 600;
  max-width: 18ch;
  color: var(--navy);
}

/* marker highlight in the logo's yellow-orange gradient */
.hl {
  background: linear-gradient(100deg, var(--yellow-1) 0%, #ffce33 55%, var(--yellow-2) 100%);
  border-radius: 0.35em 0.2em 0.4em 0.25em;
  padding: 0.02em 0.16em;
  margin: 0 -0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--navy);
}

.lede {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
}

/* ---------- sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}

.section-title {
  margin: 0 0 2.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* italic yellow tick echoing the logo's slant */
.section-title::before {
  content: "";
  width: 1.1rem;
  height: 0.5rem;
  border-radius: 2px;
  transform: skewX(-14deg);
  background: linear-gradient(100deg, var(--yellow-1), var(--yellow-2));
  flex-shrink: 0;
}

/* two-column rhythm on wide screens: label left, content right */
@media (min-width: 56rem) {
  .section {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    column-gap: 4rem;
  }

  .section-title {
    grid-column: 1;
    margin: 0;
  }

  .section > :not(.section-title) { grid-column: 2; }
}

/* ---------- projects ---------- */

.project {
  margin-bottom: 2rem;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project:last-child { margin-bottom: 0; }

/* comic hard shadow, like the logo's extrusion */
.project:hover {
  border-color: var(--navy);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--navy);
}

.project-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.project-head h3 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  white-space: nowrap;
}

.tag-live {
  color: var(--navy);
  background: linear-gradient(100deg, var(--yellow-1), var(--yellow-2));
  border-color: transparent;
  font-weight: 600;
}

.project-line {
  margin: 0 0 0.875rem;
  font-size: 1.0625rem;
  color: var(--ink);
}

.project-body {
  margin: 0 0 1rem;
  max-width: 62ch;
  color: var(--ink-soft);
}

.project-meta {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

/* yellow underline that grows into a highlight on hover */
.project-link {
  display: inline-block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  padding: 0 0.15em 2px;
  margin: 0 -0.15em;
  border-radius: 3px;
  background: linear-gradient(100deg, var(--yellow-1), var(--yellow-2)) no-repeat left bottom / 100% 2px;
  transition: background-size 0.2s ease;
}

.project-link:hover { background-size: 100% 100%; }
.project-link span { color: inherit; opacity: 0.6; }

/* ---------- studio ---------- */

.principles {
  display: grid;
  gap: 2rem;
}

@media (min-width: 46rem) {
  .principles {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 2.5rem;
  }
}

.principle .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1rem;
  background: linear-gradient(160deg, var(--yellow-1), var(--yellow-2));
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 700;
  border: 1.5px solid var(--navy);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--navy);
  transform: skewX(-6deg);
}

.principle h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.principle p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ---------- contact ---------- */

.contact-line {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  color: var(--ink-soft);
}

/* yellow gradient button with the logo's hard navy shadow */
.contact-btn {
  display: inline-block;
  background: linear-gradient(160deg, var(--yellow-1), var(--yellow-2));
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.35rem;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--navy);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--navy);
}

.contact-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--navy);
}

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

.site-foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--pad) 3.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--ink-faint);
}

.foot-links a {
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.15s ease;
}

.foot-links a:hover { color: var(--ink); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
