@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("fonts/NotoSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f2ed;
  --ink: #1c2430;
  --ink-soft: #3e4856;
  --spruce: #1f4d3a;
  --spruce-deep: #16382b;
  --cream: #f7f3eb;
  --wheat: #c4a15a;
  --line: #d9d2c5;
  --measure: 38rem;
  --wide: 50rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-size: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans", "Liberation Sans", sans-serif;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.55;
}

::selection {
  background: #d5e4da;
}

:focus-visible {
  outline: 2px solid var(--spruce);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  z-index: 2;
}

.skip:focus {
  top: 0.5rem;
}

.wrap {
  width: min(var(--wide), calc(100% - 2rem));
  margin-inline: auto;
}

.brand-edge {
  height: 0.4rem;
  background: var(--spruce);
}

.mast {
  display: grid;
  grid-template-columns: 1fr 7.5rem;
  gap: 1rem 1.1rem;
  align-items: end;
  padding-top: 1.75rem;
}

.kicker {
  margin: 0;
  color: var(--spruce);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker-sub {
  display: block;
  margin-top: 0.22rem;
  white-space: nowrap;
}

h1 {
  margin: 0.35rem 0 0;
  font-size: clamp(2.7rem, 11vw, 5.15rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-wrap: balance;
}

.role {
  margin: 0.85rem 0 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.35;
}

.portrait {
  position: relative;
  margin: 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-top: 4px solid var(--wheat);
  background: var(--spruce-deep);
}

.lede {
  max-width: var(--measure);
  margin: 1.6rem 0 0;
  font-size: 1.28rem;
  line-height: 1.4;
  text-wrap: balance;
}

.term {
  max-width: var(--measure);
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
}

.bio p {
  max-width: var(--measure);
  margin: 0.7rem 0 0;
}

main section {
  margin-top: 2.6rem;
}

h2 {
  margin: 0;
  color: var(--spruce);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.priorities {
  max-width: 40rem;
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

.priority {
  padding: 1.1rem 0 1.1rem 1.25rem;
  border-top: 1px solid var(--line);
}

.priority:last-child {
  border-bottom: 1px solid var(--line);
}

h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.priority p {
  margin: 0;
}

.panel {
  padding: 1.35rem 1.25rem 1.25rem;
  border-top: 4px solid var(--wheat);
  background: var(--spruce);
  color: var(--cream);
}

.panel h2 {
  color: #e4d3b0;
}

.panel-lead {
  margin: 0.7rem 0 0;
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  text-wrap: balance;
}

.panel p {
  max-width: 36rem;
}

.panel .hours,
.panel .oath {
  margin: 0.8rem 0 0;
}

.office {
  margin: 1rem 0 0;
  line-height: 1.45;
}

.panel a {
  color: var(--cream);
}

.panel :focus-visible {
  outline-color: var(--cream);
}

.email {
  margin: 0.7rem 0 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.email a {
  color: var(--spruce);
  text-underline-offset: 0.18em;
}

footer {
  margin-top: 3rem;
  padding-bottom: 2.5rem;
}

.footer-inner {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0.2rem 0;
}

.domain {
  margin-top: 0.7rem;
  color: var(--spruce);
  font-weight: 500;
}

@media (min-width: 760px) {
  .wrap {
    width: min(var(--wide), calc(100% - 3rem));
  }

  .mast {
    grid-template-columns: 1fr 12.5rem;
    gap: 2rem;
    align-items: center;
    padding-top: 2.4rem;
  }

  .panel {
    padding: 1.6rem 1.6rem 1.45rem;
  }
}

@media print {
  .skip {
    display: none;
  }

  .panel {
    background: white;
    color: black;
    border: 1px solid black;
  }

  .panel h2,
  .panel a {
    color: black;
  }
}

/* 2026-10-27: role line is forced to "Acclaimed to" / "Sexsmith Town Council" (non-breaking).
   On very narrow phones, shrink the photo column and role text a little so it still fits. */
@media (max-width: 374px) {
  .mast {
    grid-template-columns: 1fr 6.25rem;
    gap: 1rem 0.9rem;
  }

  .role {
    font-size: 1rem;
  }
}
