/* englandmason.com: a clean rebuild of the "Slanted" WordPress theme look */

@font-face { font-family: "Roboto"; src: url("../fonts/roboto-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("../fonts/roboto-700.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --plum: #47042b;
  --text: #555;
  --heading: #555;
  --rule: #eee;
  --col: 660px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--text); font: 400 18px/1.6 "Roboto", Arial, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #c48aa9; outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--plum); color: #fff; }
strong { font-weight: 600; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 8px 12px; }

/* ---------- header with the slanted bottom edge ---------- */
.header { background: var(--plum); position: relative; }
.slants { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.header-inner { max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 40px 20px 200px; position: relative; z-index: 2; }
.name { display: block; width: 655px; max-width: 100%; margin: 0 auto 12px; }
.nav { border-top: 2px solid rgba(255, 255, 255, .2); padding: 8px 0 20px; text-align: center; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.nav li { margin-top: 16px; }
.nav a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 8px 14px;
  line-height: 1.4;
}
.nav a:hover { color: #fff; text-decoration: none; border-color: rgba(255, 255, 255, .2); }
.nav a[aria-current="page"] { background: #fff; border-color: #fff; color: #555; }

.slant-left, .slant-right { background: #fff; width: 101%; position: absolute; bottom: -26px; height: 200px; z-index: 1; }
.slant-left { right: 48%; transform: rotate(10deg); }
.slant-right { left: 48%; transform: rotate(-10deg); }
.avatar {
  position: absolute; z-index: 3; left: 50%; bottom: -50px;
  width: 240px; height: 240px; margin-left: -120px;
  background: #fff; padding: 10px; border-radius: 50%;
}
.avatar img { border-radius: 50%; width: 220px; height: 220px; }
.header-space { height: 74px; }

/* ---------- page title and content ---------- */
.page-title { border-top: 1px solid var(--rule); text-align: center; margin-top: 46px; }
.page-title h1 {
  display: inline-block; position: relative; top: -20px; margin: 0; padding: 0 20px; background: #fff;
  font-size: 22px; line-height: 30px; font-weight: 600; text-transform: uppercase; color: var(--heading);
}
.entry { max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 30px 20px 50px; }
.entry p { margin: 0 0 1em; }
.entry h2 { font-size: 34px; line-height: 1.3; font-weight: 400; color: var(--heading); margin: 0 0 .5em; }
.entry h2 + p { margin-top: 0; }
.ext { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.ext svg { width: 13px; height: 13px; fill: currentColor; }
.links p { margin-bottom: .9em; }
.spacer { height: 24px; }
.center { text-align: center; }
.icons { display: flex; justify-content: center; gap: 0; margin: 18px 0; }
.icons a { padding: 12px; }
.icons img { width: 48px; height: 48px; }
.columns { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; margin-top: 18px; }
.columns iframe { width: 100%; height: 320px; border: 0; }
@media (max-width: 700px) { .columns { grid-template-columns: 1fr; } }
.video { aspect-ratio: 16 / 9; margin: 0 0 32px; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- footer ---------- */
.footer { background: var(--plum); position: relative; margin-top: 20px; }
.to-top {
  position: absolute; left: 50%; top: 0; margin-left: -40px; width: 80px; height: 30px;
  background: #fff; border-radius: 0 0 4px 4px; display: grid; place-items: center;
}
.to-top svg { width: 22px; height: 22px; fill: #777; }
.footer-inner { max-width: calc(var(--col) + 40px); margin: 0 auto; padding: 40px 20px 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.footer p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.5; font-weight: 400; max-width: 320px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social a { display: block; color: rgba(255, 255, 255, .75); }
.social a:hover { color: #fff; }
.social svg { width: 26px; height: 26px; fill: currentColor; display: block; }
@media (max-width: 560px) { .footer-inner { flex-direction: column; text-align: center; } }

@media (max-width: 720px) {
  .header-inner { padding-top: 24px; padding-bottom: 170px; }
  .avatar { width: 200px; height: 200px; margin-left: -100px; }
  .avatar img { width: 180px; height: 180px; }
  .entry h2 { font-size: 28px; }
}
