/* TheRedGuild v3. Tokens are documented in content/Design/Design-System.md */
:root {
  --coal: #141211;
  --coal-2: #1e1a18;
  --coal-3: #29231f;
  --line: #3a332e;
  --bone: #ede6d8;
  --paper: #e4dccb;
  --smoke: #a39a8e;
  --red: #b5161c;
  --red-deep: #8f0f15;
  --red-text: #ee4338;
  --brass: #c2a464;

  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --text: "Archivo", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 78rem;
  --gutter: clamp(1.1rem, 4vw, 2.75rem);
  --notch: clamp(1.25rem, 4.5vw, 4.25rem);
  --bar: 4rem;
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2.5rem; --s-5: 4.5rem; --s-6: 7rem;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 1rem); }
body { margin: 0; background: var(--coal); color: var(--bone); font: 400 1.0625rem/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bone); color: var(--coal); padding: .6rem 1rem; z-index: 30; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3, .brand { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .012em; }
.label, .more, .client-kind, .client-links a, .slip-meta, .filters button, .copy, .doors span, .about-since, .roster p, .sort { font-stretch: 84%; font-weight: 620; }

/* ------------------------------------------------ top bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--coal); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: var(--bar); }
.brand { display: flex; align-items: center; gap: .65rem; font-size: 1.45rem; text-decoration: none; line-height: 1; }
.brand img { width: 34px; height: 34px; object-fit: cover; border-radius: 2px; }
.bar ul { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.bar nav > ul > li > a:not(.btn), .sub-btn { font-stretch: 80%; font-weight: 640; font-size: 1.0625rem; text-decoration: none; padding-block: .5rem; border-bottom: 3px solid transparent; white-space: nowrap; color: #d6cebf; }
.bar nav > ul > li > a:not(.btn):hover, .sub-btn:hover { color: var(--bone); border-bottom-color: var(--line); }
.bar nav > ul > li > a[aria-current], .sub-btn.is-current { color: var(--bone); border-bottom-color: var(--red-text); }
.sub-btn { background: none; border-width: 0 0 3px; border-style: solid; border-radius: 0; cursor: pointer; display: flex; align-items: center; gap: .45rem; }
.sub-btn::after { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; transition: rotate .12s, translate .12s; }
.sub-btn[aria-expanded="true"]::after { rotate: 225deg; translate: 0 2px; }
.has-sub { position: relative; }
.bar .sub { display: none; position: absolute; top: calc(100% + .35rem); left: -1.1rem; width: 21rem; flex-direction: column; align-items: stretch; gap: 0; background: var(--coal-2); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 2px 2px; box-shadow: 0 18px 40px rgb(0 0 0 / .5); padding: .4rem; }
.has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: .5rem; }
.has-sub.open .sub, .no-js .has-sub:focus-within .sub { display: flex; }
@media (hover: hover) and (min-width: 52.01rem) { .has-sub:hover .sub { display: flex; } }
.sub a { display: block; padding: .8rem .9rem; text-decoration: none; border-radius: 2px; }
.sub a strong { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; letter-spacing: .012em; }
.sub a span { display: block; color: var(--smoke); font-size: .93rem; line-height: 1.4; margin-top: .25rem; }
.sub a:hover, .sub a:focus-visible { background: var(--red); }
.sub a:hover span, .sub a:focus-visible span { color: var(--bone); }
.sub a[aria-current] strong { color: var(--red-text); }
.sub a[aria-current]:hover strong { color: var(--bone); }
.login { font-family: var(--display); text-transform: uppercase; font-size: 1rem; line-height: 1; letter-spacing: .03em; text-decoration: none; padding: .7rem .9rem .6rem; border: 2px solid var(--bone); border-radius: 2px; white-space: nowrap; }
.login:hover { background: var(--bone); color: var(--coal); }
.login-off, .login-off:hover { background: none; color: var(--smoke); border-color: var(--line); cursor: default; user-select: none; }
.bar nav { margin-left: auto; }
.menu-btn { display: none; background: none; border: 2px solid var(--line); border-radius: 2px; padding: .5rem .8rem; font-stretch: 84%; font-weight: 650; cursor: pointer; }
.menu-btn[aria-expanded="true"] { background: var(--bone); border-color: var(--bone); color: var(--coal); }

/* ------------------------------------------------ banner: red cloth with a swallowtail cut */
.banner { position: relative; isolation: isolate; padding-bottom: calc(var(--notch) + var(--s-4)); }
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-color: var(--red);
  background-image:
    repeating-linear-gradient(0deg, rgb(0 0 0 / .07) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgb(255 255 255 / .035) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, transparent 50%, rgb(0 0 0 / .24));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--notch)), 0 100%);
}
.banner-body { padding-top: clamp(1.75rem, 4.5vw, 3.75rem); }
.banner h1 { font-size: clamp(2.6rem, 7vw, 5.75rem); line-height: .94; max-width: 16ch; text-wrap: balance; }
.page-summary { margin-top: var(--s-2); max-width: 46ch; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.4; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 23rem); gap: var(--s-4) clamp(2rem, 5vw, 5rem); align-items: end; }
.home .banner h1 { font-size: clamp(2.7rem, 6.6vw, 6rem); line-height: .92; max-width: 17ch; }
.hero-lede { margin-top: var(--s-3); max-width: 36rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: var(--s-3); }
.hero-proof { font-stretch: 85%; font-weight: 620; text-underline-offset: .2em; }
.hero-proof .stars { color: var(--coal); margin-right: .35rem; display: inline-block; }
.hero-slip { margin-bottom: calc(-1 * (var(--notch) + var(--s-4) + .9rem)); }
.hero-slip .slip { rotate: 2.2deg; margin: 0; box-shadow: 10px 12px 0 rgb(0 0 0 / .28); }


