/* designclubbend.com
 *
 * The WordPress site's look, rebuilt by hand: Roboto in two voices (hairline
 * 100 with wide tracking for display type, light 300 for reading), black on
 * white, and the warm stone gray as the one accent surface. No framework.
 */

@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-v51-latin.woff2") format("woff2");
  font-weight: 100 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #000;
  --text: #2a2829;
  --muted: #535253;
  --stone: #e0e0db;
  --line: #ccc;
  --paper: #fff;

  --track: 0.11em;
  --wide: 80.625rem;   /* 1290px, the theme's content width */
  --gutter: clamp(1.25rem, 4vw, 1.5rem);
  --band: clamp(4rem, 9vw, 9rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* `hidden` must always win. Without this, any class that sets display (the
   form's grid, a fieldset's grid) silently overrides it: the sent form stayed
   on screen, still filled in, above its own thank-you. */
[hidden] { display: none !important; }

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

a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.display {
  margin: 0 0 1.5rem;
  font-weight: 100;
  letter-spacing: var(--track);
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}
.display-xl { font-size: clamp(2.25rem, 1.7rem + 1.8vw, 2.8125rem); }  /* 45px */
.display-lg { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.1875rem); } /* 35px */
.display-md { font-size: clamp(1.75rem, 1.5rem + 0.8vw, 2.125rem); }   /* 34px */
.display-caps {
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.75rem);
  text-transform: uppercase;
  margin: 1.75rem 0 1rem;
}

.lead { font-size: 1.25rem; line-height: 1.7; }

.eyebrow-link {
  display: inline-block;
  font-size: .9375rem;
}

/* Text buttons: the theme's outline buttons drew no visible edge, so they
   read as tracked uppercase words. Kept that way; the underline on hover is
   the one addition. */
.text-button {
  display: inline-block;
  padding: .6rem 1.1rem;
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 50% calc(100% - .45rem);
  background-repeat: no-repeat;
  transition: background-size .3s var(--ease);
}
.text-button:hover, .text-button:focus-visible { background-size: calc(100% - 2.2rem) 1px; }

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

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem var(--gutter) 2.5rem;
}
.site-header.is-overlay {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}

.brand { display: block; width: min(23.125rem, 78vw); }
.brand img { width: 100%; }

.site-nav ul {
  display: flex;
  gap: .25rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: .45rem .1rem;
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.menu-toggle {
  display: none;
  margin-top: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { margin: auto; }

@media (max-width: 47.99rem) {
  .site-header { padding-top: 2rem; padding-bottom: 1.5rem; }
  .menu-toggle { display: block; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul {
    flex-direction: column;
    align-items: center;
    margin-top: .5rem;
    padding: .75rem 0;
    background: rgba(255, 255, 255, .96);
  }
  .site-nav a { padding: .7rem .25rem; }
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band { background: var(--stone); padding: var(--band) var(--gutter); }
.band-inner { max-width: 50.3rem; margin: 0 auto; text-align: center; }

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }

/* Two columns, text beside a photo. On a phone they stack, photo second. */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.split-text { text-align: center; max-width: 34rem; margin: 0 auto; }
.split-photo img { width: 100%; }
@media (min-width: 48rem) {
  .split { grid-template-columns: 56fr 44fr; }
  .split.photo-first { grid-template-columns: 45fr 55fr; }
  .split.photo-first .split-photo { order: -1; }
  .split.team { grid-template-columns: 55fr 45fr; }
}
.split.team .split-text { text-align: left; max-width: none; }
.split.team .split-text p { font-size: 1rem; }

/* ---------------------------------------------------------------- home */

.hero {
  position: relative;
  height: 50vw;
  min-height: 32rem;
  max-height: 100svh;
  overflow: hidden;
  background: var(--stone);
}
.hero picture { height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
/* A soft white wash behind the overlaid logo and menu, so the menu stays
   readable whatever the photo does under it. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 16rem;
  z-index: 1;
  background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  pointer-events: none;
}
@media (max-width: 47.99rem) {
  .hero { height: 100svh; min-height: 34rem; }
}
/* Tablets: the overlaid logo and menu are ~300px tall, so a 2:1 band left the
   photo mostly hidden behind them. Taller here, with the portrait crop (the
   <picture> switches to the wide one only from 64rem). */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .hero { height: min(85svh, 56rem); }
}

.photo-band img { width: 100%; aspect-ratio: 1.82; object-fit: cover; }

.cta { text-align: center; }
.cta .display { margin-bottom: 1.25rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1rem; }

/* ---------------------------------------------------------------- pages */

.page-title { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }

.services {
  display: grid;
  gap: 3.5rem clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 48rem) { .services { grid-template-columns: repeat(3, 1fr); } }
.service img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.service p { font-size: 1rem; }

/* The spaces grid: square tiles, the first one twice the size, which also
   makes seventeen photos fill the grid with no orphan in the last row. */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.gallery button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--stone);
  cursor: zoom-in;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .3s;
}
.gallery button:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery button:hover img { transform: none; } }

