/* --------------------------------------------------------------------------------------------- */
/*  Typefaces
/* --------------------------------------------------------------------------------------------- */
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-BoldItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-MediumItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Quincy";
  src: url("./assets/fonts/QuincyCF-RegularItalic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-MediumOblique.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-DemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-DemiBoldOblique.woff2") format("woff2");
  font-style: italic;
  font-weight: 600;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: block;
}
@font-face {
  font-family: "Greycliff";
  src: url("./assets/fonts/GreycliffCF-BoldOblique.woff2") format("woff2");
  font-style: italic;
  font-weight: 700;
  font-display: block;
}
/* --------------------------------------------------------------------------------------------- */
/*  CSS reset and other
/* --------------------------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  vector-effect: non-scaling-stroke;
}

body, html {
  border: none;
  margin: 0;
  padding: 0;
}

img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  -o-object-position: center center;
     object-position: center center;
  font-style: italic;
  shape-margin: 1rem;
  display: block;
}

p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
  line-height: var(--line-height);
}

textarea {
  overflow: auto;
  resize: vertical;
}

input:focus, input:focus-visible {
  border: none;
  box-shadow: none;
  outline: none;
}

/* --------------------------------------------------------------------------------------------- */
/*  WP reset
/* --------------------------------------------------------------------------------------------- */
.wp-block-columns {
  margin: 0;
}

.wp-block-image img, .wp-block-post-featured-image img {
  height: 100%;
}

.wp-block-image figcaption, .wp-block-table figcaption {
  margin: 0.7em 0 0 0;
}

.wp-block-pullquote {
  padding: 0;
  margin: 0;
}

.wp-block-code {
  margin: 0;
}

/* --------------------------------------------------------------------------------------------- */
/*  Variables
/* --------------------------------------------------------------------------------------------- */
:root {
  --font-family-heading: "Quincy", serif;
  --font-family: "Greycliff", sans-serif;
  --fs-body: clamp( 1.6rem, 1.1vw, 2rem );
  --fs-h1: clamp( 3.4rem, 3.89vw, 7.4rem);
  --fs-h2: clamp( 3.4rem, 3vw, 5.7rem );
  --fs-h3: clamp( 2.7rem, 2.1vw, 4rem );
  --fs-h4: clamp( 2.1rem, 1.47vw, 2.8rem );
  --fs-h5: clamp( 2.05rem, 1.42vw, 2.7rem );
  --h2-space: 1.4em 0 .25em 0;
  --h3-space: 1.7em 0 0 0;
  --h4-space: 2em 0 0 0;
  --colour-text: hsl(0, 0%, 13%);
  --container-space: 7vw;
  --space: clamp(1.8rem, 6vmin, 4rem);
  --background-colour: hsl(0, 0%, 96.1%);
  --background-colour-secondary: hsl(0, 0%, 98%);
  --background-colour-accent: hsl(213, 15%, 49%);
  --colour-links: hsl(222, 70%, 41%);
  --box-shadow: 0 1rem 2rem hsla(0, 0%, 0%, 0.11);
  --header-size: clamp( 5em, 11.6vmin, 5.45em );
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 600;
  --font-weight-bolder: 700;
  --font-weight-black: 800;
  --line-height: 1.5;
  --line-height-heading-h1: .9;
  --line-height-heading: 1;
  --letter-spacing: .02em;
  --image-size-1: clamp( 16.5em, 50vmin, 25em );
  --image-size-2: clamp( 18em, 45vmin, 23em );
  --image-size-3: clamp( 16.5em, 85vmin, 40em );
  --content-size-small: 25em;
  --content-size: 35em;
  --content-size-wide: 16em;
  --button-width: 3rem;
}

/* --------------------------------------------------------------------------------------------- */
/*  Document
/* --------------------------------------------------------------------------------------------- */
html {
  font-size: max(63%, 0.51vw);
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: none;
}

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--colour-text);
  background-color: var(--background-colour);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  font-weight: var(--font-weight-medium);
  min-height: 100vh;
  min-height: 100svh;
  width: 100vw;
  overflow-x: hidden;
  text-align: left;
}

