@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,300italic,400,400italic,600,600italic,700,700italic");

:root {
  --green: #4eb980;
  --green-dark: #3aa16b;
  --text: #6e6e6e;
  --heading: #5b5b5b;
  --line: rgba(224, 224, 224, 0.78);
  --soft: #f7f7f7;
  --gold: #b9872e;
  --missing: #91897d;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body,
input,
select,
textarea,
button {
  color: var(--text);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 16pt;
  font-weight: 400;
  line-height: 1.75em;
}

body {
  background: #fff;
  -webkit-text-size-adjust: none;
}

body::before {
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(224, 224, 224, 0.38) calc(50% - 1px), rgba(224, 224, 224, 0.38) 50%, transparent 50%),
    linear-gradient(#fff, #f8f8f8);
  content: "";
  height: 100%;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: -2;
}

a {
  border-bottom: dotted 1px;
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease-in-out, border-bottom-color 0.2s ease-in-out, background 0.2s ease-in-out;
}

a:hover,
a:focus-visible {
  border-bottom-color: transparent;
  color: var(--green-dark);
  outline: none;
}

h1,
h2,
h3 {
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0.125em;
  line-height: 1.75em;
  margin: 0 0 1em;
  text-align: center;
  text-transform: uppercase;
}

h2 {
  font-size: 1.75em;
}

p,
table {
  margin: 0 0 2em;
}

strong,
b {
  color: var(--heading);
  font-weight: 600;
}

.container {
  margin: 0 auto;
  max-width: 100%;
  width: 51em;
}

.container.medium {
  width: 38.25em;
}

#header {
  background:
    linear-gradient(rgba(45, 38, 48, 0.68), rgba(45, 38, 48, 0.72)),
    url("https://html5up.net/uploads/demos/directive/assets/css/images/overlay.png"),
    url("./assets/baby-name-hero.png");
  background-attachment: scroll, scroll, fixed;
  background-position: center center, top left, center center;
  background-repeat: no-repeat, repeat, no-repeat;
  background-size: cover, auto, cover;
  color: rgba(255, 255, 255, 0.82);
  overflow: hidden;
  min-height: 720px;
  padding: 8.25em 1.5em 13.5em;
  position: relative;
  text-align: center;
}

#header::before {
  background: rgba(224, 224, 224, 0.32);
  content: "";
  height: calc(100% - 4em);
  left: 50%;
  opacity: 0.55;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: 0;
}

#header::after {
  background: #fff;
  bottom: -1px;
  clip-path: polygon(0 38%, 50% 100%, 100% 38%, 100% 100%, 0 100%);
  content: "";
  height: 11em;
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

#header .logo {
  align-items: center;
  background:
    url("./assets/site-logo-hero.png") center 52% / contain no-repeat;
  border-radius: 100%;
  color: transparent;
  display: inline-flex;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 1.5em 4em rgba(0, 0, 0, 0.26);
  font-size: 2.15em;
  font-weight: 700;
  height: 2.55em;
  justify-content: center;
  line-height: 2.55em;
  margin: 0 0 1.15em;
  position: relative;
  text-indent: -9999px;
  width: 2.55em;
  z-index: 2;
}

#header h1 {
  color: #fff;
  font-size: 2.5em;
  letter-spacing: 0.22em;
  line-height: 1.55em;
  margin: 0;
  position: relative;
  z-index: 2;
}

#header p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.5em;
  line-height: 1.5em;
  margin: 0.25em auto 0;
  max-width: 32em;
  position: relative;
  z-index: 2;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  margin-top: 2em;
  position: relative;
  z-index: 2;
}

#main {
  padding: 2.25em 0 5em;
  position: relative;
  z-index: 1;
}

#main::before {
  background: var(--line);
  content: "";
  height: 100%;
  left: 50%;
  position: absolute;
  top: 0;
  width: 1px;
  z-index: -1;
}

header {
  text-align: center;
}

header p {
  color: #888;
  letter-spacing: 0.075em;
  position: relative;
  text-transform: uppercase;
  top: -1em;
}

header.major,
footer.major {
  background: #fff;
  border-color: var(--line);
  border-style: solid;
  border-width: 1px 0;
  margin-bottom: 5.5em;
  padding: 4em 0;
  position: relative;
  text-align: center;
}

footer.major {
  margin: 6em auto 0;
}

