/* Sundial Accounting: everything every page needs. */

/* Fonts
   ------------------------------------------------------------ */
@font-face {
  font-family: "Marcellus";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/Marcellus-Regular.woff2) format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/Figtree-400.woff2) format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/Figtree-500.woff2) format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/Figtree-600.woff2) format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/Figtree-700.woff2) format("woff2");
}
@font-face {
  font-family: "Spline Sans Mono";
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  src: url(../fonts/SplineSansMono-Variable.woff2) format("woff2");
}

/* Tokens
   ------------------------------------------------------------ */
:root {
  --patina: #16302b;
  --patina-deep: #0c1b18;
  --plate: #1d3b34;
  --brass: #d9a441;
  --brass-bright: #edc15a;
  --brass-deep: #8c5a11;
  --cream: #f3efe4;
  --sheet: #f6f2e7;
  --ink: #13221e;
  --text: #4a544f;
  --on-green: #d3ddd7;
  --soft-green: #a3b5ac;
  --line-green: rgba(217, 164, 65, 0.22);
  --hair: rgba(140, 90, 17, 0.3);
  --display: "Marcellus", Georgia, serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;
  --body-font: var(--body);
  --edge-n: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cpath d='M0 108 C 360 122, 760 124, 1040 78 S 1360 18, 1440 10 V120 H0 Z'/%3E%3C/svg%3E");
  --edge-m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'%3E%3Cg transform='translate%281440 0%29 scale%28-1 1%29'%3E%3Cpath d='M0 108 C 360 122, 760 124, 1040 78 S 1360 18, 1440 10 V120 H0 Z'/%3E%3C/g%3E%3C/svg%3E");
  --st-pa: url(../img/stone/stone-a-patina.webp);
  --st-pb: url(../img/stone/stone-b-patina.webp);
  --st-pa-t: url(../img/stone/stone-a-patina-tall.webp);
  --st-pb-t: url(../img/stone/stone-b-patina-tall.webp);
  --st-da: url(../img/stone/stone-a-deep.webp);
  --st-db-t: url(../img/stone/stone-b-deep-tall.webp);
}

/* Base
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
p {
  margin: 0;
}
h1,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
.wrap {
  max-width: var(--wrap, 1200px);
  margin: 0 auto;
  padding-inline: var(--gutter, clamp(16px, 4vw, 40px));
}
:focus-visible {
  outline: 2px solid var(--focus, #edc15a);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
html {
  scroll-padding-top: 70px;
}
body {
  background: var(--patina);
  color: var(--on-green);
  font: 400 18px/1.65 var(--body);
}
.c-wall {
  color: #101814;
}
html:not(.js) .pr-tick {
  stroke-dashoffset: 0;
}

/* Site header
   ------------------------------------------------------------ */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.nav-logo img {
  height: 56px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--nav-link, #ece8dc);
  opacity: 0.88;
}
.nav-links a:hover {
  opacity: 1;
  color: var(--nav-hover, #edc15a);
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}
.nav-links {
  font: 500 15.5px/1 var(--body);
}

@media (max-width: 360px) {
  .nav .wrap {
    gap: 12px;
  }
  .nav-logo img {
    height: 46px;
  }
}

/* Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.btn svg {
  width: 16px;
  height: 16px;
}
.btn-primary {
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--brass-bright);
  color: var(--patina-deep);
  font: 700 16.5px/1 var(--body);
  box-shadow: 0 10px 26px rgba(237, 193, 90, 0.2);
}
.btn-primary svg {
  transition: transform 0.25s;
}
.btn-primary:hover {
  background: #f4cf72;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 8px rgba(237, 193, 90, 0.16),
    0 14px 30px rgba(237, 193, 90, 0.3);
}
.btn-primary:hover svg {
  transform: translateX(4px);
}
.btn-nav {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  box-shadow: none !important;
}
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--brass);
  color: var(--brass-bright);
  font: 700 15px/1 var(--body);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}
.ghost:hover {
  background: var(--brass-bright);
  color: var(--patina-deep);
}

/* Bands and the brass-lined curves
   ------------------------------------------------------------ */
.band {
  position: relative;
  padding-block: clamp(90px, 10vw, 140px);
  overflow-x: clip;
}
.band.after-edge {
  padding-top: 170px;
}
.band > .wrap {
  position: relative;
  z-index: 1;
}
.b-patina {
  background: var(--patina);
}
.b-deep {
  background: var(--patina-deep);
}
.b-cream {
  background: var(--cream);
  color: var(--text);
}
.b-brass {
  background: var(--brass-bright);
  color: #3b3214;
}
.edge {
  position: absolute;
  left: 0;
  right: 0;
  top: -119px;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}
.edge svg {
  width: 100%;
  height: 100%;
  display: block;
}
.edge .sw-line {
  stroke: var(--brass);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0.85;
}
.b-brass .edge .sw-line {
  stroke: var(--patina);
  opacity: 0.4;
}
.c-cream {
  color: var(--cream);
}
.c-deep {
  color: var(--patina-deep);
}
.c-patina {
  color: var(--patina);
}
.c-brass {
  color: var(--brass-bright);
}
.b-cream h2,
.b-brass h2 {
  color: var(--ink);
}
.b-cream h2 em {
  color: var(--brass-deep);
}
.b-brass h2 em {
  color: var(--patina);
}
.band.cta {
  padding-top: clamp(160px, 14vw, 200px);
  padding-bottom: clamp(150px, 14vw, 200px);
}

/* Headings
   ------------------------------------------------------------ */
h2 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
h2 {
  font: 400 clamp(40px, 4.8vw, 64px) / 1.06 var(--display);
  color: #f6f2e7;
}
h2 em {
  font-style: normal;
  color: var(--brass-bright);
}
.head {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}
.head p {
  font-size: 19.5px;
  max-width: 650px;
}
h1 em {
  font-style: normal;
  color: var(--brass-bright);
}

/* Page top: label, title and intro on the stone
   ------------------------------------------------------------ */
.c-top {
  position: relative;
  isolation: isolate;
  background: var(--patina);
  padding-top: clamp(128px, 11vw, 156px);
}
.c-top::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(14, 31, 27, 0.74),
      rgba(14, 31, 27, 0.42) 48%,
      rgba(14, 31, 27, 0.12)
    ),
    linear-gradient(rgba(8, 18, 16, 0.4), rgba(8, 18, 16, 0) 26%),
    url(../img/stone/stone-a-patina-tall.webp) 50% 18% / cover no-repeat;
}
.c-top {
  overflow-x: clip;
}
.c-top > .wrap {
  position: relative;
  z-index: 1;
}
.c-top h1 {
  font: 400 clamp(44px, 5.2vw, 74px) / 1.04 var(--display);
  color: #f6f2e7;
  margin: 0 0 22px;
  text-wrap: balance;
}
.c-top h1 em {
  font-style: normal;
  color: var(--brass-bright);
}
.c-lede {
  font-size: clamp(17px, 1.4vw, 19.5px);
  line-height: 1.6;
  color: #d6dfda;
  max-width: 560px;
}
.s-label {
  margin: 0 0 14px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.lbl {
  margin: 0 0 12px;
  font: 500 11.5px/1.2 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
}
.s-label.dash::before,
.lbl.dash::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 2px;
  margin: 0 16px 0 0;
  vertical-align: middle;
  background: currentColor;
  transform: translateY(-1px);
}
.big-mark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  top: -110px;
  right: max(-190px, calc((100vw - 1440px) / 2 - 150px));
  width: min(660px, 50vw);
  aspect-ratio: 1;
  opacity: 0.11;
}
.big-mark img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.big-mark .glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(252, 235, 182, 0.45),
    rgba(237, 193, 90, 0.18) 45%,
    rgba(237, 193, 90, 0) 72%
  );
  animation: breathe 6s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) {
  .big-mark .glow {
    animation: none;
  }
}
@media (max-width: 980px) {
  .big-mark {
    width: min(440px, 70vw);
    top: -40px;
    right: -110px;
    opacity: 0.16;
  }
}

