/* AJR Designs. Colors come from the logo. */
:root {
  --plum: #401244;
  --plum-soft: #f3ecf3;
  --blue: #00aeef;
  --blue-ink: #00739e;
  --red: #eb2027;
  --coral: #f26b4f;
  --grey: #4f5663;
  --ink: #23202a;
  --paper: #fbf9f6;
  --line: #e4dfe6;
  --radius: 14px;
  --wrap: 1120px;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --surface: #fff;
  --head: var(--plum);
  --btn: var(--plum);
  --btn-hover: #00739e;
  color-scheme: light dark;
}
/* Dark mode: our own theme, so browsers don't auto-darken the page. */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171419;
    --surface: #211b24;
    --ink: #ebe5ed;
    --grey: #b6adba;
    --line: #382e3d;
    --plum-soft: #2a1f2e;
    --head: #ecc9f0;
    --blue-ink: #5cc8f2;
    --btn: #6e2a76;
  }
  .todo { background: #3a3315; border-color: #8a7400; }
  .shot--empty .shot__ph { border-color: #4a3f50; }
  .logos { background: #f4f1f5; border-radius: var(--radius); padding: 20px 24px; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-underline-offset: .15em; }
a:hover { color: var(--head); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 650; color: var(--head); line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
.small { font-size: .875rem; color: var(--grey); }
.plain { list-style: none; padding: 0; margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

.testbar { background: var(--plum); color: #fff; text-align: center; font-size: .85rem; padding: 6px 12px; }
.todo { background: #fff6d8; border: 1px dashed #c9a400; border-radius: 10px; padding: 12px 16px; margin: 1em 0; font-size: .95rem; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__name { font-family: var(--font-head); font-size: 1.45rem; font-weight: 650; color: var(--head); }
.nav { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; align-items: center; }
.nav a { color: var(--grey); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--head); border-color: var(--blue); }
.nav .nav__cta { background: var(--btn); color: #fff; padding: 8px 16px; border-radius: 999px; border: 0; }
.nav .nav__cta:hover, .nav .nav__cta[aria-current="page"] { background: var(--btn-hover); color: #fff; }

/* Buttons */
.btn { display: inline-block; background: var(--btn); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 999px; }
.btn:hover { background: var(--btn-hover); color: #fff; }
.btn--ghost { background: transparent; color: var(--head); box-shadow: inset 0 0 0 2px var(--head); }
.btn--ghost:hover { background: var(--btn); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--blue-ink); margin-bottom: .8em; }
.eyebrow a { color: inherit; }
.lede { font-size: 1.25rem; color: var(--grey); max-width: 38em; }
.hero__photo img { border-radius: 24px; max-height: 520px; object-fit: cover; margin-left: auto; box-shadow: 14px 14px 0 var(--blue); }
@media (max-width: 800px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } .hero__photo img { max-height: 380px; margin: 0; } }

/* Sections */
.band { padding: 56px 0; }
.band--tint { background: var(--plum-soft); }
.band--plum { background: var(--plum); color: #fff; }
.band--plum h2 { color: #fff; }
.band--plum a:not(.btn) { color: #9fe3ff; }
.band--plum .btn { background: #fff; color: var(--plum); }
.band--plum .btn:hover { background: var(--blue); color: var(--plum); }
.section-head { max-width: 46em; }
.section-head h2 { margin-top: 0; }

/* Service cards */
.cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; height: 100%; position: relative; }
.card::before { content: ""; position: absolute; left: 22px; top: 0; width: 44px; height: 4px; border-radius: 0 0 4px 4px; background: var(--blue); }
.card:nth-child(2)::before { background: var(--coral); }
.card:nth-child(3)::before { background: var(--plum); }
.card:nth-child(4)::before { background: var(--red); }
.card h3 { margin-top: .3em; }
.card p { color: var(--grey); margin-bottom: .6em; }
.card a.more { font-weight: 600; }

/* Work tiles */
.tiles { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; height: 100%; transition: transform .15s ease, box-shadow .15s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(64, 18, 68, .12); color: inherit; }
.tile img, .tile .shot__ph { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--plum-soft); }
.tile .shot { margin: 0; }
.tile__body { display: block; padding: 18px 20px 22px; }
.tile__client { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-ink); font-weight: 600; }
.tile__title { font-family: var(--font-head); font-size: 1.3rem; color: var(--head); margin: .2em 0 .3em; display: block; }
.tile__what { color: var(--grey); font-size: .95rem; }

/* Images */
.shot { margin: 1.5em 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.shot figcaption { font-size: .875rem; color: var(--grey); margin-top: .5em; }
.shot--empty .shot__ph { border: 2px dashed #c8bfcb; border-radius: 12px; min-height: 180px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 16px; color: var(--grey); }
.shot__id { font-weight: 600; font-size: .85rem; }
.shot__desc { font-size: .85rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery .shot { margin: 0; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 24px; }
.quote { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.band--plum .quote { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); }
.quote blockquote { margin: 0 0 1em; }
.quote blockquote p { font-family: var(--font-head); font-weight: 500; font-size: 1.12rem; line-height: 1.45; margin: 0; }
.quote blockquote p::before { content: "\201C"; color: var(--blue); font-size: 2.4rem; line-height: 0; vertical-align: -.35em; margin-right: 2px; }
.quote__name { display: block; font-weight: 600; }
.quote__role { display: block; font-size: .85rem; opacity: .8; }

/* Logos */
.logos { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 40px; align-items: center; }
.logos li { flex: 0 0 calc((100% - 80px) / 3); display: flex; justify-content: center; }
@media (max-width: 800px) { .logos li { flex-basis: calc((100% - 40px) / 2); } }
@media (max-width: 480px) { .logos li { flex-basis: 100%; } }
.logos img { height: 52px; width: auto; filter: grayscale(1); opacity: .75; }
.logos img.logo--wide { height: 24px; }
.logos img.logo--tall { height: 76px; }
.logos img:hover { filter: none; opacity: 1; }

/* Case studies and prose */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 24px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 1.5em 0; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--blue-ink); font-weight: 600; }
.facts dd { margin: 0; }
.prose { max-width: 42em; }
.prose blockquote { border-left: 4px solid var(--blue); margin: 1.2em 0; padding: .2em 0 .2em 1em; color: var(--grey); }
.prose li { margin-bottom: .4em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* Services page */
.service { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.service h2 { margin-top: 0; }
.service ul { padding-left: 1.2em; }
.service .proof { font-size: .95rem; color: var(--grey); }
@media (max-width: 800px) { .service { grid-template-columns: 1fr; gap: 12px; } }

/* Tools */
.tools { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.tool .shot { margin: 0 0 14px; }
.tool h3 { margin-top: 0; }

/* Blog */
.posts { list-style: none; padding: 0; margin: 0; }
.post-link { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.post-link:hover .post-link__title { color: var(--blue-ink); }
.post-link__date { display: block; font-size: .85rem; color: var(--grey); }
.post-link__title { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--head); margin: .15em 0; }
.post-link__desc { display: block; color: var(--grey); }
.post { padding-top: 48px; padding-bottom: 40px; }
.post__end { margin-top: 3em; padding: 24px; background: var(--plum-soft); border-radius: var(--radius); }

/* Footer */
.site-footer { background: #1f1022; color: #ddd3df; padding: 44px 0; margin-top: 64px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer .small { color: #b9aebb; }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 32px; }
.site-footer__name { font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: .3em; }
.site-footer--slim { padding: 24px 0; }
@media (max-width: 700px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Dashboard pages */
.dashboard .site-header { border-bottom-color: #d8eef7; }
.dashboard .wordmark__name { color: var(--blue-ink); }
.form-embed { width: 100%; min-height: 720px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