header.major::before,
header.major::after,
footer.major::before,
footer.major::after {
  background: var(--line);
  content: "";
  display: block;
  height: 1px;
  left: 0;
  position: absolute;
  width: 100%;
}

header.major::before,
footer.major::before {
  top: 10px;
}

header.major::after,
footer.major::after {
  bottom: 10px;
}

header.major h2,
footer.major h2 {
  margin: 0;
}

header.major p,
footer.major p {
  border-top: solid 1px var(--line);
  display: inline-block;
  font-size: 1.5em;
  line-height: 1.75em;
  margin: 1.5em 0 0;
  padding: 1.5em 1.5em 0;
  position: static;
  text-transform: none;
}

#header p {
  letter-spacing: 0;
  text-transform: none;
  top: auto;
}

.box {
  background: #fff;
  border: solid 1px var(--line);
  box-shadow: 0 2em 6em rgba(0, 0, 0, 0.045);
  margin-bottom: 6em;
  padding: 3.5em;
}

.box.feature {
  align-items: stretch;
  display: block;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.profile-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.box.feature .feature-visual {
  align-items: center;
  background:
    linear-gradient(rgba(76, 72, 86, 0.4), rgba(76, 72, 86, 0.4)),
    url("https://html5up.net/uploads/demos/directive/images/pic01.jpg") center center / cover;
  display: flex;
  justify-content: center;
  min-height: 22em;
}

.box.feature .browse-visual,
.box.feature:nth-of-type(3) .feature-visual {
  background:
    linear-gradient(rgba(76, 72, 86, 0.4), rgba(76, 72, 86, 0.4)),
    url("https://html5up.net/uploads/demos/directive/images/pic02.jpg") center center / cover;
}

.box.feature .alice-visual {
  background:
    linear-gradient(rgba(76, 72, 86, 0.45), rgba(76, 72, 86, 0.45)),
    url("https://html5up.net/uploads/demos/directive/images/pic03.jpg") center center / cover;
}

.box.feature .profile-visual-01 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-01.png"); }
.box.feature .profile-visual-02 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-02.png"); }
.box.feature .profile-visual-03 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-03.png"); }
.box.feature .profile-visual-04 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-04.png"); }
.box.feature .profile-visual-05 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-05.png"); }
.box.feature .profile-visual-06 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-06.png"); }
.box.feature .profile-visual-07 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-07.png"); }
.box.feature .profile-visual-08 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-08.png"); }
.box.feature .profile-visual-09 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-09.png"); }
.box.feature .profile-visual-10 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-10.png"); }
.box.feature .profile-visual-11 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-11.png"); }
.box.feature .profile-visual-12 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-12.png"); }
.box.feature .profile-visual-13 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-13.png"); }
.box.feature .profile-visual-14 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-14.png"); }
.box.feature .profile-visual-15 { background-image: linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)), url("./assets/profile-images/profile-15.png"); }

.box.feature .similar-visual {
  background:
    linear-gradient(rgba(76, 72, 86, 0.42), rgba(76, 72, 86, 0.42)),
    url("https://html5up.net/uploads/demos/directive/images/pic04.jpg") center center / cover;
}

.similar-feature {
  background:
    linear-gradient(135deg, rgba(78, 185, 128, 0.06), transparent 34%),
    #fff;
  display: block;
}

.similar-names {
  margin: 0 auto;
  max-width: 48em;
  text-align: center;
}

.similar-names h2,
.similar-names p {
  text-align: center;
}

.similar-names .seo-links {
  justify-content: center;
}

.box.feature .feature-content {
  padding: 3.5em;
}

.search-feature,
.browse-feature {
  background:
    linear-gradient(135deg, rgba(78, 185, 128, 0.06), transparent 34%),
    #fff;
}

.search-feature .feature-content,
.browse-feature .feature-content {
  margin: 0 auto;
  max-width: 42em;
}

.box.feature .feature-content header {
  margin-bottom: 1.75em;
}

.box.feature .feature-content header h2 {
  text-align: left;
}

.box.feature .feature-content header p {
  text-align: left;
}

.box > header {
  margin-bottom: 2em;
}

.button,
.seo-links a,
.popular-pages a,
.seo-link {
  appearance: none;
  background: var(--green);
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--green);
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  height: 3em;
  letter-spacing: 0.125em;
  line-height: 3em;
  padding: 0 1.5em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.button:hover,