/* --------------------------------------------------------------------------------------------- */
/*  Text
/* --------------------------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  text-wrap: balance;
  margin: 0;
}

h1, h2, .small {
  line-height: var(--line-height-heading-h1);
}

h3, h4, h5, h6 {
  line-height: var(--line-height-heading);
}

h1 {
  font-size: var(--fs-h1);
  padding-bottom: 0.1em;
}

.small {
  font-size: var(--fs-h2);
  padding-bottom: 0.25em;
}

h2 {
  font-size: var(--fs-h2);
  padding: var(--h2-space);
}

h3 {
  font-size: var(--fs-h3);
  padding: var(--h3-space);
}

h4 {
  font-size: var(--fs-h4);
  padding: var(--h4-space);
}

h5, h6 {
  font-size: var(--fs-h5);
  padding: var(--h4-space);
}

h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  padding-top: 0;
}

p {
  padding: 1.2em 0 0 0;
  margin: 0;
}

p:first-child {
  padding: 0;
}

ol, ul {
  padding: 1.2em 0 0 2em;
}

li {
  padding-top: 0.5rem;
}

li:first-child {
  padding-top: 0;
}

a {
  color: hsl(222, 70%, 41%);
  text-decoration: underline;
  cursor: pointer;
}

.no-content-space {
  padding: 0;
}

.text-align {
  text-align: center;
}

.font-weight-regular {
  font-weight: var(--font-weight-regular);
}

/* --------------------------------------------------------------------------------------------- */
/*  Login form
/* --------------------------------------------------------------------------------------------- */
body.login {
  display: grid;
  place-items: center;
  background-color: var(--background-colour);
  background: url(./assets/images/noodle-login.jpg) no-repeat center right fixed;
  background-size: cover;
}

body.login div#login h1 a {
  display: none;
}

#login {
  display: flex;
  flex-direction: column;
  background-color: hsla(0, 0%, 100%, 0.87);
  box-shadow: var(--box-shadow);
  padding: 5vw;
  margin: 0;
  max-width: 27em;
  width: 90%;
}

.interim-login #login {
  padding: 5vw;
}

.login .privacy-policy-page-link {
  font-size: calc(var(--fs-body) / 1.3);
  text-align: left;
  padding: 1em 0 0 0;
  margin: 0;
}

body.login .language-switcher {
  display: none;
}

.login form {
  background-color: hsla(0, 0%, 100%, 0);
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

.login label {
  font-size: calc(var(--fs-body) / 1.3);
  line-height: 1.5;
  display: inline-block;
  margin-bottom: 0.3em;
  opacity: 0.8;
}

.login form .input {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--colour-text);
  background-color: var(--background-colour-secondary);
  line-height: 1;
  width: 100%;
  border: 1px solid hsl(0, 0%, 84%);
  border-radius: 0;
  padding: 0.7em 1em;
  margin: 0;
  min-height: 40px;
  max-height: none;
}

body.login input:focus, body.login input:focus-visible {
  border: 1px solid hsl(0, 0%, 68%);
  box-shadow: none;
  outline: none;
}

.user-pass-wrap, .login form .forgetmenot {
  margin-top: 1em;
}

body.login .dashicons {
  color: hsl(0, 0%, 45%);
}

.login .button.wp-hide-pw .dashicons {
  top: 0;
}

.login .button.wp-hide-pw {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-body);
  padding: 0 1.3em 0 0.6em;
}

#loginform .button.wp-hide-pw {
  height: 100%;
}

#resetpassform .button.wp-hide-pw {
  height: 55%;
}

.login .button.wp-hide-pw:focus, .login .button.wp-hide-pw:focus-visible {
  border: none;
  box-shadow: none;
  outline: none;
}

