:root {
  --color-accent-bg: #fded60;
  --color-bg: #fff;
  --color-text: #000;
  --font-sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: var(--font-sans);
  background: var(--color-accent-bg);
  color: var(--color-text);
  overflow-x: hidden;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1 {
  font-size: 120px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: -0.02em;
}

h1 span {
  font-family: var(--font-serif);
  font-style: italic;
  padding-right: 0.05em;
}

h2 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 28px;
  font-weight: 500;
}

p {
  font-size: 16px;
  line-height: 1.35em;
}

a {
  text-decoration: none;
  font-size: 16px;
  color: var(--color-text);
}

span {
  font-family: var(--font-serif);
  font-style: italic;
}

.arrow {
  font-family: var(--font-sans);
  font-style: normal;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  padding: 1em;
  z-index: 10000;
  mix-blend-mode: difference;
}

nav a {
  color: var(--color-bg);
}

.logo {
  flex: 4;
}

.logo a span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25em;
  line-height: 1;
  padding-right: 0.06em;
}

.nav-items {
  flex: 2;
  display: flex;
  width: 100%;
}

.links {
  flex: 2;
  display: flex;
  flex-direction: column;
}

.contact {
  flex: 1;
  text-align: right;
}

section {
  width: 100%;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 1em;
}

footer {
  width: 100%;
  padding: 8em 1em;
  background: rgb(250, 186, 74);
  background: linear-gradient(
    0deg,
    var(--color-accent-bg) 0%,
    var(--color-bg) 100%
  );
}

.footer-row:nth-child(1) {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  padding-bottom: 0.3em;
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  width: 30%;
  border-bottom: 1px solid var(--color-text);
  padding: 1em;
}

.footer-subscribe p {
  font-size: 16px;
}

.footer-subscribe a {
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-outro {
  width: 100%;
}

.footer-outro-content {
  width: 40%;
  margin: 0 auto;
  text-align: center;
}

.footer-outro-content svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.5em auto;
  display: block;
}

.section-hero {
  width: 100%;
  padding: 10em 1em 5em 1em;
  padding-top: 10em;
}

.section-hero h3 {
  margin-top: 0.5em;
}

.hero-cta {
  display: inline-block;
  margin-top: 1.5em;
  padding: 0.75em 1.4em;
  border: 1px solid var(--color-text);
  border-radius: 999px;
  font-size: 16px;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.hero-cta.secondary {
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.hero-cta.secondary:hover {
  background: none;
  color: var(--color-text);
}

.legal {
  width: 100%;
  min-height: 100vh;
  background: var(--color-bg);
}

.legal-body {
  width: 50%;
  padding: 0 1em 8em 1em;
}

.legal-body p {
  margin-bottom: 1.2em;
}

.legal-body h3 {
  margin: 2em 0 0.5em 0;
}

@media (max-width: 900px) {
  h1 {
    font-size: 70px;
  }

  h2 {
    font-size: 30px;
  }

  .nav-items {
    flex-direction: column;
  }

  .contact {
    text-align: left;
  }

  .footer-row {
    flex-direction: column;
  }

  .footer-subscribe {
    padding-top: 3em;
    width: 100%;
  }

  .footer-outro-content {
    width: 75%;
  }

  .legal-body {
    width: 100%;
  }
}

/* Plates: panels drawn from the pad's own material (basket weights, the lock, the curve, note
   numbers), standing where the template carried photographs. */
.plate {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1em;
  padding: 1em;
  background: var(--color-text);
  color: var(--color-bg);
  overflow: hidden;
}

.plate.accent {
  background: var(--color-accent-bg);
  color: var(--color-text);
}

.plate.paper {
  --plate-hi: var(--color-text);
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-text);
}

.plate.plate-inset {
  padding-left: 2.6em;
}

.plate.r34 {
  height: auto;
  aspect-ratio: 3 / 4;
}

.plate.r23 {
  height: auto;
  aspect-ratio: 2 / 3;
}

.plate.plate-end {
  justify-content: flex-end;
}

.plate.plate-mid {
  justify-content: center;
}

.plate-row {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

.plate-row p {
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plate-row p + p {
  text-align: right;
}

.plate-big {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 7vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.plate svg {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 1 auto;
  min-height: 0;
  max-height: 100%;
  font-family: var(--font-sans);
}

.plate-bars {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plate-bars i {
  display: flex;
  align-items: flex-end;
  padding: 0.5em 0.6em;
  min-height: 0;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.04em;
  background: var(--color-accent-bg);
  color: var(--color-text);
}

.plate-bars i:nth-child(2) {
  background: var(--color-bg);
}

.plate-bars i:nth-child(3),
.plate-bars i:nth-child(4) {
  background: none;
  color: inherit;
  border: 1px solid currentColor;
}

.plate.sm {
  padding: 0.6em;
  gap: 0.5em;
}

.plate.sm .plate-row p,
.plate.sm .plate-bars i {
  font-size: 10px;
}

.plate.sm .plate-bars i {
  padding: 0.3em 0.4em;
}

.plate.sm .plate-big {
  font-size: 44px;
}

@media (max-width: 900px) {
  .location-img .plate.r34 {
    aspect-ratio: 4 / 3;
  }
}