.seo-links a:hover,
.popular-pages a:hover,
.seo-link:hover,
.button:focus-visible,
.seo-links a:focus-visible,
.popular-pages a:focus-visible,
.seo-link:focus-visible {
  background: #5fc68d;
  color: #fff;
}

.button.alt,
.seo-link:not(.primary-link) {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--heading);
}

.button.alt:hover,
.seo-link:not(.primary-link):hover {
  background: rgba(224, 224, 224, 0.16);
  color: var(--heading);
}

.search-hero {
  display: grid;
  gap: 1em;
  grid-template-columns: minmax(0, 1fr) 12.5em;
  margin-bottom: 1em;
}

input,
select {
  appearance: none;
  background: none;
  border: solid 1px var(--line);
  border-radius: 4px;
  color: var(--heading);
  display: block;
  height: 3em;
  outline: 0;
  padding: 0 1em;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
  width: 100%;
}

input:focus,
select:focus {
  background: rgba(224, 224, 224, 0.12);
  border-color: var(--green);
}

.search-hero input {
  font-size: 1.25em;
  font-weight: 700;
  height: 3.1em;
}

.auto-sex {
  align-items: center;
  background: rgba(78, 185, 128, 0.08);
  border: solid 1px rgba(78, 185, 128, 0.35);
  border-radius: 4px;
  color: var(--heading);
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  justify-content: center;
  min-height: 3.875em;
  padding: 0.55em;
}

.auto-sex span {
  color: #888;
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.125em;
  line-height: 1;
  text-transform: uppercase;
}

.auto-sex:not(.is-comparison) span {
  color: var(--heading);
  font-size: 1.25em;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}

