@import url("assets/editorial/baskervville.css");
@import url("assets/fonts.css");

:root {
  color-scheme: light;
  --ed-paper: #f8f5ee;
  --ed-ink: #283027;
  --ed-muted: #575e51;
  --ed-accent: #8b4838;
  --ed-line: #d5cfc1;
  --ed-dark: #242f29;
  --ed-page: 81rem;
  --ed-gutter: clamp(1.25rem, 5.2vw, 5rem);
  --ed-display: Baskervville, Georgia, serif;
  --ed-sans: Manrope, "Segoe UI", sans-serif;
  --serif: var(--ed-display);
  --sans: var(--ed-sans);
  --paper: var(--ed-paper);
  --deep: var(--ed-dark);
  --ink: var(--ed-ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 6.45rem; }
body {
  margin: 0;
  background: var(--ed-paper);
  color: var(--ed-ink);
  font: 400 1rem/1.68 var(--ed-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 {
  font-family: var(--ed-display);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.13;
}
h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.55rem, 2.7vw, 2.4rem); }
em { font-family: var(--ed-display); }
:is(h1, h2, h3) em {
  font-family: inherit;
  font-style: inherit;
  font-weight: inherit;
}
a { color: inherit; text-underline-offset: .24em; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
figure img { height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ed-accent); outline-offset: 5px; }
::selection { background: #e1cfb7; color: var(--ed-ink); }

.ed-container {
  width: min(calc(100% - var(--ed-gutter) * 2), var(--ed-page));
  margin-inline: auto;
}

.ed-skip, .ed-page .skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  padding: .7rem 1rem;
  transform: translateY(-150%);
  background: var(--ed-paper);
}
.ed-skip:focus, .ed-page .skip-link:focus { transform: none; }

.ed-header {
  position: sticky;
  z-index: 45;
  top: 0;
  min-height: 5.2rem;
  border-bottom: 1px solid var(--ed-line);
  background: var(--ed-paper);
  color: var(--ed-ink);
}
.ed-header:has(> .ed-brand),
.ed-header-inner,
.ed-header .service-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 2rem;
  min-height: 5.2rem;
}
.ed-header:has(> .ed-brand) { padding-inline: max(var(--ed-gutter), (100% - var(--ed-page)) / 2); }
.ed-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: .72rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.ed-brand img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
}
.ed-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem clamp(.75rem, 1.65vw, 1.75rem); }
.ed-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.65rem;
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ed-nav a:hover, .ed-nav a[aria-current="page"] { text-decoration: underline; color: var(--ed-accent); }
.ed-nav a:last-child {
  padding: .3rem .95rem;
  border: 1px solid var(--ed-line);
  text-decoration: none;
}
.ed-nav a:last-child:hover { border-color: var(--ed-accent); }

:is(.ed-masthead, .mag-cover) {
  position: relative;
  isolation: isolate;
}

:is(.ed-masthead, .mag-cover)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/rodem-r-transparent.png") 95% center / clamp(16rem, 30vw, 29rem) no-repeat;
  opacity: .13;
  pointer-events: none;
  content: "";
}

.ed-masthead { padding-block: clamp(3.25rem, 8vw, 7rem) clamp(1.6rem, 4vw, 3.4rem); }
.ed-masthead h1 {
  max-width: 20ch;
  margin-block: .7rem .95rem;
  font-size: clamp(2.8rem, 6.3vw, 6rem);
  text-wrap: balance;
}
.ed-masthead h1 em, .ed-section h2 em { color: var(--ed-accent); }
.ed-eyebrow {
  color: var(--ed-accent);
  font: 600 .875rem/1.55 var(--ed-sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.ed-lead {
  max-width: 61ch;
  color: var(--ed-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.68;
}
.ed-feature img {
  width: 100%;
  max-height: 47rem;
  aspect-ratio: 15 / 8;
  object-fit: cover;
  background: #e0d9cb;
}
.ed-feature figcaption { padding-top: .55rem; color: var(--ed-muted); font-size: .875rem; }
.ed-section { padding-block: clamp(2.85rem, 6.4vw, 5.6rem); }
.ed-section > h2 { margin-bottom: 1.35rem; }
.ed-section .ed-eyebrow + h2 { margin-top: .45rem; }
.ed-columns {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(1.6rem, 6vw, 6rem);
}
.ed-copy > * + * { margin-top: .85rem; }
.ed-copy p:not(.ed-eyebrow) { max-width: 68ch; }
.ed-copy a:hover, .ed-footer a:hover { color: var(--ed-accent); }
.ed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1.25rem, 3.3vw, 3rem);
}
.ed-card { min-width: 0; }
.ed-card > .ed-copy { border-top: 1px solid var(--ed-line); padding-top: 1rem; }
.ed-card img { width: 100%; height: auto; }
.ed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 3rem;
  max-width: 100%;
  padding: .7rem 1.15rem;
  background: var(--ed-accent);
  color: #fffaf0;
  font: 600 .9rem/1.45 var(--ed-sans);
  text-decoration: none;
}
.ed-button:hover { background: #70382b; color: #fffaf0; }
.ed-text-link { font-weight: 600; text-decoration: underline; }
.ed-text-link:hover { color: var(--ed-accent); }
.ed-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.35rem 3rem;
  margin-block: 2.15rem 3.4rem;
  padding: clamp(1.45rem, 4.1vw, 3.6rem);
  border: 1px solid var(--ed-line);
  background: #ece6d8;
}
.ed-cta h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
.ed-cta p { max-width: 60ch; margin-top: .65rem; color: var(--ed-muted); }
.ed-cta .ed-button { flex: none; }
.ed-stats {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .9rem clamp(1.5rem, 5vw, 4.5rem);
  padding: 0;
  margin: 1.6rem 0 0;
  list-style: none;
}
.ed-stats li { display: flex; flex-direction: column; gap: .12rem; }
.ed-stats strong {
  color: var(--ed-accent);
  font: 400 clamp(1.85rem, 4vw, 3.6rem)/1.06 var(--ed-display);
  letter-spacing: -.04em;
}
.ed-stats span { color: var(--ed-muted); font-size: .9rem; }
.ed-footer {
  padding-block: 1.7rem;
  border-top: 1px solid var(--ed-line);
  font-size: .9rem;
}
.ed-footer:has(> a) {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: max(var(--ed-gutter), (100% - var(--ed-page)) / 2);
}
.ed-footer nav { display: flex; flex-wrap: wrap; gap: .7rem 1.35rem; }
.ed-footer a { text-decoration: none; }
.ed-footer a:hover { text-decoration: underline; }

@media (max-width: 830px) {
  html { scroll-padding-top: 9rem; }
  .ed-header:has(> .ed-brand), .ed-header-inner, .ed-header .service-header-inner {
    flex-wrap: wrap;
    padding-block: .8rem;
  }
  .ed-nav { gap: .15rem .85rem; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 10rem; }
  .ed-header .ed-nav { width: 100%; }
  .ed-nav a { min-height: 2.35rem; }
  .ed-nav a:last-child { padding-inline: .6rem; }
  .ed-columns { grid-template-columns: minmax(0, 1fr); }
  .ed-cta { align-items: flex-start; flex-direction: column; }
  .ed-feature img { aspect-ratio: 5 / 4; }
  .ed-masthead::before {
    background-position: right -.75rem top .7rem;
    background-size: clamp(12rem, 55vw, 18rem);
    opacity: .11;
  }
}