/* Site footer
   ------------------------------------------------------------ */
.foot {
  position: relative;
  background: var(--patina-deep);
  color: var(--soft-green);
  padding-block: 56px calc(96px + env(safe-area-inset-bottom, 0px));
}
.foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.foot img {
  height: 64px;
  width: auto;
}
.foot p {
  margin-top: 16px;
  max-width: 340px;
  font-size: 16px;
}
.foot h4 {
  margin: 0 0 14px;
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 15.5px;
}
.foot a {
  color: #e3e8e4;
  text-decoration: none;
}
.foot a:hover {
  color: var(--brass-bright);
}
.foot .legal {
  grid-column: 1/-1;
  border-top: 1px solid var(--line-green);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: 0.06em;
}
@media (max-width: 820px) {
  .foot .wrap {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 820px) {
  .foot .brand {
    grid-column: 1/-1;
  }
}
@media (max-width: 340px) {
  .foot .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}
.foot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background:
    var(--st-shade, linear-gradient(transparent, transparent)),
    var(--st-img) var(--st-pos, 50% 50%) / var(--st-size, cover) no-repeat;
}
.foot::before {
  top: -119px;
  -webkit-mask:
    var(--edge) 0 0/100% 120px no-repeat,
    linear-gradient(#000, #000) 0 119px/100% calc(100% - 119px) no-repeat;
  mask:
    var(--edge) 0 0/100% 120px no-repeat,
    linear-gradient(#000, #000) 0 119px/100% calc(100% - 119px) no-repeat;
}
.foot > .edge path:not(.sw-line) {
  fill-opacity: 0;
}
.foot > .wrap {
  position: relative;
  z-index: 1;
}
.foot {
  --edge: var(--edge-n);
  --st-img: var(--st-da);
  --st-pos: 50% 100%;
  --st-shade: linear-gradient(
    rgba(9, 20, 18, 0),
    rgba(9, 20, 18, 0.3) 30%,
    rgba(9, 20, 18, 0.55)
  );
}
.foot .disc {
  grid-column: 1/-1;
  margin: -22px 0 0;
  max-width: none;
  font: 400 12px/1.6 var(--body);
  color: rgba(163, 181, 172, 0.75);
}

/* Keyframes
   ------------------------------------------------------------ */
@keyframes breathe {
  from {
    opacity: 0.65;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

/* Accessibility
   ------------------------------------------------------------ */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--brass-bright);
  color: var(--patina-deep);
  font: 700 15px/1 var(--body);
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}
.b-cream,
.sheet,
.why,
.book-card,
.sd-form {
  --focus: var(--patina);
}

/* The stone below the fold loads as it nears the screen (site.js adds .stone-in)
   ------------------------------------------------------------ */
.js
  :is(
    #services,
    #beyond,
    #about,
    #faq,
    #contact,
    .foot,
    .closing,
    .related
  ):not(.stone-in) {
  --st-img: none;
}

/* WordPress admin bar, for logged-in users
   ------------------------------------------------------------ */
.admin-bar .nav {
  top: 32px;
}
.admin-bar .subnav {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .nav,
  .admin-bar .subnav {
    top: 46px;
  }
}
@media (max-width: 600px) {
  .admin-bar .subnav {
    top: 0;
  }
}