.search-sex-toggle {
  display: none;
  gap: 0.35em;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.auto-sex.is-comparison .search-sex-toggle {
  display: grid;
}

.search-sex-toggle button {
  appearance: none;
  background: #fff;
  border: solid 1px rgba(78, 185, 128, 0.35);
  border-radius: 4px;
  color: var(--heading);
  cursor: pointer;
  font: inherit;
  font-size: 0.9em;
  font-weight: 700;
  min-height: 2.25em;
  padding: 0 0.5em;
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.search-sex-toggle button.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.search-sex-toggle button:disabled {
  cursor: default;
  opacity: 0.45;
}

.search-summary {
  color: var(--heading);
  font-weight: 600;
  min-height: 2em;
  text-align: center;
}

.stats,
.year-cards,
.glance-grid {
  display: grid;
  gap: 1em;
}

.stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 1.5em 0 0;
}

.glance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat,
.year-card,
.glance-card {
  background: var(--soft);
  border: solid 1px var(--line);
  border-radius: 4px;
  min-height: 4.5em;
  padding: 1em;
  text-decoration: none;
}

.stat:hover,
.year-card:hover,
.glance-card:hover {
  background: #fff;
}

.stat span,
.year-card span,
.glance-card span,
.eyebrow {
  color: #888;
  display: block;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.125em;
  line-height: 1.5em;
  text-transform: uppercase;
}

.stat b,
.year-card b,
.glance-card b {
  color: var(--heading);
  display: block;
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.25em;
  margin-top: 0.2em;
}

.stat-link span {
  color: var(--green);
}

.stat-link em {
  color: var(--green);
  font-style: normal;
}

.chart-card {
  background: var(--soft);
  border: solid 1px var(--line);
  border-radius: 4px;
  margin: 0 0 1em;
  overflow: visible;
  position: relative;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  padding: 1em 1.25em 0;
}

.chart-title span,
.chart-title small {
  color: #888;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.125em;
  text-transform: uppercase;
}

canvas {
  display: block;
  height: clamp(260px, 26vw, 360px);
  width: 100%;
}

.chart-tooltip {
  background: var(--heading);
  border-radius: 4px;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
  opacity: 0;
  padding: 0.4em 0.65em;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  transition: opacity 120ms ease;
  white-space: nowrap;
  z-index: 3;
}

.chart-tooltip.is-visible {
  opacity: 1;
}

.chart-tooltip.is-below {
  transform: translate(-50%, 12px);
}

.year-cards {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.year-card span {
  color: var(--gold);
}

.year-card.is-missing b,
.missing {
  color: var(--missing);
}

.section-divider {
  background:
    linear-gradient(90deg, transparent, rgba(78, 185, 128, 0.42), rgba(167, 119, 24, 0.32), transparent);
  height: 4px;
  margin: -0.75em auto 4.5em;
  position: relative;
}

.section-divider::before {
  background:
    linear-gradient(135deg, rgba(78, 185, 128, 0.09), rgba(167, 119, 24, 0.07));
  border-bottom: solid 1px rgba(78, 185, 128, 0.2);
  border-top: solid 1px rgba(167, 119, 24, 0.14);
  clip-path: polygon(0 0, 50% 100%, 100% 0, 100% 62%, 50% 100%, 0 62%);
  content: "";
  height: 3.5em;
  left: 50%;
  position: absolute;
  top: -1.75em;
  transform: translateX(-50%);
  width: min(28em, 72vw);
}

.section-divider::after {
  background: #fff;
  border-left: solid 1px rgba(78, 185, 128, 0.2);
  border-top: solid 1px rgba(167, 119, 24, 0.14);
  content: "";
  height: 1.5em;
  left: 50%;
  position: absolute;
  top: -0.75em;
  transform: translateX(-50%) rotate(45deg);
  width: 1.5em;
}

.controls {
  display: grid;
  gap: 1em;
  grid-template-columns: 1fr;
  margin: 0;
}

label {
  color: var(--heading);
  display: block;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.125em;
  line-height: 1.75em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}

.panel-heading {
  align-items: center;
  border-bottom: solid 1px var(--line);
  display: flex;
  justify-content: space-between;
  margin: 0 0 1.5em;
  padding: 0 0 1.5em;
}

.panel-heading h2 {
  font-size: 1.1em;
  margin: 0;
  text-align: left;
}

.pill {
  background: rgba(78, 185, 128, 0.12);
  border-radius: 4px;
  color: var(--green);
  display: inline-block;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.075em;
  padding: 0.25em 0.75em;
  text-transform: uppercase;
}

.table-wrap {
  border: solid 1px var(--line);
  border-radius: 4px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  margin: 0;
  width: 100%;
}

th,
td {
  border-bottom: solid 1px var(--line);
  padding: 0.9em 1em;
  text-align: left;
  white-space: nowrap;
}

th {
  background: var(--soft);
  color: var(--heading);
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.125em;
  text-transform: uppercase;
}

td:first-child,
th:first-child {
  color: var(--gold);
  font-weight: 700;
  width: 6em;
}

td:nth-child(2) {
  color: var(--heading);
  font-weight: 600;
}

tbody tr:hover {
  background: rgba(78, 185, 128, 0.06);
}

.name-link {
  background: transparent;
  border: 0;
  color: var(--green);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.name-link:hover,
.name-link:focus-visible {
  color: var(--green-dark);
  outline: none;
}

.seo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  justify-content: center;
  margin-top: 1.5em;
}

.compact-link-panel {
  padding-bottom: 2.75em;
  padding-top: 2.75em;
}

.rank-unlisted {
  color: rgba(80, 76, 87, 0.62);
  font-weight: 600;
}

.unlisted-row td {
  background: rgba(246, 242, 235, 0.42);
}

.discovery-list {
  padding: 2.5em;
}

.watchlist-note {
  background: linear-gradient(135deg, rgba(78, 185, 128, 0.1), rgba(176, 119, 32, 0.08)), #fff;
  border: solid 1px var(--line);
  color: rgba(80, 76, 87, 0.78);
  margin: 0 auto 2.75em;
  max-width: 52em;
  padding: 1.25em 1.5em;
  text-align: center;
}

.watchlist-note strong {
  color: var(--green-dark);
  display: block;
  font-family: var(--font-heading);
  letter-spacing: 0.075em;
  margin-bottom: 0.35em;
  text-transform: uppercase;
}

.discovery-section-header {
  margin: 0 auto 2em;
  max-width: 44em;
  text-align: center;
}

.discovery-section-header:not(:first-child) {
  margin-top: 3.25em;
}

.discovery-section-header h3 {
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: 1.35em;
  letter-spacing: 0.18em;
  margin: 0 0 0.75em;
  text-transform: uppercase;
}

.discovery-section-header p {
  color: rgba(80, 76, 87, 0.72);
  margin: 0;
}

.discovery-grid {
  display: grid;
  gap: 1em;
  grid-template-columns: repeat(auto-fit, minmax(12em, 1fr));
}

.discovery-card {
  background: linear-gradient(135deg, rgba(78, 185, 128, 0.08), rgba(176, 119, 32, 0.05)), #fff;
  border: solid 1px var(--line);
  color: var(--text);
  display: block;
  min-height: 8.75em;
  padding: 1.25em;
  text-decoration: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.discovery-card:hover,
.discovery-card:focus-visible {
  border-color: rgba(78, 185, 128, 0.55);
  box-shadow: 0 1.25em 3em rgba(0, 0, 0, 0.075);
  transform: translateY(-2px);
}

.discovery-card span {
  color: var(--gold);
  display: block;
  font-family: var(--font-heading);
  font-size: 0.75em;
  font-weight: 800;
  letter-spacing: 0.075em;
  margin-bottom: 0.75em;
  text-transform: uppercase;
}

.discovery-card b {
  color: var(--green-dark);
  display: block;
  font-family: var(--font-heading);
  font-size: 1.35em;
  line-height: 1.1;
}

.discovery-card em {
  color: rgba(80, 76, 87, 0.72);
  display: block;
  font-style: normal;
  line-height: 1.45;
  margin-top: 0.75em;
}

#site-footer {
  background: var(--green);
  color: rgba(255, 255, 255, 0.82);
  margin-top: -2em;
  padding: 11em 1.5em 6em;
  position: relative;
  text-align: center;
}

#site-footer .seo-links {
  margin-top: 2em;
}

#site-footer::before {
  background: #fff;
  clip-path: polygon(0 0, 50% 62%, 100% 0);
  content: "";
  height: 8em;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

#site-footer h2,
#site-footer a,
#site-footer b,
#site-footer strong {
  color: #fff;
}