/* ------------------------------------------------ buttons */
.btn { display: inline-block; font-family: var(--display); text-transform: uppercase; font-size: 1.2rem; line-height: 1; letter-spacing: .02em; padding: 1rem 1.4rem .9rem; text-decoration: none; border: 0; border-radius: 2px; cursor: pointer; transition: translate .1s ease-out, box-shadow .1s ease-out; }
.btn:active { translate: 3px 3px; box-shadow: 2px 2px 0 var(--btn-shadow); }
.btn-bone { --btn-shadow: var(--coal); background: var(--bone); color: var(--coal); box-shadow: 5px 5px 0 var(--btn-shadow); }
.btn-bone:hover { background: #fff; }
.btn-red { --btn-shadow: var(--red-deep); background: var(--red); color: var(--bone); box-shadow: 5px 5px 0 var(--btn-shadow); }
.btn-red:hover { background: #c81c22; }
.btn-small { font-size: 1rem; padding: .7rem .95rem .6rem; box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ------------------------------------------------ sections */
.block { padding-block: var(--s-5); }
.block-first { padding-top: var(--s-4); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1; }
.more { color: var(--brass); text-underline-offset: .22em; }
.more:hover { color: var(--bone); }

/* roster strip under the home banner */
.roster { border-bottom: 1px solid var(--line); padding-block: 1.9rem 1.4rem; }
.roster-in { display: flex; align-items: center; gap: var(--s-3); }
.roster p { color: var(--smoke); white-space: nowrap; }
.roster ul { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
.roster a { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-weight: 600; white-space: nowrap; }
.roster a:hover { color: var(--brass); }
.roster img { width: 32px; height: 32px; border-radius: 2px; object-fit: cover; }

/* what I do */
.doors { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s-3); }
.doors > li { grid-column: span 6; }
.doors > li:nth-child(4n + 1), .doors > li:nth-child(4n) { grid-column: span 7; }
.doors > li:nth-child(4n + 2), .doors > li:nth-child(4n + 3) { grid-column: span 5; }
.doors > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.doors > li:last-child:nth-child(odd) a { min-height: 0; }
.doors a { display: flex; flex-direction: column; height: 100%; min-height: 15rem; padding: 1.6rem 1.6rem 1.35rem; background: var(--coal-2); border: 1px solid var(--line); border-left: 6px solid var(--red); border-radius: 2px; text-decoration: none; transition: background-color .14s, border-color .14s; }
.doors h3 { font-size: clamp(1.8rem, 3.3vw, 2.7rem); line-height: .98; }
.doors p { color: #d3cbbd; margin-top: .7rem; max-width: 34rem; }
.doors ul { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.doors ul li { border: 1px solid var(--line); border-radius: 2px; padding: .2rem .55rem; font-size: .9rem; font-stretch: 84%; font-weight: 600; color: var(--smoke); }
.doors span { color: var(--brass); margin-top: auto; padding-top: 1.25rem; }
.doors a:hover, .doors a:focus-visible { background: var(--red); border-color: var(--red); }
.doors a:hover :is(p, span, ul li), .doors a:focus-visible :is(p, span, ul li) { color: var(--bone); border-color: rgb(237 230 216 / .45); }

/* page opening: intro + pulled review */
.lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-4) clamp(2rem, 5vw, 5rem); align-items: start; }
.intro { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.5; }
.intro p { max-width: 44rem; }
.intro a:not(.btn) { color: var(--brass); }
.intro-cta { margin-top: var(--s-3); font-size: 1rem; }
.lead-slip .slip { rotate: 1.2deg; margin: 0; }

/* services */
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-1) var(--s-3); padding-block: 1.5rem; border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service dt { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.05; }
.service dd { color: #d3cbbd; max-width: 40rem; }

/* clients */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: var(--s-3); }
.client { background: var(--coal-2); border: 1px solid var(--line); border-radius: 2px; padding: 0 1.3rem 1.3rem; display: flex; flex-direction: column; }
.client-banner { height: 7rem; margin-inline: -1.3rem; background: var(--red-deep); overflow: hidden; }
.client-banner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.7); transition: filter .25s; }
.client:hover .client-banner img, .client:focus-within .client-banner img { filter: none; }
.client-avatar { width: 76px; height: 76px; margin-top: -38px; border: 3px solid var(--coal-2); border-radius: 3px; background: var(--coal); position: relative; }
.client h3 { font-size: 1.75rem; line-height: 1; margin-top: .85rem; overflow-wrap: anywhere; }
.client-kind { color: var(--brass); margin-top: .25rem; }
.client-bio { color: var(--smoke); font-size: .975rem; line-height: 1.5; margin-top: .6rem; flex: 1; }
.client-did { font-size: .95rem; margin-top: .6rem; }
.client-links { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.client-links a { text-underline-offset: .22em; text-decoration-color: var(--red-text); text-decoration-thickness: 2px; padding-block: .35rem; }
.client-links a:hover { color: var(--red-text); }

/* reviews: paper slips */
.slips { columns: 3 19rem; column-gap: var(--s-3); }
.slip { break-inside: avoid; background: var(--bone); color: var(--coal); padding: 1.4rem 1.45rem 1.15rem; margin-bottom: var(--s-3); border-radius: 1px; }
.slips .slip:nth-child(3n + 1) { rotate: -.55deg; }
.slips .slip:nth-child(3n + 2) { rotate: .4deg; background: var(--paper); }
.slips .slip:nth-child(4n) { rotate: -.2deg; }
.slip-banner { display: block; width: calc(100% + 2.9rem); max-width: none; margin: -1.4rem -1.45rem 1.1rem; aspect-ratio: 12 / 5; object-fit: cover; }
.slip blockquote p { font-size: 1.04rem; line-height: 1.5; }
.slip-short blockquote p { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; line-height: 1.08; }
.slip-long blockquote p { font-size: 1.1rem; }
.slip footer { display: flex; align-items: center; gap: .75rem; margin-top: 1.1rem; padding-top: .9rem; border-top: 2px solid var(--coal); }
.slip footer img { width: 42px; height: 42px; border-radius: 2px; object-fit: cover; background: var(--coal); flex: none; }
.slip cite { font-style: normal; font-weight: 750; display: block; line-height: 1.2; overflow-wrap: anywhere; }
.slip-role { display: block; font-size: .9rem; line-height: 1.3; }
.slip-meta { display: flex; flex-wrap: wrap; gap: 0 .6rem; align-items: baseline; font-size: .875rem; color: #4d453f; }
.slip-links { display: flex; flex-wrap: wrap; gap: .1rem 1rem; margin-top: .7rem; font-size: .9rem; font-stretch: 84%; font-weight: 620; }
.slip-links a { padding-block: .25rem; text-underline-offset: .22em; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.slip-links a:hover { color: var(--red); }
.stars { color: var(--red); letter-spacing: .08em; }
.stars-off { opacity: .25; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2); margin-bottom: var(--s-4); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
[data-filterable] > .filters { margin-bottom: var(--s-4); }
.filters button { line-height: 1; background: none; border: 2px solid var(--line); border-radius: 2px; padding: .75rem .95rem; cursor: pointer; }
.filters button span { color: var(--smoke); margin-left: .25rem; }
.filters button:hover { border-color: var(--smoke); }
.filters button[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--coal); }
.filters button[aria-pressed="true"] span { color: #4d453f; }
.sort { color: var(--smoke); display: flex; align-items: center; gap: .6rem; }
.sort select, .admin select { background: var(--coal-2); border: 2px solid var(--line); border-radius: 2px; padding: .6rem .7rem; }
.empty { color: var(--smoke); }
.empty-page { color: var(--smoke); font-size: 1.15rem; max-width: 40rem; }

/* visitor review form */
.write { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; margin-bottom: var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.write-note { color: var(--smoke); max-width: 34rem; }
.write-status { padding: 1rem 1.1rem; border-left: 6px solid var(--brass); background: var(--coal-2); max-width: 46rem; }
.write-status.good { border-left-color: #6fae6a; }
.write-status.bad { border-left-color: var(--red-text); }
.write-form { display: grid; gap: 1.25rem; width: 100%; max-width: 40rem; }
.write-form label, .write-form legend, .write-form summary { font-weight: 650; font-stretch: 88%; padding: 0; }
.write-form label { display: block; margin-bottom: .35rem; }
.write-form summary { cursor: pointer; }
.write-form small { display: block; color: var(--smoke); font-size: .9rem; }
.write-form textarea, .write-form input[type="url"] { width: 100%; background: var(--coal-2); border: 2px solid var(--line); border-radius: 2px; padding: .75rem .8rem; line-height: 1.5; }
.write-form textarea { resize: vertical; min-height: 7rem; }
.write-form :is(textarea, input):focus-visible { outline-offset: 0; border-color: var(--brass); }
.write-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.write-who { display: flex; align-items: center; gap: .8rem; }
.write-who img { width: 44px; height: 44px; border-radius: 2px; object-fit: cover; background: var(--coal-2); flex: none; }
.write-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.write-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.25rem; color: var(--smoke); }
.write-error { color: var(--red-text); font-weight: 600; }
/* stars: radios in reverse order, so "this one and every one after it" lights up the stars to its left */
.stars-pick div { display: inline-flex; flex-direction: row-reverse; gap: .15rem; }
.stars-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-pick label { margin: 0; font-size: 2.1rem; line-height: 1; color: var(--line); cursor: pointer; padding: .1rem .15rem; }
.stars-pick input:checked ~ label, .stars-pick label:hover, .stars-pick label:hover ~ label { color: var(--brass); }
.stars-pick input:focus-visible + label { outline: 3px solid var(--brass); outline-offset: 2px; }
@media (max-width: 40rem) { .write-links { grid-template-columns: 1fr; } }

/* projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: var(--s-3); }
.project { border-top: 3px solid var(--red); padding-top: 1rem; }
.project h3 { font-size: 1.6rem; line-height: 1.05; margin-bottom: .5rem; }
.project p { color: #d3cbbd; }
.project img { margin-bottom: 1rem; }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-4); align-items: center; }
.crest { mix-blend-mode: screen; width: 100%; max-width: 20rem; justify-self: center; }
.about h2 { margin-bottom: var(--s-2); }
.about p { max-width: 40rem; font-size: 1.15rem; }
.about p + p { margin-top: 1rem; }
.about .about-since { color: var(--brass); font-size: 1rem; }

/* contact */
.contact { background: var(--coal-2); border-top: 6px solid var(--red); padding-block: var(--s-5); margin-top: var(--s-4); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-4) clamp(2rem, 5vw, 5rem); align-items: end; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: .95; }
.contact-lede { max-width: 34rem; margin-block: var(--s-2) var(--s-3); font-size: 1.15rem; }
.contact-other { display: grid; }
.contact-other li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; padding-block: .9rem; border-top: 1px solid var(--line); }
.contact-other li > span { color: var(--smoke); min-width: 5.6rem; font-stretch: 84%; font-weight: 620; }
.contact-other a { text-underline-offset: .22em; overflow-wrap: anywhere; }
.ico { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.22em; margin-right: .45em; }
.ico-x { width: auto; height: auto; vertical-align: baseline; font-size: 1.15em; line-height: 1; font-stretch: 100%; font-weight: 400; font-family: "Cambria Math", "STIX Two Math", "Noto Sans Math", "Segoe UI Symbol", "Apple Symbols", sans-serif; }
.foot a .ico { margin-right: .35em; }
.copy { line-height: 1; background: none; border: 1px solid var(--line); border-radius: 2px; padding: .5rem .65rem; cursor: pointer; font-size: .9rem; }
.copy:hover { border-color: var(--smoke); }

.foot { background: var(--coal-2); border-top: 1px solid var(--line); padding-block: 1.25rem; color: var(--smoke); font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.foot a { margin-left: 1.1rem; text-underline-offset: .22em; }
.foot a:first-child { margin-left: 0; }
.foot a:hover { color: var(--bone); }

/* ------------------------------------------------ owner-only add button and form */
.owner-note { background: var(--coal-2); border-bottom: 1px solid var(--line); border-left: 6px solid var(--brass); }
.owner-note .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; padding-block: .9rem; }
.owner-note p { margin-right: auto; font-weight: 600; }
.owner-note button { background: none; border: 0; color: var(--smoke); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; padding: .4rem 0; }
.fabs { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 25; display: flex; gap: .9rem; }
.fab { width: 3.75rem; height: 3.75rem; display: grid; place-items: center; background: var(--red); color: var(--bone); border: 2px solid var(--bone); border-radius: 2px; box-shadow: 5px 5px 0 var(--coal), 5px 5px 0 2px var(--bone); text-decoration: none; }
.fab svg { width: 1.75rem; height: 1.75rem; }
.fab:hover { background: #c81c22; }
.fab-edit { background: var(--coal-2); }
.fab-edit:hover { background: var(--coal-3); }

.admin { max-width: 46rem; }
.admin form { display: grid; gap: 1.25rem; }
.admin .seg { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: var(--s-3); }
.admin .seg button { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; line-height: 1; padding: .7rem 1rem .6rem; background: none; border: 2px solid var(--line); border-radius: 2px; cursor: pointer; }
.admin .seg button[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--coal); }
.admin label, .admin legend { display: block; font-weight: 650; font-stretch: 88%; margin-bottom: .35rem; padding: 0; }
.admin small { display: block; color: var(--smoke); font-weight: 400; font-stretch: 100%; }
.admin input[type="text"], .admin input[type="password"], .admin input[type="url"], .admin input[type="date"], .admin input[type="number"], .admin textarea, .admin select { width: 100%; background: var(--coal-2); border: 2px solid var(--line); border-radius: 2px; padding: .75rem .8rem; }
.admin textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.admin :is(input, textarea, select):focus-visible { outline-offset: 0; border-color: var(--brass); }
.admin fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.admin .checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.admin .checks label { display: flex; align-items: center; gap: .5rem; margin: 0; border: 2px solid var(--line); border-radius: 2px; padding: .6rem .8rem; cursor: pointer; font-weight: 600; }
.admin .checks label:has(:checked) { border-color: var(--bone); background: var(--coal-3); }
.admin .checks input { accent-color: var(--red); width: 1.1rem; height: 1.1rem; }
.admin .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.admin .drop { display: flex; align-items: center; gap: 1rem; border: 2px dashed var(--line); border-radius: 2px; padding: .9rem; }
.admin .drop img { width: 72px; height: 72px; object-fit: cover; border-radius: 2px; background: var(--coal-2); }
.admin .drop.wide img { width: 144px; }
.admin details { border-top: 1px solid var(--line); padding-top: 1rem; }
.admin summary { cursor: pointer; font-weight: 650; }
.admin pre { background: var(--coal-2); border: 1px solid var(--line); padding: 1rem; overflow-x: auto; font-size: .875rem; line-height: 1.5; white-space: pre-wrap; }
.admin .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.admin .linkish { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; color: var(--brass); }
.admin .status { padding: 1rem 1.1rem; border-left: 6px solid var(--brass); background: var(--coal-2); }
.admin .status.bad { border-left-color: var(--red-text); }
.admin .status.good { border-left-color: #6fae6a; }
.admin .modes { align-items: center; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.admin .modes .linkish { margin-left: auto; }
.admin .modes .linkish + .linkish { margin-left: 1.25rem; }
.admin .rows { display: grid; gap: .5rem; margin: 0; }
.admin .rows button { width: 100%; display: flex; align-items: center; gap: .75rem; text-align: left; background: var(--coal-2); border: 1px solid var(--line); border-radius: 2px; padding: .85rem 1rem; cursor: pointer; }
.admin .rows button:hover { border-color: var(--smoke); background: var(--coal-3); }
.admin .rows span { margin-left: auto; color: var(--brass); font-size: .875rem; font-stretch: 84%; font-weight: 620; }
.admin .rows span + span { margin-left: .75rem; }
.admin .edit-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--s-3); overflow-wrap: anywhere; }
.admin .drop { flex-wrap: wrap; }
.admin .drop .remove { display: flex; align-items: center; gap: .4rem; margin: 0; font-weight: 600; color: var(--smoke); }
.admin .danger { color: var(--red-text); }
.admin .drop-note { flex-basis: 100%; }
.admin .drop-note.bad { color: var(--red-text); font-weight: 600; }
.admin .status .live { display: block; margin-top: .35rem; color: var(--smoke); }
.admin .status .live.done { color: var(--bone); }
.admin .status .live a { color: var(--brass); text-underline-offset: .22em; }
.admin .pending-help { color: var(--smoke); margin-bottom: var(--s-3); }
.admin .pending-list { display: grid; gap: var(--s-3); }
.admin .pending { background: var(--coal-2); border: 1px solid var(--line); border-left: 6px solid var(--brass); border-radius: 2px; padding: 1.2rem 1.3rem; display: grid; gap: 1rem; }
.admin .pending-who { display: flex; align-items: center; gap: .8rem; }
.admin .pending-who img { width: 44px; height: 44px; border-radius: 2px; object-fit: cover; background: var(--coal); }
.admin .pending-who small { color: var(--brass); }
.admin .pending blockquote { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.admin .pending-links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.admin .pending-links a { color: var(--brass); text-underline-offset: .22em; }
.admin .pending-rejected { margin-top: var(--s-4); }
.admin .pending-rejected .pending { border-left-color: var(--line); }
.admin .checks-list { display: grid; gap: .5rem; margin-top: .9rem; }
.admin .checks-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .2rem .5rem; }
.admin .checks-list b { color: #6fae6a; }
.admin .checks-list .no b { color: var(--red-text); }
.admin .checks-list small { grid-column: 2; }

/* ------------------------------------------------ the one load moment: the home banner unfurls */
@media (prefers-reduced-motion: no-preference) {
  .home .banner::before { animation: unfurl .7s cubic-bezier(.2, .8, .2, 1) both; }
  .home .hero-main { animation: rise .55s cubic-bezier(.2, .8, .2, 1) .2s both; }
  .home .hero-slip { animation: pin .5s cubic-bezier(.2, .9, .3, 1.2) .55s both; }
}
@keyframes unfurl {
  from { clip-path: polygon(0 0, 100% 0, 100% 8%, 50% 8%, 0 8%); }
  to { clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - var(--notch)), 0 100%); }
}
@keyframes rise { from { opacity: 0; translate: 0 1.25rem; } }
@keyframes pin { from { opacity: 0; translate: 0 -1.5rem; rotate: -3deg; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  @view-transition { navigation: none; }
}
@media (hover: none) { .client-banner img { filter: none; } }

/* ------------------------------------------------ medium and small screens */
@media (max-width: 60rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-slip { max-width: 26rem; margin-bottom: calc(-1 * (var(--notch) + var(--s-4) + 1rem)); }
  .roster { padding-top: 2.25rem; }
  .lead { grid-template-columns: 1fr; }
  .lead-slip { max-width: 28rem; }
  .doors > li { grid-column: 1 / -1 !important; }
  .doors a { min-height: 0; }
  .contact-grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 52rem) {
  :root { --bar: 3.5rem; }
  .menu-btn { display: block; order: 3; }
  .bar-in { gap: .6rem; }
  .brand { font-size: 1.2rem; gap: .45rem; margin-right: auto; }
  .brand img { width: 28px; height: 28px; }
  .login { font-size: .9rem; padding: .6rem .65rem .5rem; }
  .bar nav { margin-left: 0; }
  .js .bar nav { display: none; }
  .js .bar nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--coal); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem; }
  .bar ul { flex-direction: column; align-items: stretch; gap: 0; }
  .bar nav > ul > li > a:not(.btn) { display: block; font-size: 1.25rem; padding-block: .85rem; border-bottom: 1px solid var(--line); }
  .bar nav > ul > li > a[aria-current] { border-bottom-color: var(--red-text); }
  .sub-btn { width: 100%; font-size: .95rem; color: var(--smoke); padding-block: 1rem .2rem; border: 0; pointer-events: none; }
  .sub-btn::after { display: none; }
  .bar .sub { display: flex; position: static; width: auto; background: none; border: 0; box-shadow: none; padding: 0; }
  .sub a { padding: .7rem 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub a span { display: none; }
  .sub a[aria-current] { border-bottom-color: var(--red-text); }
  .nav-hire { margin-top: 1.1rem; }
  .no-js .bar-in { flex-wrap: wrap; padding-block: .6rem; }
  .no-js .menu-btn { display: none; }
  .roster-in { flex-direction: column; align-items: flex-start; gap: .8rem; }
  .service { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .crest { max-width: 12rem; justify-self: start; }
  .block { padding-block: var(--s-4); }
  .slip { rotate: none !important; }
  .hero-slip .slip { rotate: 1.2deg !important; }
  .admin .two { grid-template-columns: 1fr; }
  .toolbar { align-items: flex-start; flex-direction: column; }
}
