/* Self-hosted Google Fonts (latin subsets; runic subset for Noto Sans Runic). */
@font-face{font-family:'Alegreya';font-style:normal;font-weight:400 700;font-display:swap;src:url(fonts/alegreya-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alegreya';font-style:italic;font-weight:400;font-display:swap;src:url(fonts/alegreya-italic-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/alegreya-sans-400-latin.woff2) format('woff2')}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:500;font-display:swap;src:url(fonts/alegreya-sans-500-latin.woff2) format('woff2')}
@font-face{font-family:'Alegreya Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/alegreya-sans-700-latin.woff2) format('woff2')}
@font-face{font-family:'Noto Sans Runic';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/noto-sans-runic.woff2) format('woff2');unicode-range:U+16A0-16F8}

:root{
  --parchment:#ECE3CC;--parchment-band:#E2D6B9;--parchment-light:#F4EEDD;
  --ink:#1E2640;--ink-soft:#363B4F;
  --forest:#123B3D;--forest-deep:#0C2428;--verdigris:#2E5F55;
  --gold:#9C7A2E;--gold-glow:#D9BC72;
}

/* Skip link: hidden until focused. */
.skip{position:absolute;left:16px;top:-80px;z-index:2147483600;padding:12px 18px;background:var(--parchment-light);color:var(--ink);font:500 16px/1 'Alegreya Sans',sans-serif;outline:2px solid var(--verdigris);text-decoration:none}
.skip:focus{top:16px}

/* Without JavaScript the pages cannot render, so give the essentials. */
.nojs{max-width:640px;margin:48px auto;padding:0 20px;font:18px/1.6 'Alegreya Sans',sans-serif;color:var(--ink)}
.nojs a{color:var(--verdigris)}

/* Form extras added to the design: honeypot, Turnstile and status line. */
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
.cf-turnstile{min-height:65px}

/* Simple pages (404, thanks). */
.simple{margin:0;min-height:100vh;display:grid;place-items:center;padding:20px;box-sizing:border-box;background:var(--parchment);color:var(--ink);font:18px/1.6 'Alegreya Sans',sans-serif}
.simple-card{max-width:520px;padding:40px 32px;border:3px double var(--gold);background:var(--parchment-light);text-align:center}
.simple-card h1{margin:12px 0 8px;font:500 clamp(34px,6vw,48px)/1.1 'Alegreya',serif}
.simple-card a{color:var(--verdigris)}
.simple-card a:focus-visible{outline:2px solid var(--verdigris);outline-offset:3px}

/* Home: while the live page renders over the pre-rendered copy (see home-boot.js), keep it out of sight. */
html.sg-booting #dc-root{position:absolute!important;top:0;left:0;width:100%;visibility:hidden}

/* Rune arrival (arrive-early.js): the same cover as the last frame of the rune transition, shown from the
   first paint until sg-arrive.js puts its own in place, so the page never flashes in between. */
html.sg-arriving::before{content:"";position:fixed;inset:0;z-index:2147482999;background:#ECE3CC radial-gradient(circle at 50% 46%,#F6F1E2 0,#ECE3CC 55%,#E4D8BC 100%)}
html.sg-arriving body::before{content:var(--sg-arrive-rune,"");position:fixed;left:0;right:0;top:calc(50% - 110px);height:180px;z-index:2147482999;display:flex;align-items:center;justify-content:center;font:96px/1 'Noto Sans Runic',sans-serif;color:#2E5F55;-webkit-font-smoothing:antialiased;pointer-events:none}
html.sg-arriving body::after{content:var(--sg-arrive-title,"");position:fixed;left:0;right:0;top:calc(50% + 70px);z-index:2147482999;text-align:center;font:500 clamp(30px,4vw,46px)/1.1 'Alegreya',serif;color:#1E2640;pointer-events:none}

/* Phone header: the sticky bar wrapped to three rows (172 to 215px, a quarter of the screen). Below 720px
   it is two short rows instead: logo, call and sound on top, then the menu on one line that scrolls
   sideways if it runs out of room. The rune line under the name is decorative and hidden here. */
@media (max-width:720px){
  [data-sticky] > div{padding:6px 0!important;gap:2px 12px!important}
  [data-sticky] nav{order:3;flex:1 0 100%;flex-wrap:nowrap!important;gap:0 20px!important;overflow-x:auto;padding:2px 4px 4px;margin:0 -4px;scrollbar-width:none}
  [data-sticky] nav::-webkit-scrollbar{display:none}
  [data-sticky] nav a{flex:none;white-space:nowrap}
  [data-sticky] [data-plain]{display:none!important}
  /* The full number does not fit beside the logo, so the button reads "Call" here. Its accessible name
     stays "Call (336) 560-3255", and the number is still shown in the hero and the contact section. */
  [data-sticky] a[href^="tel:"]{font-size:0!important;padding:0 16px!important}
  [data-sticky] a[href^="tel:"]::before{content:"Call" / "";font-size:16px}
}
