/*!
Theme Name: Maggi Hambling 2023
Text Domain: mh
Domain Path: /languages
Author: Max Kohler
Author URI: http://maxkohler.com/
Description: Custom Wordpress theme for Maggi Hambling. Design by Martin McGrath Studio. Required plugins: Advanced Custom Fields Pro. See README.md for developer information and changelog.
Version: 0.0.19
License: All rights reserved
*/
:root {
  --ratio: 1.3;
  --ms--1: 0.75rem;
  --serif: adobe-garamond-pro, Georgia, serif;
  --sans: Helvetica, Arial, sans-serif;
  --header-height: calc(var(--ms-0) * 2.5);
  --footer-height: var(--padding);
  --fast: 400ms;
  --gray: rgb(77, 77, 77);
  --black: rgb(8, 8, 8);
  --gray-light: rgb(238, 238, 238);
  --white: white;
  --measure: 30em;
  --br: 4px;
  --baseline: calc(var(--ms-0) * 1.2);
  --debug-color: rgb(240, 70, 18);
  --ms-0: 1.5rem;
  --padding: calc(var(--ms-0) * 1);
  --garamond-cap-correction: 0.175;
}
@media (min-width: 800px) {
  :root {
    --padding: calc(var(--ms-0) * 2);
    --ms-0: 1.875rem;
  }
}
@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  :root {
    font-size: 0.95rem;
  }
}

body {
  font-size: var(--ms-0);
  font-weight: 100;
  letter-spacing: -0.008em;
  word-spacing: -0.004em;
  font-family: var(--serif);
  line-height: var(--baseline);
  text-rendering: optimizeLegibility;
  font-feature-settings: "onum" 1, "liga" 1;
}
body .postcode {
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
}
body a {
  outline-offset: 2px;
  border-radius: var(--br);
}
body a:hover, body a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: rgba(0, 0, 0, 0.35);
}
.single__copy em, .single__copy h2, body em {
  font-style: italic;
  letter-spacing: -0.002;
  word-spacing: 0;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

* {
  box-sizing: border-box;
  font-family: inherit;
  font-weight: inherit;
  font-size: 100%;
  color: inherit;
}

html {
  -webkit-text-size-adjust: none;
     -moz-text-size-adjust: none;
          text-size-adjust: none;
  height: 100%;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  position: relative;
  overflow-y: scroll;
  display: flex;
  flex-flow: column;
  padding-bottom: calc(var(--padding) + var(--footer-height));
}
body.home {
  padding-bottom: var(--padding);
}

a.skip-link {
  position: fixed;
  top: 0;
  left: var(--padding);
  color: white;
  background: var(--black);
  padding: 0.2em 0.4em;
  transition: var(--fast) transform;
  pointer-events: none;
  outline-offset: 1px;
  border-bottom-left-radius: var(--br);
  border-bottom-right-radius: var(--br);
  transform: translateY(-100%);
}
a.skip-link:focus-visible {
  transform: translateY(0);
  pointer-events: all;
  text-decoration: none;
}

a {
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--black);
}
a:hover, a:focus-visible {
  text-decoration: underline;
}

button {
  -webkit-tap-highlight-color: transparent;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 1px solid var(--highlight);
  outline-offset: 2px;
}

img {
  opacity: 0;
  transition: opacity var(--fast);
}
img.loaded {
  opacity: 1;
}

::-moz-selection {
  background-color: var(--black);
  color: white;
}

::selection {
  background-color: var(--black);
  color: white;
}