#site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

#site-footer .seo-links a {
  background: #fff;
  color: var(--green);
}

.source-link {
  font-weight: 600;
}

.header-actions .button.alt {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
  color: #fff;
}

.header-actions .button.alt:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media screen and (max-width: 1280px) {
  body,
  input,
  select,
  textarea,
  button {
    font-size: 13pt;
  }

  .container {
    width: 48em;
  }

  .container.medium {
    width: 36em;
  }

  #header {
    min-height: 640px;
    padding: 7em 1.5em 11em;
  }

  #main {
    padding: 4em 0 3em;
  }

  .box {
    margin-bottom: 4em;
    padding: 2.5em;
  }

  .box.feature {
    padding: 0;
  }

  .box.feature .feature-content {
    padding: 2.5em;
  }

  header.major,
  footer.major {
    margin-bottom: 4em;
    padding: 3em 0;
  }
}

@media screen and (max-width: 840px) {
  .container,
  .container.medium {
    width: calc(100% - 2em);
  }

  #header {
    min-height: 560px;
    padding: 5em 1em 9em;
  }

  #header h1 {
    font-size: 2em;
  }

  #header p {
    font-size: 1.1em;
  }

  .search-hero,
  .controls {
    grid-template-columns: 1fr;
  }

  .profile-feature {
    grid-template-columns: 1fr;
  }

  .browse-feature .feature-visual {
    order: -1;
  }

  .box.feature .feature-visual {
    min-height: 15em;
  }

  .stats,
  .glance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .year-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-divider {
    margin: -0.5em auto 3.75em;
  }
}

@media screen and (max-width: 600px) {
  body,
  input,
  select,
  textarea,
  button {
    font-size: 12pt;
  }

  .container,
  .container.medium {
    width: calc(100% - 1.25em);
  }

  #header {
    min-height: 520px;
    padding: 4em 1em 7em;
  }

  #header .logo {
    font-size: 1.7em;
  }

  #header h1 {
    font-size: 1.65em;
  }

  .box {
    margin-bottom: 2.5em;
    padding: 1.5em;
  }

  .box.feature {
    padding: 0;
  }

  .box.feature .feature-content {
    padding: 1.5em;
  }

  .box.feature .feature-content header h2,
  .box.feature .feature-content header p {
    text-align: center;
  }

  header.major,
  footer.major {
    margin-bottom: 2.5em;
    padding: 2em 0;
  }

  header.major p,
  footer.major p {
    font-size: 1em;
    padding: 1em 0.75em 0;
  }

  .stats,
  .glance-grid {
    grid-template-columns: 1fr;
  }

  .section-divider {
    margin: 0 auto 3em;
  }

  .button,
  .seo-links a,
  .seo-link {
    width: 100%;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
