/* =========================================================
   Outwith Studio — main.css
   Black / white / #8577FF · DM Sans + DM Mono · no gradients
   ========================================================= */

/* ---- Reset / normalize (condensed) ---- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:where(button) { cursor: pointer; }

/* ---- Design tokens ---- */
:root {
  --black: #000000;
  --white: #ffffff;
  --accent: #8577ff;
  --ink: #0a0a0a;
  --muted: #5b5b5f;
  --line: #e4e4e8;
  --line-strong: #111114;

  --sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 72rem;
  --wrap-narrow: 60rem;
  --gut: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(1rem, 9vw, 2.5rem);

  --radius: 2px;
}

/* ---- Base ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
h1 { text-wrap: balance; }
p { text-wrap: pretty; }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: var(--black); }

/* ---- Layout ---- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

main > section { padding-block: var(--section-y); }
main > section + section { border-top: 1px solid var(--line); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---- Shared bits ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { color: var(--ink); }

.accent { color: var(--accent); }

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  max-width: 95%;
}

.link-arrow {
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
  display: inline-block;
}
.link-arrow:hover { color: var(--accent); }

figcaption {
  font-size: .875rem;
  font-style: italic;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  transition: background-color .15s ease, color .15s ease, transform .05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--accent); border-color: var(--accent); color: var(--black); }
.btn--solid:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--black); color: var(--white); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--radius);
  display: block;
  flex: none;
}
.brand__name { font-size: 1.0625rem; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
}
.site-nav__list a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.site-nav__list a:hover { color: var(--ink); }
.site-nav__cta {
  color: var(--ink) !important;
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.site-nav__toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--black);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8125rem;
  padding: 0.45rem 0.8rem;
}

@media (max-width: 44rem) {
  .site-nav__toggle { display: inline-block; }
  ul.site-nav__list {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gut) 1.25rem;
  }
  .site-nav__list[hidden] { display: none; }
  .site-nav__list li { width: 100%; }
  .site-nav__list a { display: block; padding: 0.7rem 0; font-size: 1rem; }
  .site-nav { position: static; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero { padding-block: clamp(1rem, 10vw, 2.5rem) !important; }
.hero__title {
  font-size: clamp(2.5rem, 1.2rem + 6vw, 5.25rem);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}
.hero__lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.375rem);
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* =========================================================
   why-us
   ========================================================= */
.why-us__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.why-us__title {
  font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3rem);
  margin-bottom: 1.25rem;
}
.why-us__body {
  font-size: 1.125rem;
  margin-top: 1rem;
}
.credentials {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}
.credentials li {
  position: relative;
  padding-left: 1.4rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.5;
}
.credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
}
.why-us__media { margin: 0; }
.why-us__media a { display: block; }
.why-us__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (max-width: 52rem) {
  .why-us__inner { grid-template-columns: 1fr; }
  .why-us__media { max-width: 26rem; }
}

/* =========================================================
   How (steps)
   ========================================================= */
.how__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: top;
}
.how__body {
  font-size: 1.125rem;
  max-width: 56ch;
  margin: 1rem auto 1.5rem;
}

.how__body ul {
  margin
}
.steps {
  margin-top: 2.5rem;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  grid-template-columns: repeat(3, 1fr);
}

.how__media { margin: 0; }
.how__media a { display: block; }
.how__media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}



