/* Keep It Short Studios — site styles */

:root {
  --bg: #1a1d20;
  --bg-2: #212529;
  --surface: #262b30;
  --line: #33383e;
  --line-strong: #454c53;
  --wave-idle: #3d4349;
  --text: #ece7dd;
  --muted: #a3a8ac;
  --accent: #e9a23b;
  --accent-hover: #f2b65a;
  --accent-ink: #1a1d20;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --radius: 4px;
  --error: #f08a7e;
  --glass: rgb(26 29 32 / 0.6);
  --photo-filter: brightness(0.72) saturate(0.75) contrast(1.05);
  --photo-filter-hover: brightness(0.85) saturate(0.9) contrast(1.05);
  color-scheme: dark;
}

/* Light theme (chosen with the header toggle, saved in the browser) */
:root[data-theme="light"] {
  --bg: #eaf1f7;
  --bg-2: #dde8f2;
  --surface: #d3e0ec;
  --line: #cbd8e5;
  --line-strong: #a3b5c7;
  --wave-idle: #bfcfde;
  --text: #1f2226;
  --muted: #595e63;
  --accent: #a8640a;
  --accent-hover: #8c5308;
  --accent-ink: #ffffff;
  --error: #b3261e;
  --glass: rgb(234 241 247 / 0.7);
  --photo-filter: saturate(0.85);
  --photo-filter-hover: saturate(1);
  color-scheme: light;
}

/* Light theme: soft blue light glows running down the page */
:root[data-theme="light"] body {
  background: var(--bg) url("../images/watercolor.svg?v=3") top center / max(100%, 1100px) auto repeat-y;
}

:root[data-theme="light"] .band {
  background: color-mix(in srgb, var(--bg-2) 45%, transparent);
}

/* Each theme shows its own logo */
.brand-mark.for-light,
:root[data-theme="light"] .brand-mark.for-dark {
  display: none;
}

:root[data-theme="light"] .brand-mark.for-light {
  display: block;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--text);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
  flex: none;
  transition: color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
canvas,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3 {
  margin: 0;
  font-stretch: 75%;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.625rem;
  font-stretch: 87.5%;
  line-height: 1.15;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  text-decoration: none;
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1;
}

.brand-mark {
  width: 68px;
  height: auto;
  object-fit: contain;
  flex: none;
}

@media (max-width: 479px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    gap: 10px;
    font-size: 1.3125rem;
  }

  .brand-mark {
    width: 50px;
  }

  .brand-name {
    white-space: nowrap;
  }
}

.brand-name span {
  color: var(--muted);
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 32px;
}

.site-nav a {
  padding-block: 8px;
  font-size: 1.125rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  padding: 8px 14px;
  background: none;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 759px) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .site-nav {
    gap: 20px;
  }

  .js .site-nav a {
    padding-block: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }

  .js .site-nav a:last-child {
    border-bottom: 0;
  }

  .js .site-nav a[aria-current="page"] {
    color: var(--accent);
    border-bottom-color: var(--line);
  }
}

/* Buttons and links */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: progress;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.link-pill {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.link-pill:hover {
  border-color: var(--text);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--accent-hover);
}

/* Sections */

.section {
  padding-block: clamp(64px, 10vw, 128px);
}

/* Tighter gap between the hero buttons and "What I do". */
.hero + .section {
  padding-top: 0;
}