html:has(.viewer[open]) { overflow: hidden; }  /* the page behind stays put */
.viewer {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(255, 255, 255, .97);
}
.viewer::backdrop { background: rgba(255, 255, 255, .97); }
.viewer[open] { display: grid; place-items: center; }
.viewer figure:focus { outline: none; }
.viewer figure { margin: 0; display: grid; justify-items: center; gap: .75rem; padding: 4rem 4.5rem; }
.viewer img { max-width: min(100%, 62rem); max-height: calc(100vh - 10rem); max-height: calc(100dvh - 10rem); width: auto; height: auto; object-fit: contain; }
.viewer figcaption { font-size: .9375rem; color: var(--muted); text-align: center; }
.viewer-btn {
  position: absolute;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer;
}
.viewer-close { top: 1rem; right: 1rem; }
.viewer-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.viewer-next { right: .75rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 47.99rem) {
  .viewer figure { padding: 4rem 1rem 5rem; }
  .viewer-prev, .viewer-next { top: auto; bottom: 1rem; transform: none; }
  .viewer-prev { left: calc(50% - 3.5rem); }
  .viewer-next { right: calc(50% - 3.5rem); }
}

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

.contact { max-width: 40.7rem; margin: 0 auto; }
.contact .page-title { margin-bottom: .75rem; }
.contact-intro { text-align: center; margin-bottom: 2.5rem; }

.form { display: grid; gap: 1.5rem; }
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 36rem) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .4rem; }
.field label, .field legend, .group-label {
  font-size: .9375rem;
  font-weight: 400;
  color: var(--text);
}
.optional { color: var(--muted); font-weight: 300; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea {
  width: 100%;
  padding: .8rem .9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  appearance: none;
  transition: border-color .2s;
}
input[type="date"] { min-height: 3.2rem; }
textarea { min-height: 8.5rem; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
/* As specific as the field rule above, and after it, so the red border shows. */
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a5281b; }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px #a5281b; }
.field-error { margin: 0; font-size: .875rem; color: #a5281b; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset legend { padding: 0; margin-bottom: .6rem; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block;
  padding: .55rem 1rem;
  font-size: .9375rem;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
  user-select: none;
}
.choice input:hover + span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .9375rem; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin: .25rem 0 0; accent-color: var(--ink); flex: none; }

.details {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f4f4f1;
}
.details-title {
  margin: 0;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--muted);
}

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: grid; justify-items: center; gap: 1rem; margin-top: .5rem; }
.turnstile:empty { display: none; }

.button {
  min-width: 12rem;
  padding: 1rem 2.5rem;
  font: inherit;
  font-size: .9375rem;
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.button:hover, .button:focus-visible { background: var(--ink); color: var(--paper); }
.button[disabled] { opacity: .5; cursor: progress; }


.form-status { text-align: center; font-size: 1rem; }
.form-status.is-error { color: #a5281b; }
/* Empty, it takes no room but stays in the accessibility tree, so screen
   readers announce what is written into it later. */
.form-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.thanks { text-align: center; padding: 2rem 0; }
/* Focus moves here after sending so screen readers read it; no outline needed. */
.thanks:focus { outline: none; }

.call { text-align: center; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid #e5e5e5; }
.call .display { margin-bottom: .5rem; }
.call a { font-size: 1.25rem; }

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

.site-footer {
  padding: 3.5rem var(--gutter) 3rem;
  text-align: center;
  font-size: .9375rem;
  color: var(--text);
}
.site-footer p { margin: 0 0 .35rem; }
.instagram {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  font-size: .875rem;
  font-weight: 400;
  letter-spacing: var(--track);
  text-transform: uppercase;
  text-decoration: none;
}
.instagram:hover span { text-decoration: underline; }