.login .button.wp-hide-pw .dashicons {
  font-size: var(--fs-body);
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login form input[type=checkbox] {
  background-color: var(--background-colour);
  width: 2rem;
  height: 2rem;
  border: 1px solid hsl(0, 0%, 84%);
  border-radius: 0;
  box-shadow: none;
}

input[type=checkbox]:checked::before, .interim-login input[type="checkbox"]:checked::before {
  width: 2.19rem;
  height: 2.19rem;
}

.login .button-primary.button-large {
  width: 100%;
  border: none;
  font-size: calc(var(--fs-body) / 1.3);
  color: hsl(0, 0%, 100%);
  background-color: hsl(0, 0%, 17%);
  padding: 0.5em 2.5em;
  border-radius: 0;
  letter-spacing: 0.04em;
  margin: 1em 0 0 0;
  transition: all 0.3s ease-in-out;
}

.login .button-primary.button-large:hover {
  background-color: hsl(0, 0%, 25%);
}

.login #backtoblog, .login #nav {
  font-size: calc(var(--fs-body) / 1.3);
  padding: 0;
  margin: 0;
}

.login #nav {
  display: flex;
  flex-direction: row;
  gap: 0.5em;
}

.login #nav:not([class]) {
  color: hsla(0, 0%, 100%, 0);
}

.login #backtoblog a, .login #nav a {
  color: var(--colour-text);
}

.login #backtoblog a:hover, .login #nav a:hover {
  color: var(--colour-text);
  opacity: 1;
}

.wp-login-register {
  font-weight: var(--font-weight-bold);
  margin: 1.5em 0 0 0;
}

.wp-login-lost-password, .wp-login-log-in {
  margin: 1.5em 0 0 0;
  opacity: 0.8;
}

.login #backtoblog {
  margin: 1em 0 0 0;
}

.login .message, .login .notice, .login .success {
  background-color: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
  margin-bottom: 1em;
}

/* --------------------------------------------------------------------------------------------- */
/*  Register form
/* --------------------------------------------------------------------------------------------- */
#registerform {
  display: flex;
  flex-direction: column;
}

#registerform .acf-field input {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  color: var(--colour-text);
  background-color: var(--background-colour-secondary);
  line-height: 1;
  width: 100%;
  border: 1px solid hsl(0, 0%, 84%);
  border-radius: 0;
  padding: 0.7em 1em;
  margin: 0;
  min-height: 40px;
  max-height: none;
}

#registerform .acf-field input:focus, #registerform .acf-field input:focus-visible {
  border: 1px solid hsl(0, 0%, 68%);
  box-shadow: none;
  outline: none;
}

#registerform h2, #registerform .spinner {
  display: none;
}

#registerform > :nth-child(1) {
  order: 2;
}

#registerform > :nth-child(2) {
  order: 3;
  margin-top: 1em;
}

#registerform > :nth-child(5) {
  order: 1;
}

#registerform > :nth-child(7) {
  order: 4;
}

#registerform > :nth-child(8) {
  order: 5;
}

#registerform > :nth-child(10) {
  order: 6;
}

#registerform .acf-field .acf-label label {
  margin: 0;
}

#registerform .acf-message label, #registerform .acf-required {
  display: none;
}

#registerform .acf-validation {
  padding-top: 1em;
}

#registerform .acf-validation .acf-label label {
  margin-bottom: 0.3em;
}

#login #reg_passmail {
  margin: 0;
}

#login form#resetpassform p.submit.reset-pass-submit button.button.wp-generate-pw.hide-if-no-js.skip-aria-expanded {
  display: flex;
  justify-content: center;
  border: 1px solid hsla(0, 0%, 0%, 0.11);
  font-size: calc(var(--fs-body) / 1.3);
  color: var(--colour-text);
  background-color: transparent;
  width: 100%;
  padding: 0.5em 2.5em;
  border-radius: 0;
  letter-spacing: 0.02em;
}