/* Coadapt Consulting. Joinery on concrete: paired carbon and white panels that
   meet at a dovetail seam, square corners, no hue anywhere. See DESIGN.md. */

:root {
  --concrete: #EEEEEC;
  --white: #FFFFFF;
  --carbon: #121212;
  --graphite: #4A4A48;
  --joint: #9A9A96;
  --rule: #D3D3CF;
  --smoke: #B8B8B4;
  --edge: #767672;
  --field: #F7F7F5;
  --display: "Funnel Display", "Albert Sans", system-ui, sans-serif;
  --text: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: 24px;
  --tail: 28px;
  /* Dovetail tails, drawn as tiles: pointing right, left, and down. */
  --tails-r: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='84'%3E%3Cpath d='M0 31 L28 20 V64 L0 53Z' fill='%23121212'/%3E%3C/svg%3E");
  --tails-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='84'%3E%3Cpath d='M28 31 L0 20 V64 L28 53Z' fill='%23121212'/%3E%3C/svg%3E");
  --tails-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='28'%3E%3Cpath d='M31 0 L20 28 H64 L53 0Z' fill='%23121212'/%3E%3C/svg%3E");
  --tails-hero: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='120'%3E%3Cpath d='M0 44 L40 28 V92 L0 76Z' fill='%23121212'/%3E%3C/svg%3E");
  --tails-hero-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='28'%3E%3Cpath d='M36 0 L22 28 H74 L60 0Z' fill='%23121212'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--concrete);
  color: var(--carbon);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.62;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--carbon); outline-offset: 3px; }
.dark :focus-visible, .foot :focus-visible, .joint-name :focus-visible { outline-color: var(--white); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(36px, 6vw, 64px); max-width: 17ch; }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 21px; font-weight: 600; line-height: 1.25; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* Every h2 starts with one small tail. */
h2::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 18px;
  margin-right: 12px;
  vertical-align: 0.02em;
  background: currentColor;
  clip-path: polygon(0 26%, 100% 0, 100% 100%, 0 74%);
}
.foot h2::before, h2.bare::before { display: none; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--carbon); color: var(--white); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.top { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.top-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 20px; min-height: 44px; }
.mark { width: 30px; height: 30px; flex: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: 15.5px; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu { display: none; }

@media (max-width: 860px) {
  .menu {
    display: inline-flex; align-items: center; min-height: 44px; min-width: 64px; justify-content: center;
    background: var(--carbon); color: var(--white); border: 0; font: 600 15px var(--text); padding: 0 16px; cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .nav a { width: 100%; padding: 0; border-bottom: 1px solid var(--rule); }
  .nav li:last-child a { border-bottom: 0; }
}

/* Sections */
.band { padding: 64px 0; }
.band.tight { padding-top: 0; }
.band-white { background: var(--white); }
.lede { font-size: 20px; line-height: 1.55; max-width: 44em; }
.muted { color: var(--graphite); }
.intro { max-width: 44em; margin-bottom: 36px; }
.intro p { color: var(--graphite); }

/* Hero */
.hero { padding: 56px 0 72px; }
.kicker { font-weight: 600; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite); margin-bottom: 18px; }
.hero h1 { margin-bottom: 36px; }

.joint { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0 0 20px; }
.joint-name, .joint-com { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 9.4vw, 108px); line-height: 1; letter-spacing: -0.02em; }
.joint-name { background: var(--carbon); color: var(--white); padding: 56px 48px; position: relative; z-index: 2; }
.joint-name::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 40px;
  background: var(--tails-hero) repeat-y 0 50% / 40px 120px;
}
.joint-com { background: var(--white); padding: 56px 48px 56px 80px; animation: shut 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
@keyframes shut { from { transform: translateX(40px); } to { transform: none; } }
.joint-cap { color: var(--graphite); max-width: 40em; }

@media (max-width: 760px) {
  .hero { padding: 36px 0 48px; }
  .joint { grid-template-columns: 1fr; }
  .joint-name { padding: 36px 24px; }
  .joint-name::after { top: 100%; bottom: auto; left: 0; right: 0; width: auto; height: 28px; background: var(--tails-hero-d) repeat-x 50% 0 / 96px 28px; }
  .joint-com { padding: 52px 24px 32px; }
  @keyframes shut { from { transform: translateY(28px); } to { transform: none; } }
}

/* Pairs: a carbon piece and a white piece cut to fit. */
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin: 0 0 24px; }
.pair:last-child { margin-bottom: 0; }
.pair.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.piece { padding: 36px 40px; position: relative; }
.dark { background: var(--carbon); color: var(--white); z-index: 1; }
.dark .muted, .dark p.muted { color: var(--smoke); }
.light { background: var(--white); padding-left: calc(40px + var(--tail)); }
.dark::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: var(--tail);
  background: var(--tails-r) repeat-y 0 50% / 28px 84px;
}
.pair.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.pair.flip .dark { order: 2; }
.pair.flip .light { order: 1; padding-left: 40px; padding-right: calc(40px + var(--tail)); }
.pair.flip .dark::after { left: auto; right: 100%; background-image: var(--tails-l); }
.dark h2, .dark h3 { color: var(--white); }
.dark a { color: var(--white); }
.piece > :last-child { margin-bottom: 0; }

