:root {
  --ink: #542811;
  --ink-soft: #70472e;
  --copper: #9d481f;
  --copper-dark: #7b3414;
  --paper: #fffdf9;
  --line: rgba(117, 65, 34, .62);
  --hero-image: url("assets/bc-lake.jpg?v=20261015-candidate");
  --hero-position: center 43%;
  --hero-position-mobile: 57% 43%;
}

.theme-mountain { --hero-image: url("assets/misty-lake.jpg?v=20261015-mountain-top"); }
.theme-forest { --hero-image: url("assets/westcoast-forest.jpg?v=20261015-candidate"); --hero-position: center 50%; --hero-position-mobile: center 50%; }
.theme-bc-lake { --hero-image: url("assets/bc-lake.jpg?v=20261015-candidate"); }
.theme-roots { --hero-image: url("assets/mossy-roots.jpg?v=20261015-candidate"); --hero-position: center 57%; --hero-position-mobile: center 54%; }
.theme-island-lake { --hero-image: url("assets/vancouver-island-lake.jpg?v=20261015-candidate"); --hero-position: center 48%; --hero-position-mobile: center 48%; }

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #d7d0c4; }

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  background: #d7d0c4 var(--hero-image) var(--hero-position) / cover no-repeat;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(255,255,255,.08);
}

.hero__wash {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,.68), transparent 32%), linear-gradient(90deg, rgba(255,255,255,.14), transparent 26% 74%, rgba(255,255,255,.11));
}

.hero__content {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: start;
  width: min(100% - 2rem, 900px);
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 5.3rem) 0 6.5rem;
  text-align: center;
}

.hero__content::before {
  position: absolute;
  z-index: -1;
  inset: clamp(1rem, 3vw, 2rem) clamp(-2.4rem, -5vw, -1rem) clamp(1.25rem, 3vw, 2rem);
  content: "";
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255,255,253,.56), rgba(255,253,248,.45) 72%, rgba(255,251,245,.34));
  box-shadow: 0 .8rem 2.6rem rgba(54,39,25,.11);
  backdrop-filter: blur(3px);
}

.brand { position: relative; display: grid; place-items: center; min-height: clamp(6.4rem, 11vw, 8.3rem); margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.brand__key { position: absolute; z-index: -1; width: clamp(16rem, 31vw, 24rem); margin: 0; opacity: .27; pointer-events: none; filter: invert(72%) sepia(8%) saturate(154%) hue-rotate(354deg) brightness(91%) contrast(87%) drop-shadow(1px 1px 0 rgba(73, 54, 41, .25)); transform: translate(-3%, 5%) rotate(-13deg); }
.brand__words { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .1em .22em; max-width: 6.7em; padding-top: .65rem; font-size: clamp(2.5rem, 6.6vw, 4.45rem); line-height: .77; color: #813608; letter-spacing: .02em; text-shadow: 1px 1px 1px rgba(255,255,255,.9), 2px 3px 3px rgba(58,30,12,.28); }
.brand__words strong { font-size: 1.35em; font-weight: 400; }

.intro { width: 100%; }
.rule-heading { display: grid; grid-template-columns: minmax(1rem, 1fr) auto minmax(1rem, 1fr); align-items: center; gap: clamp(.7rem, 2vw, 1.55rem); }
.rule-heading span { height: 1px; background: var(--line); }
h1 { max-width: 19ch; margin: 0; color: var(--copper); font-size: clamp(1.72rem, 4.2vw, 2.55rem); font-weight: 400; line-height: 1.08; }
.tagline { margin: .26rem 0 0; color: #573d31; font-size: clamp(1.03rem, 2.3vw, 1.3rem); font-style: italic; line-height: 1.3; }

.contact { margin-top: clamp(2.7rem, 6vw, 4.1rem); }
.contact > p:first-child { margin: 0 0 .52rem; color: #4d3b35; font-size: clamp(.96rem, 2vw, 1.1rem); line-height: 1.27; }
h2 { margin: 0; color: var(--copper); font-size: clamp(1.48rem, 3.2vw, 2rem); font-weight: 400; line-height: 1.15; }
.company { margin: .18rem 0 .7rem; color: #51372a; font-size: clamp(.95rem, 2vw, 1.13rem); }
.email { display: inline-flex; align-items: center; justify-content: center; gap: .8rem; min-height: 2.6rem; max-width: 100%; padding: .62rem 1.05rem; border: 1px solid rgba(95,39,12,.32); border-radius: .68rem; background: linear-gradient(#aa572b, #8e3e18); box-shadow: 0 .18rem .38rem rgba(69,35,14,.25), inset 0 1px rgba(255,255,255,.18); color: var(--paper); font-size: clamp(.78rem, 1.9vw, 1rem); line-height: 1.2; text-decoration: none; text-shadow: 0 1px rgba(66,24,4,.48); transition: transform .18s ease, background .18s ease, box-shadow .18s ease; }
.email:hover { background: linear-gradient(#bd6333, #963e16); transform: translateY(-2px); box-shadow: 0 .35rem .65rem rgba(69,35,14,.29), inset 0 1px rgba(255,255,255,.22); }
.email:focus-visible { outline: 3px solid #213e51; outline-offset: 4px; }
.email svg { width: 1.38rem; height: 1.38rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }

.experience { align-self: end; justify-self: center; margin: 0 1rem clamp(1.5rem, 4vw, 2.6rem); padding: .28rem .8rem; border: 1px solid rgba(255,255,255,.34); border-radius: .5rem; background: rgba(255,253,248,.67); box-shadow: 0 .2rem .7rem rgba(54,39,25,.10); color: #3e281c; font-size: clamp(.82rem, 1.7vw, 1rem); font-style: italic; line-height: 1.35; text-align: center; text-shadow: 0 1px 1px rgba(255,255,255,.75); }

@media (max-width: 520px) {
  .hero { display: flex; flex-direction: column; background-position: var(--hero-position-mobile); }
  .hero::before { background: rgba(255,255,255,.08); }
  .hero__content { width: min(100% - 1.5rem, 31rem); padding: 2.5rem 0 1.65rem; }
  .hero__content::before { inset: .85rem -.15rem .8rem; border-radius: 1.15rem; background: linear-gradient(180deg, rgba(255,255,253,.63), rgba(255,253,248,.53) 74%, rgba(255,251,245,.39)); }
  .brand { min-height: 6.4rem; margin-bottom: 2.65rem; }
  .brand__key { width: 15rem; transform: translate(-3%, 5%) rotate(-13deg); }
  .brand__words { max-width: 7em; }
  .rule-heading { grid-template-columns: minmax(1rem, 1fr) auto minmax(1rem, 1fr); gap: .55rem; }
  .rule-heading span { width: auto; }
  .contact { margin-top: 2.45rem; }
  .email { padding-inline: .82rem; }
  .experience { align-self: center; margin: .9rem 1rem 0; }
  .experience span { display: block; }
}

@media (prefers-reduced-motion: reduce) { .email { transition: none; } }
