/*
 * tools/atomicstatic: the look of the Atomic Blocks WordPress theme (GPL-2.0,
 * with the accent #5a3fd6 from its customiser), written out as the rules the
 * pages actually use -- taken from the live lallorona.es and empfehlungscode.org.
 * Values, breakpoints (1000px, 600px) and cascade order are the theme's; the
 * WordPress block-library and search-form rules are gone. The code box
 * (.refcode) is ours.
 */

/* Nunito Sans (SIL OFL 1.1, fonts/OFL-NunitoSans.txt), self-hosted. */
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("fonts/nunito-sans-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --text: #272c30;
  --muted: #62707c;
  --accent: #5a3fd6;
  --band: #f2f2f2;
  --rule: #ddd;
  --font: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------------------------------------------------------------- reset */
html, body, div, span, h1, h2, h3, h4, h5, h6, p, a, em, strong, ul, li, nav, form, label {
  border: 0;
  font-family: inherit;
  font-size: 100%;
  font-style: inherit;
  font-weight: inherit;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}
html {
  font-size: 62.5%;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
  margin: 0 auto;
  padding: 0;
  background: #fff;
}
*, *::before, *::after {
  box-sizing: border-box;
}
article, figure, footer, header, main, nav {
  display: block;
}
a:focus {
  outline: thin dotted;
}
a:hover, a:active {
  outline: 0;
}

/* ----------------------------------------------------------- typography */
body, button {
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
}
@media (max-width: 1000px) {
  body, button { font-size: 17px; }
}
@media (max-width: 600px) {
  body, button { font-size: 16px; }
}
h1, h2, h3, h4, h5, h6 {
  clear: both;
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3%;
}
h2 {
  font-size: 1.6em;
}
p {
  margin-bottom: 1.2em;
}
b, strong {
  font-weight: bold;
}
em, i {
  font-style: italic;
}
hr {
  background-color: transparent;
  height: 0;
  margin: 2em 0;
  max-width: 100%;
  border: 1px solid var(--rule);
}
ul {
  margin: 0 0 1.4em 20px;
  list-style: disc;
}
img {
  height: auto;
  max-width: 100%;
}
figure {
  margin: 0;
}
figure img {
  box-sizing: border-box;
  vertical-align: bottom;
}
.has-text-align-center {
  text-align: center;
}
blockquote {
  color: var(--text);
  font-weight: bold;
  line-height: 1.4;
  margin: 1em 0 1.2em;
  position: relative;
  padding: 0 0 0 30px;
  border-left: 3px solid var(--text);
  overflow-wrap: break-word;
}
blockquote p {
  margin-bottom: 1em;
}
::selection {
  background: rgba(255, 244, 147, 0.8);
  color: var(--text);
}

/* ---------------------------------------------------------------- links */
a {
  color: var(--muted);
  text-decoration: none;
  transition: 0.07s ease-in-out;
}
a:hover, a:focus, a:active {
  color: var(--text);
}

/* -------------------------------------------------------------- buttons */
button {
  background: var(--accent);
  border: none;
  border-radius: 3px;
  color: #fff;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  padding: 14px 20px;
  vertical-align: baseline;
  appearance: none;
  transition: 0.2s ease-in-out;
}
@media (max-width: 600px) {
  button { padding: 10px 16px; font-size: 16px; }
}
button:hover {
  box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.25);
  color: #fff;
  cursor: pointer;
}
button:focus, button:active {
  color: #fff;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.05);
}

