/* ------------------------------------------------------------------
   COWDOG STUDIO — cowdog.studio
   Minimal, type-first, black ink on paper. Let the photos be the color.
   ------------------------------------------------------------------ */

:root {
  --paper: #faf9f6;
  --ink: #161616;
  --muted: #6f6c64;
  --hairline: #e2dfd7;
  --sans: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 74rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 99;
}
.skip:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- type helpers ---------- */

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.display {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: .95;
}

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

.site-header {
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}

.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.1rem; padding-bottom: 1.1rem;
}

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { width: 44px; height: auto; }
.brand .name {
  font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  font-size: 1rem; line-height: 1.1;
}
.brand .name small {
  display: block; font-family: var(--mono); font-weight: 400;
  font-size: .6rem; letter-spacing: .22em; color: var(--muted);
}

.site-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: baseline; }
.site-nav a {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.site-nav a i { font-style: normal; color: var(--muted); margin-right: .35em; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

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

.hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); padding-bottom: clamp(2.5rem, 6vw, 5rem); }

.hero h1 {
  font-size: clamp(2.6rem, 8.5vw, 6.75rem);
  max-width: 12ch;
}
.hero h1 .asterisk { color: var(--muted); }

.hero .footnote {
  margin-top: 1.4rem;
  max-width: 34rem;
}
.hero .footnote .mono { display: block; margin-bottom: .4rem; color: var(--ink); }

.hero .lede { margin-top: 1.6rem; max-width: 36rem; font-size: 1.15rem; }

.cta-row { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

.btn {
  display: inline-block;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: .85rem 1.5rem;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: transparent; color: var(--ink); }

/* ---------- figures & galleries ---------- */

figure.shot { margin: 0; }
figure.shot img { width: 100%; background: var(--hairline); }

.grid { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
}

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

.section { padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.section + .section { border-top: 1px solid var(--hairline); }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); }
.section-head .mono a { color: inherit; }

.prose { max-width: 42rem; }
.prose p + p { margin-top: 1rem; }
.prose .mono { display: block; margin-bottom: .8rem; }

/* ---------- forms ---------- */

.form { display: grid; gap: 1.15rem; max-width: 34rem; }
.form label { display: grid; gap: .45rem; }
.form .lbl { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: 0; padding: .65rem .75rem; width: 100%;
}
.form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 50%, calc(100% - .8rem) 50%; background-size: .35rem .35rem; background-repeat: no-repeat; padding-right: 2.2rem; }
.form textarea { min-height: 7.5rem; resize: vertical; }
.form ::placeholder { color: var(--muted); opacity: 1; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
button.btn { cursor: pointer; }
.form-success { border: 1px solid var(--ink); padding: 1.1rem 1.25rem; font-size: 1.05rem; max-width: 34rem; }
.form-error { color: var(--muted); font-size: .9rem; }

.email-capture { border: 1px solid var(--ink); padding: clamp(1.4rem, 3.5vw, 2.2rem); max-width: 44rem; }
.email-capture form { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.email-capture input[type="email"] { flex: 1 1 14rem; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: .65rem .75rem; }
.email-capture input[type="email"]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.testimonials blockquote { margin: 0; }
.testimonials blockquote p { font-size: .95rem; }
.testimonials blockquote footer { margin-top: .6rem; }
.policies h3 { margin-top: 1.8rem; }
.policies h3:first-child { margin-top: 0; }
.policies h3 + p { margin-top: .5rem; }

/* ---------- service cards ---------- */

.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.25rem, 3vw, 2.25rem); }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

.service-card { border: 1px solid var(--ink); display: flex; flex-direction: column; }
/* keep both cards balanced whatever the source aspect ratio */
.service-card > a img { aspect-ratio: 3 / 2; object-fit: cover; object-position: center; }
.service-card .body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.service-card h3 { font-size: 1.5rem; text-transform: uppercase; letter-spacing: -.01em; }
.service-card .meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.service-card p { font-size: .98rem; }
.service-card .body a { margin-top: auto; align-self: flex-start; }

/* ---------- price sheet ---------- */

.sheet { border-top: 1px solid var(--ink); }
.sheet .row {
  display: grid;
  grid-template-columns: 8rem 1fr 1fr auto;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.sheet .row:last-child { border-bottom: 1px solid var(--ink); }
.sheet .num { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--muted); }
.sheet h3 { font-size: 1.35rem; text-transform: uppercase; }
.sheet h3 small { display: block; font-family: var(--mono); font-weight: 400; font-size: .68rem; letter-spacing: .14em; color: var(--muted); margin-top: .35rem; }
.sheet .desc { font-size: .98rem; max-width: 34rem; }
.sheet .price { font-family: var(--mono); font-size: 1.35rem; letter-spacing: 0; white-space: nowrap; }
.sheet .price small { display: block; font-size: .68rem; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; margin-top: .25rem; }
@media (max-width: 760px) {
  .sheet .row { grid-template-columns: 1fr auto; }
  .sheet .num { grid-column: 1 / -1; }
  .sheet .desc { grid-column: 1 / -1; }
}

/* ---------- two-column media/text ---------- */