.band {
  background: var(--bg-2);
  border-block: 1px solid var(--line);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head p {
  max-width: 46ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.section-title {
  font-size: clamp(1.6875rem, 3.75vw, 2.8125rem);
}

.section-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hero */

.hero {
  position: relative;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.hero > .wrap {
  position: relative;
}

.hero-inner {
  display: grid;
  gap: 28px;
}

/* Round logo buttons linking to the socials. */
.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-social a {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.hero-social a:hover,
.hero-social a:focus-visible {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.hero-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (min-width: 800px) {
  .hero-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .hero-social {
    flex-direction: column;
  }
}

/* Studio photo behind the waveform, faded into the page on the text side and at the bottom. */
.hero-photo {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center 35% / cover no-repeat;
  opacity: 0.38;
  filter: saturate(0.7);
  pointer-events: none;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, transparent 65%),
    linear-gradient(to bottom, transparent 40%, var(--bg)),
    linear-gradient(to top, transparent 85%, var(--bg));
}

/* Static waveform drawn behind the hero text (js/main.js). */
.hero-wave {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: clamp(160px, 26vw, 340px);
  transform: translateY(-50%);
  opacity: 0.2;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 2%, #000 40%, #000 60%, transparent 98%);
  mask-image: linear-gradient(90deg, transparent 2%, #000 40%, #000 60%, transparent 98%);
}

.hero-title {
  font-size: clamp(2rem, 6.2vw, 5.375rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.02em;
  max-width: 13ch;
}

.hero-lede {
  max-width: 40ch;
  margin: clamp(12px, 1.5vw, 20px) 0 32px;
  color: var(--muted);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* Placeholder artwork (drawn in js/main.js) */

.art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
}

img.art {
  width: 100%;
  object-fit: cover;
}

.art svg {
  width: 100%;
  height: 100%;
}

.art .m {
  fill: var(--line-strong);
}

.art .a {
  fill: var(--accent);
}

.art .t {
  fill: var(--text);
}

.art .sm {
  fill: none;
  stroke: var(--line-strong);
}

.art .sa {
  fill: none;
  stroke: var(--accent);
}

/* Services */

.services {
  display: grid;
  gap: clamp(48px, 7vw, 80px);
}

.service {
  display: grid;
  gap: 28px;
}

/* Photos are toned down to sit in the dark page and fade out toward the text. */
.service img.art {
  filter: var(--photo-filter);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  transition: filter 0.4s;
}

.service:hover img.art {
  filter: var(--photo-filter-hover);
}

.service-body p {
  max-width: 52ch;
  color: var(--muted);
}

.service-body h3 {
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 3vw, 2.0625rem);
  font-stretch: 75%;
}

@media (min-width: 800px) {
  .service {
    grid-template-columns: 6fr 6fr;
    align-items: center;
    gap: 64px;
  }

  .service:nth-child(even) .art {
    order: 2;
  }

  .service img.art {
    -webkit-mask-image: linear-gradient(to right, #000 55%, transparent);
    mask-image: linear-gradient(to right, #000 55%, transparent);
  }

  .service:nth-child(even) img.art {
    -webkit-mask-image: linear-gradient(to left, #000 55%, transparent);
    mask-image: linear-gradient(to left, #000 55%, transparent);
  }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Work row */

.work-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 20px;
  margin: 0;
  padding: 0 0 16px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

/* Phones: smaller cards, about two and a half in view. */
@media (max-width: 599px) {
  .work-row {
    grid-auto-columns: 42%;
    gap: 14px;
  }

  .work-card .art {
    margin-bottom: 10px;
  }

  .work-card h3 {
    font-size: 1.0625rem;
  }

  .work-type {
    font-size: 0.75rem;
  }

  .work-role {
    margin-top: 4px;
    font-size: 0.8125rem;
  }
}

@media (min-width: 600px) {
  .work-row {
    grid-auto-columns: calc((100% - 40px) / 2.4);
  }
}

@media (min-width: 1000px) {
  .work-row {
    grid-auto-columns: calc((100% - 60px) / 3.4);
  }
}

.work-card {
  scroll-snap-align: start;
}

.work-card a {
  display: block;
  text-decoration: none;
}

.work-card .art {
  aspect-ratio: 1;
  margin-bottom: 16px;
  outline: 1px solid transparent;
  transition: outline-color 0.15s;
}

.work-card a:hover .art {
  outline-color: var(--accent);
}

.work-card a:hover h3 {
  color: var(--accent);
}

.work-type {
  margin: 0 0 4px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.work-card h3 {
  font-size: 1.375rem;
}

.work-role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.round-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  cursor: pointer;
}

.round-btn:hover {
  border-color: var(--text);
}

.round-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* Video embeds */

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video .art {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.video-poster,
.video-play img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* A picture with no video yet: show the whole image at its own shape. */
.video.is-poster {
  aspect-ratio: auto;
}

.video.is-poster .video-poster {
  position: static;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}

/* Tall posters: show the whole image, at a narrower width. */
.video.is-poster.poster-full {
  max-width: 340px;
}

.video.is-poster.poster-full .video-poster {
  max-height: none;
}

.play-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  background: var(--accent);
  border-radius: 50%;
  transition: transform 0.15s;
}

.play-icon::before {
  content: "";
  margin-left: 6px;
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--accent-ink);
}

.video-play:hover .play-icon {
  transform: scale(1.06);
}

.video-label {
  position: absolute;
  left: 16px;
  bottom: 12px;
  margin: 0;
  padding: 4px 12px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Page heads (inner pages) */

.page-head {
  padding-block: clamp(56px, 9vw, 112px) clamp(32px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: clamp(2.4375rem, 7.5vw, 5.25rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.page-lede {
  max-width: 48ch;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
}

/* Portfolio */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.filter {
  padding: 8px 18px;
  background: none;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.filter:hover {
  color: var(--text);
}

.filter[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.category {
  padding-block: clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--line);
}

.category-title {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 3.375vw, 2.4375rem);
}

.project {
  display: grid;
  gap: 24px;
  padding-top: 32px;
}

.project + .project {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.project-year {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.7em;
  font-weight: 500;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}

.project-role {
  margin: 8px 0 16px;
  color: var(--accent);
  font-weight: 600;
}

.project-body p {
  max-width: 52ch;
  color: var(--muted);
}

@media (min-width: 900px) {
  .project {
    grid-template-columns: 7fr 5fr;
    align-items: start;
    gap: 48px;
  }
}

/* About */

.about-grid {
  display: grid;
  gap: 48px;
}

.about-grid .art {
  aspect-ratio: 4 / 5;
}

.about-media {
  display: grid;
  gap: 12px;
  max-width: 400px;
}

/* Portrait (3:4) and landscape (4:3) side by side at equal height: 9fr / 16fr. */
.about-photos {
  display: grid;
  grid-template-columns: 9fr 16fr;
  gap: 12px;
  align-items: start;
}

.about-photos img {
  width: 100%;
  border-radius: var(--radius);
}

/* Hand-drawn note pointing at the dog. */
.about-dog {
  position: relative;
  margin: 0;
  padding-bottom: 28px;
}

.harley-arrow {
  position: absolute;
  left: 34%;
  top: 58%;
  width: 72px;
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.6));
  height: 78px;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.harley-label {
  position: absolute;
  left: calc(34% + 64px);
  bottom: 0;
  font-family: "Caveat", cursive;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  transform: rotate(-4deg);
}

.bio p {
  max-width: 60ch;
}

.bio p:first-of-type {
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.4;
}

.bio h2 {
  margin: 48px 0 0;
  font-size: 1.75rem;
}

.bio .bio-title {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-stretch: 75%;
  line-height: 1;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 4fr 8fr;
    gap: 64px;
    align-items: start;
  }

  .about-media {
    position: sticky;
    top: 116px;
  }
}

/* Contact */

.contact-grid {
  display: grid;
  gap: 48px;
}

.contact-intro p {
  max-width: 40ch;
  color: var(--muted);
}

.contact-intro .section-title {
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 72px;
  }
}

.form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 20px;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font: inherit;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}

.form-status {
  margin: 0;
  color: var(--muted);
}

.form-status[data-state="ok"] {
  color: var(--accent);
}

.form-status[data-state="error"] {
  color: var(--error);
}

/* Footer */

.site-footer {
  padding-block: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-inner p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