/* ----------------------------------------------------------- navigation */
.menu-toggle {
  display: none;
}
@media (max-width: 1000px) {
  .menu-toggle { display: block; }
}
.button-toggle {
  background: none;
  padding: 0;
  color: #fff;
}
.button-toggle span:not(:first-child) {
  display: none;
}
.button-toggle[aria-expanded="true"] span:first-child {
  display: none;
}
.button-toggle[aria-expanded="true"] span:not(:first-child) {
  display: inline;
}
.button-toggle:hover, .button-toggle:active, .button-toggle:focus {
  box-shadow: none;
  color: #fff;
}
/* Font Awesome 5's bars and times (CC BY 4.0), which the theme loaded as a webfont. */
.button-toggle svg {
  display: inline-block;
  width: auto;
  height: 1em;
  vertical-align: -0.125em;
  fill: currentColor;
}
.main-navigation {
  font-size: 17px;
  font-weight: bold;
  display: inline-block;
  width: 100%;
  vertical-align: top;
  text-align: right;
}
@media (max-width: 1000px) {
  .main-navigation { display: none; }
}
.site-header .container {
  display: block;
}
.top-navigation {
  display: inline-block;
  width: 100%;
  position: relative;
  z-index: 10;
}
.top-navigation-right {
  float: right;
  display: inline-block;
  max-width: 70%;
}
@media (max-width: 1000px) {
  .top-navigation-right { display: none; }
}
.main-navigation a {
  transition: 0.3s;
  color: var(--text);
}
.main-navigation a:hover {
  color: var(--accent);
}
.main-navigation ul {
  margin: 0;
  line-height: 3;
}
.main-navigation ul li {
  display: inline-block;
  list-style-type: none;
  padding: 0 15px;
  position: relative;
}
.main-navigation ul li a {
  display: inline-block;
  margin: 0 0 10px;
  line-height: 2;
}
.main-navigation ul li a:active, .main-navigation ul li a:focus {
  outline: none;
}
.main-navigation ul li a:focus-visible {
  outline: thin dotted;
}
/* WordPress coloured the current item only on sites whose menu it built as a
   custom menu; build.py sets the class where the live site had it. */
.main-navigation ul li.current-menu-item a {
  color: var(--accent);
}

/* The purple "Menú" bar and the dark drawer it opens, below 1000px. */
.mobile-navigation {
  display: none;
  width: 100%;
  padding: 15px;
  background: var(--accent);
  transition: 0.2s;
  text-align: center;
}
.mobile-navigation button {
  width: 100%;
}
@media (max-width: 1000px) {
  .mobile-navigation { display: inline-block; }
}
.drawer-wrap {
  position: relative;
}
.drawer {
  display: none;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  overflow-x: hidden;
  padding: 0;
  background: rgba(21, 23, 26, 0.7);
  font-size: 16px;
}
.drawer.is-open {
  display: block;
}
@media (max-width: 1000px) {
  .drawer { background: var(--text); padding: 15px 5% 30px; }
}
@media only screen and (min-width: 1000px) {
  .drawer, .drawer.is-open { display: none; }
}
.drawer nav {
  padding: 2% 0 0;
}
.drawer .drawer-navigation {
  width: 100%;
  max-width: 100%;
  z-index: 40;
  position: relative;
}
@media (max-width: 1000px) {
  .drawer .drawer-navigation { font-size: 17px; display: inline-block; }
}
.drawer .drawer-navigation ul {
  margin: 0;
  padding: 0;
}
.drawer .drawer-navigation ul li {
  width: 100%;
  padding: 0;
  list-style-type: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 50;
}
.drawer .drawer-navigation ul li:last-child {
  border-bottom: none;
}
.drawer .drawer-navigation ul li a {
  display: inline-block;
  padding: 15px 10px 15px 0;
  margin: 0;
  position: relative;
}
.drawer .drawer-navigation a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}
.drawer .drawer-navigation a:hover {
  color: #fff;
}

/* --------------------------------------------------------------- header */
.clear::before, .clear::after,
.entry-content::before, .entry-content::after,
.site-header::before, .site-header::after,
.site-content::before, .site-content::after,
.site-footer::before, .site-footer::after,
.container::before, .container::after {
  content: "";
  display: table;
}
.clear::after, .entry-content::after, .site-header::after, .site-content::after, .site-footer::after, .container::after {
  clear: both;
}
.site-header {
  padding: 0;
  display: inline-block;
  width: 100%;
  position: relative;
  z-index: 100;
  background: var(--band);
}
.site-identity {
  padding: 3% 0;
  position: relative;
  z-index: 8;
}
@media (max-width: 1000px) {
  .site-identity { padding: 8% 0; }
}
@media (max-width: 600px) {
  .site-identity { padding: 12% 0; }
}
.site-title-wrap {
  display: inline-block;
  vertical-align: top;
  max-width: 30%;
  width: 100%;
  position: relative;
}
@media (max-width: 1000px) {
  .site-title-wrap { max-width: 100%; text-align: center; }
}
@media (min-width: 1000px) {
  .titles-wrap { padding-top: 8px; }
}
.site-title {
  font-size: 26px;
  font-weight: bold;
  display: inline-block;
  width: 100%;
  margin-bottom: 0;
  margin-right: 8px;
  line-height: 1.2;
}
.site-title a {
  color: var(--text);
  transition: 0.1s ease-in;
  position: relative;
}
@media (max-width: 1000px) {
  .site-title { margin: 0; }
}
@media (max-width: 600px) {
  .site-title { font-size: 24px; }
}