.duo { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.duo.flip { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 820px) { .duo, .duo.flip { grid-template-columns: 1fr; } }

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

.contact-big { padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.contact-big .mono { display: block; margin-bottom: 1rem; }
.contact-big a.mail {
  font-weight: 700; text-transform: lowercase; letter-spacing: -.02em;
  font-size: clamp(1.6rem, 6.5vw, 4.5rem);
  text-decoration-thickness: 3px; text-underline-offset: 6px;
  word-break: break-all;
}
.contact-lines { margin-top: 2rem; display: flex; flex-direction: column; gap: .4rem; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

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

.site-footer { border-top: 1px solid var(--ink); margin-top: clamp(3rem, 7vw, 5rem); }
.site-footer .cols {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap;
  padding-top: 2.5rem; padding-bottom: 2.5rem;
}
.site-footer nav { display: flex; flex-direction: column; gap: .45rem; }
.site-footer nav a, .site-footer .contact a { font-size: .95rem; text-decoration: none; }
.site-footer nav a:hover, .site-footer .contact a:hover { text-decoration: underline; }
.site-footer .dog { width: 74px; transition: transform .25s ease; }
.site-footer .dog:hover { transform: scaleX(-1); }
.site-footer .legal {
  border-top: 1px solid var(--hairline);
  padding-top: 1.1rem; padding-bottom: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- page intros (interior pages) ---------- */

.page-intro { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.page-intro .crumb { margin-bottom: 1.2rem; display: block; }
.page-intro .crumb a { color: var(--muted); text-decoration: none; }
.page-intro .crumb a:hover { text-decoration: underline; }
.page-intro h1 { font-size: clamp(2.3rem, 6.5vw, 4.75rem); max-width: 16ch; }
.page-intro .lede { margin-top: 1.4rem; max-width: 38rem; font-size: 1.15rem; }

/* ---------- blog index ---------- */

.post-list { border-top: 1px solid var(--ink); }
.post-list article {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.post-list article:last-child { border-bottom: 1px solid var(--ink); }
.post-list .kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-list h2, .post-list h3 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1; }
.post-list h2 a, .post-list h3 a { text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.post-list p { font-size: 1rem; margin-top: .7rem; max-width: 44rem; }
@media (max-width: 700px) {
  .post-list article { grid-template-columns: 1fr; gap: .5rem; }
}

/* ---------- article body ---------- */

.article { max-width: 44rem; }
.article > * + * { margin-top: 1.15rem; }
.article h2 {
  font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.1;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
}
.article h3 { font-size: 1.15rem; margin-top: 2rem; letter-spacing: .01em; }
.article ul, .article ol { margin-left: 1.2rem; }
.article li + li { margin-top: .5rem; }
.article .lede { font-size: 1.2rem; }
.article blockquote {
  border-left: 2px solid var(--ink);
  padding-left: 1.2rem;
  font-size: 1.1rem;
}
.article figure.shot { margin-top: 2.5rem; }
.article .mono { display: block; }

.post-meta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.4rem;
}

.toc {
  border: 1px solid var(--hairline);
  padding: 1.2rem 1.4rem;
  margin-top: 2rem;
}
.toc .mono { display: block; margin-bottom: .7rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li + li { margin-top: .35rem; }
.toc a { font-size: .98rem; }

.faq { margin-top: 1.25rem; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 1rem 0;
}
.faq details:first-child { border-top: 1px solid var(--hairline); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: .7rem; }

.post-nav {
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--ink);
  padding-top: 1.2rem; margin-top: 3rem;
}
.post-nav a { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

/* ---------- credits / published-in list ---------- */

.credits {
  display: flex; flex-wrap: wrap; gap: .5rem .6rem;
  margin-top: 1.2rem; padding: 0; list-style: none;
}
.credits li {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--hairline);
  padding: .5rem .8rem;
}

/* ---------- seasonal promo band ---------- */

.promo { background: var(--ink); color: var(--paper); }
.promo .inner {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem clamp(1.5rem, 4vw, 3rem); flex-wrap: wrap;
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  padding-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.promo .kicker {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .18em;
  text-transform: uppercase; color: #a9a49a;
  display: block; margin-bottom: .7rem;
}
.promo .line {
  font-weight: 700; text-transform: uppercase;
  letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(1.35rem, 3.4vw, 2.4rem);
  max-width: 24ch;
}
.promo .line em { font-style: normal; color: #a9a49a; }
.promo .meta {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: #a9a49a;
  margin-top: .9rem;
}
.promo .btn { border-color: var(--paper); color: var(--paper); background: transparent; }
.promo .btn:hover { background: var(--paper); color: var(--ink); }

/* ---------- booking ---------- */

.booking-embed {
  border: 1px solid var(--ink);
  background: #fff;
  min-height: 760px;
  position: relative;
}
.booking-embed .calendly-inline-widget { width: 100%; }
.booking-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 1rem; text-align: center; padding: var(--gutter);
  background: var(--paper);
}
@media (max-width: 560px) {
  .booking-embed, .booking-embed .calendly-inline-widget { min-height: 900px; height: 900px; }
}

/* ---------- misc ---------- */

.rule { border: 0; border-top: 1px solid var(--hairline); }
.note { font-size: .92rem; color: var(--muted); max-width: 38rem; }
hr.ink { border: 0; border-top: 1px solid var(--ink); }