.steps--process { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 64rem) {
  .steps--process { grid-template-columns: repeat(2, 1fr); }
}
.step {
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.step__num {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}
.step__title { font-size: 1.375rem; margin: 0.75rem 0 0.5rem; }
.step__body { color: var(--muted); }

/* =========================================================
   Cards (services + posts)
   ========================================================= */
.cards {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--line-strong); }
.card__title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--accent); }
.card__body { color: var(--muted); }
.card__meta {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.cards--posts { grid-template-columns: repeat(2, 1fr); }
.card--post { display: flex; flex-direction: column; }
.card--post .link-arrow { margin-top: 1rem; align-self: flex-start; }

/* =========================================================
   FAQ
   ========================================================= */
.faq__list { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 2rem 1.25rem 0;
  position: relative;
  font-weight: 500;
  font-size: 1.125rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.1rem;
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1;
}
.faq__item[open] .faq__q::after { content: "\2013"; }
.faq__q:hover { color: var(--accent); }
.faq__a { color: var(--muted); padding-bottom: 1.25rem; max-width: 60ch; }

/* =========================================================
   Signup
   ========================================================= */
.signup { background: var(--black); color: var(--white); border-top: none !important; }
.signup__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.signup .eyebrow { color: var(--accent); }
.signup__title {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}
.signup__lede { color: #b9b9c2; max-width: 40ch; }

.signup__form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.field__hint { color: #8a8a94; text-transform: none; }
.field input {
  background: transparent;
  border: 1.5px solid #3a3a42;
  border-radius: var(--radius);
  color: var(--white);
  padding: 0.85rem 1rem;
}
.field input::placeholder { color: #6c6c76; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.field--check { gap: 0; }
.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0;
  line-height: 1.45;
  color: #b9b9c2;
}
.checkbox input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.1rem 0 0;
  border: 1.5px solid #3a3a42;
  border-radius: var(--radius);
  background: transparent;
  display: grid;
  place-content: center;
}
.checkbox input::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  transform: scale(0);
  transition: transform .12s ease;
  background: var(--accent);
}
.checkbox input:checked { border-color: var(--accent); }
.checkbox input:checked::before { transform: scale(1); }
.checkbox input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.signup .btn--solid { color: var(--black); }
.signup .btn--solid:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.signup__fineprint { font-family: var(--mono); font-size: 0.75rem; color: #8a8a94; }
.hp { position: absolute; left: -9999px; }

/* =========================================================
   Email CTA (low-friction, email-only capture)
   ========================================================= */

.email-cta {
  margin-bottom: 4rem;
}
.email-cta__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.email-cta__title {
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  max-width: 18ch;
  margin-bottom: 0.75rem;
}
.email-cta__lede { color: var(--muted); max-width: 44ch; }
.email-cta__form {
  display: flex;
  gap: 0.75rem;
  align-items: end;
  flex-wrap: wrap;
}
.email-cta__form .field { flex: 1 1 14rem; gap: 0.4rem; }
.email-cta__form .field label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}
.email-cta__form input {
  background: transparent;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  width: 100%;
}
.email-cta__form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.email-cta__form .btn { flex: 0 0 auto; }

/* Dark variant (sits on black, e.g. end of a post) */
.email-cta--dark { background: var(--black); color: var(--white); border-top: none !important; }
.email-cta--dark .eyebrow { color: var(--accent); }
.email-cta--dark .email-cta__lede { color: #b9b9c2; }
.email-cta--dark .email-cta__form input { border-color: #3a3a42; color: var(--white); }
.email-cta--dark .email-cta__form input::placeholder { color: #6c6c76; }
.email-cta--dark .btn--solid { color: var(--black); }
.email-cta--dark .btn--solid:hover { background: var(--white); border-color: var(--white); color: var(--black); }

@media (max-width: 52rem) {
  .email-cta__inner { grid-template-columns: 1fr; }
}

/* =========================================================
   Notes teaser + post list
   ========================================================= */
.notes-teaser__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}
.post-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.post-list__item { border-bottom: 1px solid var(--line); }
.post-list__item a {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.1rem 0;
  text-decoration: none;
}
.post-list__item a:hover .post-list__title { color: var(--accent); }
.post-list__date {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
  flex: 0 0 9rem;
}
.post-list__title { font-weight: 500; font-size: 1.0625rem; }

/* =========================================================
   Page head (blog index, thanks, 404)
   ========================================================= */
.page-head__title {
  font-size: clamp(2rem, 1.3rem + 3.2vw, 3.25rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}
.page-head__lede { color: var(--muted); font-size: 1.125rem; max-width: 50ch; }
.page-head__lede a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.page-head--center { text-align: center; }
.page-head--center .page-head__title,
.page-head--center .page-head__lede { margin-inline: auto; }
.page-head--center .hero__actions { justify-content: center; }

.blog-list { padding-top: 0 !important; border-top: none !important; }

/* =========================================================
   Post (article)
   ========================================================= */
.post__head { padding-top: var(--section-y); }
.post__title {
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.25rem);
  margin: 0.5rem 0 1rem;
}
.post__meta { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); display: flex; gap: 0.5rem; }
.post__body { padding-block: 2.5rem 3.5rem; }
.post__cta { padding-bottom: 3rem; }

.prose { font-size: 1.125rem; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.25rem; margin-top: 2rem; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 1.4rem; }
.prose ul li + li { margin-top: 0.6rem; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--accent);
}
.prose strong { font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  color: var(--muted);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--ink);
  //border-top: 1px solid var(--line-strong);
}
.site-footer__inner {
  padding-block: clamp(2.5rem, 8vw, 5rem);
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr 1fr;
}
.site-footer__tag { color: var(--white); margin-top: 0.5rem; max-width: 28ch; }
.site-footer__brand { color: var(--white); }
.site-footer__nav ul { display: grid; gap: 0.6rem; }
.site-footer__nav a {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--white);
}
.site-footer__nav a:hover { color: var(--accent); }
.site-footer__legal {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--white);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 52rem) {
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .cards--posts { grid-template-columns: 1fr; }
  .signup__inner { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .post-list__date { flex-basis: 6.5rem; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .signup, .site-nav { display: none; }
  body { color: #000; }
  a { text-decoration: underline; }
}