.site__header {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  margin-bottom: var(--header-height);
  transition: var(--fast);
  box-shadow: 0 5px 10px 0px rgba(0, 0, 0, 0);
  border-bottom: 1px solid rgba(0, 0, 0, 0);
  z-index: 1000;
  background: var(--white);
}
.site__header.nav-active {
  box-shadow: 0 5px 10px 0px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header__main {
  display: flex;
  align-items: flex-end;
  height: calc(var(--header-height) - 1px);
}

.site__title {
  position: relative;
  top: calc(-1em * var(--garamond-cap-correction));
}

.header__center {
  position: absolute;
  top: calc(var(--header-height) * 0.5);
  transform: translateY(-50%);
  left: 0;
  right: 0;
  border-top: 1px dotted var(--debug-color);
  display: none;
}
.debug .header__center {
  display: block;
}

.site__footer {
  font-family: var(--sans);
  font-size: var(--ms--1);
  letter-spacing: 0.02em;
  color: var(--gray);
  height: var(--footer-height);
  position: absolute;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  bottom: 0.5em;
  gap: 0.85em;
  right: var(--padding);
}
.home .site__footer {
  display: none;
}
.site__footer ul,
.site__footer nav {
  display: contents;
}
.site__footer a:hover, .site__footer a:focus-visible {
  color: var(--black);
}

.site__version {
  position: fixed;
  bottom: 1em;
  left: 1em;
  color: red;
  font-family: sans-serif;
  font-size: 1rem;
  display: none;
  line-height: 1.2;
}
.debug .site__version {
  display: block;
}

.home .site__content {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
@media (min-width: 800px) {
  .home .site__content {
    flex-grow: 0;
  }
}

.home__image {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 var(--padding);
  width: 100%;
  position: relative;
  padding-bottom: 10vh;
}
@media (min-width: 800px) {
  .home__image {
    align-items: flex-start;
    align-items: flex-start;
    padding-bottom: 0;
  }
}
.home__image img {
  max-height: calc(100vh - var(--header-height) * 3);
  height: auto;
  max-width: 100%;
  width: auto;
  display: block;
}

.burger {
  position: relative;
  height: 0.65em;
  width: 1em;
}
@media (min-width: 800px) {
  .burger {
    width: 1.1em;
  }
}
.burger div {
  background: black;
  transition: var(--fast);
  position: absolute;
  width: 100%;
  border-radius: 2000px;
  transform-origin: center;
  height: 2px;
}

.burger__patty {
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
}
.active .burger__patty {
  opacity: 0;
}

.burger__top-bun {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
.active .burger__top-bun {
  top: 50%;
  transform: translateX(-50%) translateY(-50%) rotate(40deg);
}

.burger__bottom-bun {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.active .burger__bottom-bun {
  bottom: 50%;
  transform: translateX(-50%) translateY(50%) rotate(-40deg);
}

.nav__wrapper {
  width: 100%;
  max-height: 0;
  transition: var(--fast);
  overflow: hidden;
}
.nav__wrapper.active {
  max-height: var(--target-height);
}

.site__nav {
  text-align: center;
  position: relative;
  opacity: 0;
  transition: opacity var(--fast);
  padding-top: 1.5em;
  padding-bottom: 3em;
}
@media (min-width: 800px) {
  .site__nav {
    padding-top: 2.5em;
    padding-bottom: 4em;
  }
}
.active .site__nav {
  opacity: 1;
}
.site__nav ul {
  display: flex;
  flex-flow: column;
  align-items: center;
}
.site__nav .debug {
  position: absolute;
  top: 1.5em;
  left: 1em;
  font-size: 1rem;
  font-family: var(--sans);
  color: red;
  display: none;
}
.debug .site__nav .debug {
  display: block;
}

.nav__toggle {
  position: absolute;
  right: var(--padding);
  top: calc(var(--header-height) * 0.5);
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: var(--br);
}
.nav__toggle .label {
  font-size: 0;
  position: absolute;
}
.nav__toggle:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 8px;
}

.single__container {
  display: flex;
  justify-content: center;
}

.single__copy {
  margin-top: calc(-1em * var(--garamond-cap-correction));
  max-width: var(--measure);
  padding: 0 var(--padding);
  -webkit-hyphens: auto;
          hyphens: auto;
}
.single__copy p + p {
  margin-top: 1em;
}
.single__copy ul {
  margin: 1em;
  list-style: disc;
}
.single__copy h2 {
  margin-top: 1em;
}
.wp-block-spacer {
  --wp--preset--spacing--10: calc(var(--baseline) * 1);
  --wp--preset--spacing--20: calc(var(--baseline) * 2);
  --wp--preset--spacing--30: calc(var(--baseline) * 3);
  --wp--preset--spacing--40: calc(var(--baseline) * 4);
  --wp--preset--spacing--50: calc(var(--baseline) * 5);
  --wp--preset--spacing--60: calc(var(--baseline) * 6);
  --wp--preset--spacing--70: calc(var(--baseline) * 7);
  --wp--preset--spacing--80: calc(var(--baseline) * 8);
}

.wp-block-navigation button {
  display: none;
}
.wp-block-navigation ul {
  margin-left: 0;
  display: flex;
  list-style: none;
  gap: 0.75em;
}

.posts__container {
  margin: 0 auto;
  max-width: 25em;
  padding: 0 var(--padding);
}

.posts__list {
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 3em;
}
@media (min-width: 800px) {
  .posts__list {
    gap: 4.5em;
  }
}

.posts__item {
  width: 100%;
}

.posts__image {
  background: var(--gray-light);
  margin-bottom: 1em;
}
@media (min-width: 800px) {
  .posts__image {
    margin-bottom: 1.5em;
  }
}
.posts__image img {
  max-width: 100%;
  display: block;
  margin: 0 auto;
  height: auto;
}

.posts__copy {
  margin-bottom: calc(-1em * var(--garamond-cap-correction));
}

.copy__inner {
  position: relative;
  top: calc(-1em * var(--garamond-cap-correction));
}

.posts__title {
  margin-top: calc(-1em * var(--garamond-cap-correction));
}

.pagination {
  margin-top: 4em;
  display: flex;
  justify-content: center;
  gap: 1em;
  border: 0;
  margin-bottom: calc(var(--garamond-cap-correction) * -1em);
}
.pagination .button--large {
  position: relative;
  top: calc(var(--garamond-cap-correction) * -1em);
}

.measurements {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
}
.debug .measurements {
  opacity: 1;
}