/* The 404 page's title band, inside the header. */
.header-text {
  position: relative;
  z-index: 5;
  margin: 5% auto;
  text-align: center;
  max-width: 70%;
}
@media (max-width: 1000px) {
  .header-text { max-width: 100%; margin-bottom: 6%; margin-top: 0; }
}
@media (max-width: 600px) {
  .header-text { margin-bottom: 8%; }
}
.header-text h1 {
  color: var(--text);
  font-size: 34px;
  margin-bottom: 0;
  display: inline-block;
  font-weight: bold;
}
@media only screen and (max-width: 500px) {
  .header-text h1 { font-size: 28px; }
}

/* --------------------------------------------------------------- layout */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 8%;
  display: block;
}
@media only screen and (max-width: 1000px) {
  .container { padding: 0 4%; }
}
@media (max-width: 600px) {
  .container { padding: 0 15px; }
}
#primary {
  margin: 0 auto;
  display: block;
  width: 70%;
}
@media (max-width: 1000px) {
  #primary { width: 100%; }
}
#page {
  padding-top: 6%;
}
@media (max-width: 600px) {
  #page { padding-top: 8%; }
}
.site-content {
  display: inline-block;
  width: 100%;
  padding: 0 0 7%;
  vertical-align: top;
  position: relative;
  z-index: 10;
}
.post {
  width: 100%;
  display: inline-block;
  position: relative;
}
.post .entry-header {
  position: relative;
  margin-bottom: 5%;
}
.entry-header .entry-title {
  font-size: 50px;
  font-weight: 700;
  margin: 0 0 3%;
  position: relative;
  z-index: 5;
  line-height: 1.3;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  .entry-header .entry-title { font-size: 32px; }
}
.entry-content {
  vertical-align: top;
}
.entry-content p a {
  color: var(--accent);
  box-shadow: inset 0 -1px 0 var(--accent);
  transition: 0.3s;
}
.entry-content p a:hover {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* --------------------------------------------------------------- footer */
.site-footer {
  padding: 0 0 2.5%;
  font-size: 17px;
  line-height: 1.5;
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: var(--band);
  color: var(--text);
}
@media (max-width: 1000px) {
  .site-footer { padding-bottom: 30px; }
}
@media (max-width: 600px) {
  .site-footer { font-size: 15px; }
}
.footer-bottom {
  display: inline-block;
  width: 100%;
  padding-top: 4%;
}
.footer-tagline {
  display: inline-block;
  width: 40%;
}
@media (max-width: 1000px) {
  .footer-tagline { float: none; width: 100%; margin-top: 15px; }
}

/* ------------------------------------------------------------ code box */
/* A paragraph that is only a referral code: the code large, in a tinted box,
   with a button that copies it. The size is WordPress's "x-large" preset,
   which these codes had. */
.refcode {
  /* The space the 42px code paragraph left below it (1.2em of 42px). */
  margin: 0 0 2.5em;
  padding: 24px 20px;
  text-align: center;
  background: var(--code-bg, #f1eefc);
  border: 2px dashed var(--code-border, var(--accent));
  border-radius: 3px;
}
.refcode__value {
  display: block;
  font-family: var(--font);
  font-size: 42px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
}
@media (max-width: 600px) {
  .refcode__value { font-size: 34px; }
}
.refcode__copy {
  margin-top: 12px;
}
.refcode__copy:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.refcode__copy.is-copied {
  background: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
