/* Cary Concrete Products: site styles.
   Page structure from the rebuild; colors, type, graphics and details from the
   original caryconcrete.com (espresso bars, tan/cream menu, shop-drawing paper,
   Verdana, black-ruled white boxes, black-framed photos, cream tab buttons). */
:root {
  --espresso: #35261D;
  --espresso-2: #4a372b;
  --cream: #ECE5D7;
  --cream-2: #E3DAC7;
  --tan: #9C8C73;
  --tan-dark: #6f6150;
  --tab-grey: #eee;
  --rule: #999;
  --ink: #000;
  --ink-2: #222;
  --muted: #555;
  --link: #0033cc;
  --font: Verdana, "DejaVu Sans", "Bitstream Vera Sans", Geneva, Tahoma, sans-serif;
  --mono: "Courier New", Courier, "Nimbus Mono PS", monospace;
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 7rem; }
body {
  margin: 0;
  font: 15px/1.6 var(--font);
  color: var(--ink);
  background: #f4f3f0 url(../images/ui/bground.jpg) repeat 0 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { color: #001f80; }
:focus-visible { outline: 2px solid var(--espresso); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font); font-weight: bold; line-height: 1.25; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.25rem, 2.3vw, 1.45rem); margin: 2.2rem 0 .75rem; }
h3 { font-size: 1.07rem; margin: 1.6rem 0 .5rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
blockquote {
  margin: 1.5rem 0; padding: .75rem 1rem;
  background: #fff; border: 1px solid var(--ink); font-style: italic; color: var(--ink-2);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--espresso); color: var(--cream); padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { top: 1rem; color: var(--cream); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.legacy-anchor { position: relative; top: -6rem; }

/* ---------- header: the original's espresso bar, cream title, tan menu, shade strip ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--espresso) url(../images/ui/shade.gif) repeat-x bottom;
  padding-bottom: 7px;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: 1rem; }
.brand { color: var(--cream); text-decoration: none; font-size: 1.45rem; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { color: #fff; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .1rem; }
.site-nav a { display: block; padding: .45rem .55rem; color: var(--tan); text-decoration: none; font-size: .97rem; }
.site-nav a:hover { color: var(--cream-2); }
.site-nav a[aria-current="page"] { color: var(--cream-2); }
.facebook-badge { flex: none; }
.facebook-badge img { width: 34px; height: 34px; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .brand { font-size: 1.25rem; }
  .site-nav a { padding: .45rem .4rem; font-size: .9rem; }
}
@media (max-width: 960px) {
  .header-inner { min-height: 3.6rem; }
  .nav-toggle {
    order: 3; display: inline-flex; align-items: center; justify-content: center;
    width: 2.75rem; height: 2.75rem; border: 1px solid var(--tan); background: transparent; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 1.2rem; height: 2px; background: var(--cream); position: relative; transition: transform .2s;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .facebook-badge { margin-left: auto; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--espresso) url(../images/ui/shade.gif) repeat-x bottom; padding-bottom: 7px;
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: .25rem 1.25rem .75rem; }
  .site-nav a { padding: .7rem .25rem; font-size: 1.05rem; border-bottom: 1px solid var(--espresso-2); }
  .no-js .site-nav { position: static; display: block; }
}
@media (max-width: 420px) { .brand { font-size: 1.05rem; } }

/* ---------- buttons: espresso primary, cream "tab" secondary (the Quick-Look tab style) ---------- */
.button {
  display: inline-block; padding: .6rem 1.1rem;
  background: var(--espresso); color: var(--cream); text-decoration: none; font-size: .88rem;
  border: 1px solid var(--espresso); text-transform: uppercase; transition: background .15s, color .15s;
}
.button:hover { background: var(--tan); border-color: var(--espresso); color: var(--cream); }
.button-ghost { background: var(--cream); color: var(--espresso); }
.button-ghost:hover { background: var(--tan); color: var(--cream); }
.button.block { display: block; text-align: center; }

/* ---------- hero ---------- */
.hero { border-bottom: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.eyebrow { font-style: italic; font-size: .9rem; color: var(--tan-dark); margin-bottom: .75rem; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); }
.lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-media { margin: 0; background: #fff; border: 1px solid var(--ink); padding: 10px; }
.hero-media img { border: 2px solid var(--ink); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero-media figcaption { font-size: .82rem; font-style: italic; color: var(--ink-2); margin-top: .55rem; text-align: center; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-top: 2.25rem; padding-bottom: 2.25rem; }
}

/* ---------- sections ---------- */
.section { padding-top: 3rem; padding-bottom: 1rem; }
.section.first { padding-top: 0; }
.section-title { margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.section-head .section-title { margin-bottom: 0; }
.band { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(255,255,255,.55); margin-top: 3rem; padding-bottom: 3rem; }

.status { display: grid; grid-template-columns: 14rem 1fr; gap: 2rem; padding: 1.75rem 2rem; background: #fff; border: 1px solid var(--ink); }
.status h2 { margin: 0; }
.status-body p:last-child { margin-bottom: 0; }
@media (max-width: 720px) { .status { grid-template-columns: 1fr; gap: .75rem; padding: 1.25rem; } }

.service-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; }
.service { background: #fff; border: 1px solid var(--ink); padding: 1.25rem 1.3rem 1.1rem; display: flex; flex-direction: column; }
.service h3 { margin-top: 0; }
.service p { color: var(--ink-2); font-size: .93rem; flex: 1; }
.service a { font-size: .9rem; font-style: italic; }

/* cards: white boxes with a black rule, photo in a black frame, grey tab for the kicker */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.25rem; }
.card { position: relative; background: #fff; border: 1px solid var(--ink); padding: 10px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.card:hover { color: var(--ink); background: #fffdf8; }
.card:hover h3 { color: var(--link); text-decoration: underline; }
.card-media { aspect-ratio: 4 / 3; background: var(--tab-grey); border: 2px solid var(--ink); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media-empty { background: #fff url(../images/ui/bground.jpg) repeat center; }
.card-body { padding: .7rem .2rem .2rem; }
.card-body h3 { margin: .45rem 0 .2rem; font-size: 1rem; }
.card-body .muted { font-size: .85rem; margin: 0; font-style: italic; }
.kicker { display: inline-block; font-size: .74rem; color: var(--ink-2); background: var(--tab-grey); border: 1px solid var(--rule); padding: .1rem .45rem; margin: 0; }

.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-list a {
  display: inline-block; padding: .45rem .9rem; background: var(--cream); border: 1px solid var(--espresso);
  color: var(--espresso); text-decoration: none; text-transform: uppercase; font-size: .85rem;
}
.pill-list a:hover { background: var(--tan); color: var(--cream); }

.cta {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  margin: 3.5rem 0 4rem; padding: 1.75rem 2rem 2rem;
  background: var(--espresso) url(../images/ui/footer.gif) repeat-x top; color: var(--cream);
}
.cta h2 { color: var(--cream); margin: 0 0 .4rem; }
.cta p { margin: 0; max-width: 38rem; color: var(--cream-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cta .button { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.cta .button:hover { background: var(--tan); color: var(--cream); border-color: var(--tan); }
.cta .button-ghost { background: transparent; color: var(--cream); border-color: var(--tan); }
.cta .button-ghost:hover { background: var(--tan); color: var(--cream); }

/* ---------- interior pages ---------- */
.page-head { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--rule); }
.page-head .lede { margin: .5rem 0 0; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; font-style: italic; }
.breadcrumb a { color: var(--link); }
.page-body { padding-top: 2.25rem; padding-bottom: 1rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }
.prose { max-width: 48rem; }
.prose > :first-child, .prose > section:first-child > h2:first-of-type { margin-top: 0; }
.prose li { margin-bottom: .35rem; }
.note { background: #fff; border: 1px solid var(--ink); padding: .75rem 1rem; }
.aside { display: grid; gap: 1.25rem; }
.aside-card { background: #fff; border: 1px solid var(--ink); padding: 1.2rem 1.3rem; font-size: .92rem; }
.aside-card h2 { font-size: 1.05rem; margin: 0 0 .75rem; }
.aside-card p:last-child, .aside-card ul:last-child { margin-bottom: 0; }
.aside-card.accent { box-shadow: inset 0 4px 0 var(--espresso); padding-top: 1.45rem; }
.toc ul, ul.plain { list-style: none; padding: 0; margin: 0; }
.toc li::before { content: "\2022\00a0"; }
.toc li { padding: .25rem 0; }
ul.plain li + li { margin-top: .6rem; }
@media (min-width: 961px) { .sticky { position: sticky; top: 7rem; } }

.how-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .75rem; margin: 1.5rem 0; }
.how-list li { background: #fff; border: 1px solid var(--ink); padding: .9rem 1rem; margin: 0; }
.how-list strong { display: block; }

.material { border-top: 1px solid var(--rule); padding-top: .5rem; margin-top: 2.5rem; }
.material:first-of-type { border-top: 0; }
.defs dt { font-weight: bold; margin-top: 1rem; }
.defs dd { margin: .25rem 0 0; color: var(--ink-2); }

/* facts lists: italic labels, as on the original job listings */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.facts dt { font-style: italic; color: var(--ink-2); margin-top: .7rem; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .05rem 0 0; }
.facts.compact { grid-template-columns: 13rem 1fr; column-gap: 1rem; }
.facts.compact dt { margin-top: .4rem; }
.facts.compact dd { margin-top: .4rem; }
@media (max-width: 600px) { .facts.compact { grid-template-columns: 1fr; } .facts.compact dd { margin-top: 0; } }

/* project list */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.filters button {
  font: inherit; font-size: .82rem; text-transform: uppercase; padding: .35rem .75rem; cursor: pointer;
  background: var(--cream); color: var(--espresso); border: 1px solid var(--espresso);
}
.filters button:hover { background: var(--cream-2); }
.filters button[aria-pressed="true"] { background: var(--tan); color: var(--cream); }
.project-list { list-style: none; padding: 0; margin: 0; background: #fff; border: 1px solid var(--ink); }
.project-list > li + li { border-top: 1px solid #ccc; }
.project-list summary { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1.6fr); gap: 1rem; align-items: center; padding: .75rem; cursor: pointer; list-style: none; }
.project-list summary::-webkit-details-marker { display: none; }
.project-list summary:hover { background: #faf7f0; }
.pl-name { font-weight: bold; }
.pl-name::before { content: "+"; display: inline-block; width: 1.25rem; color: var(--espresso); }
details[open] .pl-name::before { content: "\2013"; }
.pl-loc { color: var(--ink-2); font-size: .9rem; }
.pl-tags { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.tag { font-size: .72rem; padding: .1rem .45rem; background: var(--tab-grey); border: 1px solid var(--rule); color: var(--ink-2); white-space: nowrap; }
.project-list details > :not(summary) { margin-left: 2rem; margin-right: .75rem; }
.project-list details[open] { padding-bottom: 1rem; background: #fdfcf9; }
.project-list details[open] summary { background: var(--cream); }
@media (max-width: 720px) {
  .project-list summary { grid-template-columns: 1fr; gap: .2rem; }
  .pl-loc { padding-left: 1.25rem; }
  .pl-tags { justify-content: flex-start; padding-left: 1.25rem; }
  .project-list details > :not(summary) { margin-left: 1.25rem; }
}

/* galleries: photos in the original's 2px black frames */
.gallery { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.gallery li { margin: 0; }
.gallery li > a { display: block; overflow: hidden; background: var(--tab-grey); aspect-ratio: 4 / 3; border: 2px solid var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: opacity .15s; }
.gallery li > a:hover img { opacity: .85; }
.gallery li > a:hover { border-color: var(--link); }
.gallery-caption { font-size: .85rem; color: var(--ink-2); margin: .45rem 0 0; }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .75rem; margin-bottom: 1.25rem; }
.gallery.book { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.gallery.book li > a { aspect-ratio: auto; background: #fff; }
.gallery.book img { height: auto; object-fit: contain; }
.gallery.book .gallery-caption { text-align: center; }

/* lightbox: the old photo viewer captioned in Courier bold */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgba(30, 21, 16, .9); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: min(96vw, 1400px); max-height: calc(96vh - 7rem); width: auto; height: auto; border: 2px solid #000; background: #222; }
.lightbox figcaption { color: var(--cream); max-width: 60rem; text-align: center; margin-top: .75rem; font: bold .95rem/1.4 var(--mono); }
.lightbox-controls { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: .75rem; }
.lightbox-controls button {
  font: inherit; font-size: 1.1rem; width: 2.75rem; height: 2.5rem; cursor: pointer;
  background: var(--cream); color: var(--espresso); border: 1px solid var(--espresso);
}
.lightbox-controls button:hover { background: var(--tan); color: var(--cream); }
.lightbox-count { color: var(--cream-2); font-size: .85rem; min-width: 4rem; text-align: center; }

/* writings */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list > li { padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
.doc-list > li:first-child { padding-top: 0; }
.doc-list h2 { margin: 0 0 .2rem; font-size: 1.15rem; }
.doc-list h2 a { color: var(--link); }
.meta { color: var(--ink-2); font-size: .87rem; font-style: italic; }
.doc-links { font-size: .92rem; margin: 0; }
.doc-box { background: #fff; border: 1px solid var(--ink); padding: 1.2rem 1.4rem; margin: 2rem 0; }
.doc-box h2 { margin-top: 0; font-size: 1.1rem; }
.doc-box ul { margin: 0; }
.back { margin: 2.5rem 0 1rem; }
.blog-badge { display: block; margin: 0 0 .9rem; }
.blog-badge img { width: 100%; max-width: 210px; }

/* book */
.price-table { border-collapse: collapse; width: 100%; max-width: 28rem; margin: 1rem 0; font-variant-numeric: tabular-nums; background: #fff; border: 1px solid var(--ink); }
.price-table caption { caption-side: bottom; text-align: left; font-size: .82rem; font-style: italic; color: var(--ink-2); padding-top: .5rem; }
.price-table th, .price-table td { text-align: left; padding: .4rem .75rem; border-bottom: 1px solid #ccc; }
.price-table th { background: var(--espresso); color: var(--cream); font-weight: normal; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.slabman { text-align: center; }
.slabman .speech { width: 100%; margin: 0 auto .25rem; }
.slabman img:not(.speech) { margin: 0 auto .75rem; max-height: 15rem; width: auto; }
.slabman p { font-style: italic; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; }
.contact-card { display: block; background: #fff; border: 1px solid var(--ink); padding: 1.3rem 1.4rem; text-decoration: none; color: var(--ink); }
a.contact-card:hover { background: #fffdf8; color: var(--ink); }
.contact-label { display: block; font-size: .85rem; font-style: italic; color: var(--ink-2); margin-bottom: .35rem; }
.contact-value { display: block; font-size: 1.12rem; font-weight: bold; font-style: normal; overflow-wrap: anywhere; }
a.contact-card .contact-value { color: var(--link); text-decoration: underline; }

/* ---------- footer: espresso with the original's top strip and italic copyright ---------- */
.site-footer { background: var(--espresso) url(../images/ui/footer.gif) repeat-x top; color: var(--tan); font-size: .87rem; }
.site-footer a { color: var(--tan); text-decoration: none; }
.site-footer a:hover { color: var(--cream-2); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 2.5rem; padding-top: 2.75rem; padding-bottom: 1.75rem; }
.footer-brand, .footer-head { color: var(--cream); font-size: 1rem; margin-bottom: .6rem; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.footer-links.single { columns: 1; }
.footer-links li { margin-bottom: .4rem; break-inside: avoid; }
.footer-base { border-top: 1px solid var(--espresso-2); padding-top: 1.1rem; padding-bottom: 1.4rem; font-size: .8rem; font-style: italic; text-align: center; }
.footer-base p { margin: 0; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .cta, .aside .accent, .filters { display: none !important; }
  body { background: #fff; }
  .two-col { display: block; }
}