.band-white .light { background: var(--concrete); }

@media (max-width: 760px) {
  .pair, .pair.even, .pair.flip, .pair.portrait { grid-template-columns: 1fr; }
  .piece { padding: 28px 22px; }
  .light, .pair.flip .light { padding: calc(28px + var(--tail)) 22px 28px; }
  .pair.flip .dark, .pair.flip .light { order: 0; }
  .dark::after, .pair.flip .dark::after {
    top: 100%; bottom: auto; left: 0; right: 0; width: auto; height: var(--tail);
    background: var(--tails-d) repeat-x 50% 0 / 84px 28px;
  }
}

/* Pins count the steps. */
.pins { display: inline-flex; gap: 5px; margin-bottom: 14px; }
.pins i { display: block; width: 14px; height: 17px; background: var(--carbon); clip-path: polygon(24% 0, 76% 0, 100% 100%, 0 100%); }
.pins i.off { background: var(--rule); }
.dark .pins i { background: var(--white); }
.dark .pins i.off { background: #3A3A38; }

.step-title { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0; }

/* Plain lists and rows */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rows li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.rows strong { font-weight: 600; }

.qa { margin: 0; border-top: 1px solid var(--rule); }
.qa div { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.qa dt { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; }
.qa dd { margin: 0; color: var(--graphite); }
@media (max-width: 760px) { .qa div { grid-template-columns: 1fr; } }

.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cols h3 { margin-bottom: 8px; }
.cols p { color: var(--graphite); }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; gap: 24px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--carbon); color: var(--white); border: 2px solid var(--carbon);
  font: 600 16px var(--text); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--white); color: var(--carbon); text-decoration: none; }
.dark .btn { background: var(--white); color: var(--carbon); border-color: var(--white); }
.dark .btn:hover { background: var(--carbon); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Portrait */
.pair.portrait { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.portrait .light { padding: 18px calc(18px + var(--tail)) 18px 18px; }
.portrait img { width: 100%; }
.portrait .dark { display: flex; flex-direction: column; justify-content: flex-end; }
.portrait .who { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 0 0 8px; }
@media (max-width: 760px) {
  .portrait .dark { order: 0; }
  .portrait .light { order: 1; padding: calc(18px + var(--tail)) 18px 18px; }
}

/* Forms */
.form { display: grid; gap: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .two { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--graphite); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--edge); border-radius: 0;
  background: var(--field); color: var(--carbon); font: 400 16px var(--text);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--carbon); outline-offset: 1px; background: var(--white); }
.status { padding: 14px 16px; border-left: 4px solid var(--carbon); background: var(--field); margin: 0; }
.status.bad { border-left-style: double; border-left-width: 6px; }
.fine { font-size: 14px; color: var(--graphite); }
.lookup { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.lookup > div { flex: 1 1 260px; }

address { font-style: normal; }

/* Legal pages */
.legal { max-width: 46em; }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }

/* Footer */
.foot { background: var(--carbon); color: var(--smoke); margin-top: 0; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot a { color: var(--white); }
.foot-name { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--white); }
.foot .mark rect { fill: var(--white); }
.foot .mark path { fill: var(--carbon); }
.foot-h { font-family: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 36px; }
.foot-base { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 28px; border-top: 1px solid #333331; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr; gap: 28px; } }

/* 404 */
.lost .joint-com { color: var(--joint); }

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .page-contact .light { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
