/* Shared styles for wallpapers.html, contact.html and thanks.html.
   If you change the main red in index.html, change --ink here too (and --ink-soft). */
:root {
  --cream: #EEECE8;
  --paper: #F6F4F0;
  --ink: #580F08;
  --ink-soft: #7B3F38;
  --blush: #E2D8D6;
  --line: rgba(88, 15, 8, .2);
  --serif: "Bodoni Moda", "Didot", "Playfair Display", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

a {
  color: inherit
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto
}

.narrow {
  width: min(660px, 100% - 40px);
  margin-inline: auto
}

.eyebrow {
  font-size: .74rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 500
}

.label {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  margin-bottom: 14px
}

.label::before,
.label::after {
  content: "";
  height: 1px;
  width: 48px;
  background: var(--line)
}

/* header */
.menubar {
  display: flex;
  justify-content: center
}

.menu-btn {
  background: none;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding: 8px 6px 8px 14px;
  cursor: pointer;
  position: relative
}

.menu-btn::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 6px;
  bottom: 2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(.35);
  transform-origin: center;
  transition: transform .3s
}

.menu-btn:hover::after,
.menu-btn:focus-visible::after {
  transform: scaleX(1)
}

.pagehead {
  text-align: center;
  padding: clamp(22px, 4vw, 44px) 0 clamp(30px, 5vw, 56px)
}

.pagehead .logo-link {
  display: block;
  width: min(190px, 46vw);
  margin: clamp(14px, 3vw, 28px) auto 0
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.4vw, 4.4rem);
  line-height: 1.06;
  margin-top: clamp(26px, 4vw, 40px)
}

h1 em,
h2 em {
  font-style: italic
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12
}

.lede {
  max-width: 34em;
  margin: 16px auto 0;
  color: var(--ink-soft)
}

.pagehead .lede {
  text-align: center
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  background: none;
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: background .25s, color .25s, transform .25s
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px)
}

.btn.solid {
  background: var(--ink);
  color: var(--cream)
}

.btn.solid:hover {
  background: #3f0a05
}

.btn.line:hover {
  background: var(--ink);
  color: var(--cream)
}

section {
  padding: clamp(48px, 7vw, 92px) 0
}

.rule {
  border-top: 1px solid var(--line)
}

/* wallpapers: current month */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center
}

.phone {
  max-width: 320px;
  justify-self: center;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 24px 46px -20px rgba(88, 15, 8, .5)
}

.feature h2 {
  margin-top: 6px
}

.feature p {
  margin-top: 16px;
  max-width: 30em
}

.feature .actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.fine {
  font-size: .82rem;
  opacity: .72;
  margin-top: 18px !important
}

/* wallpapers: archive */
.archive-head {
  text-align: center;
  margin-bottom: clamp(30px, 4vw, 48px)
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(18px, 3vw, 32px)
}

.card {
  text-align: center;
  flex: 0 1 230px
}

.card .thumb {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 14px 28px -16px rgba(88, 15, 8, .4)
}

.card .thumb img {
  width: 100%
}

.card .month {
  margin-top: 14px
}

.card a.dl {
  display: inline-block;
  margin-top: 4px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  text-underline-offset: 5px
}

/* newsletter band */
.letters {
  background: var(--ink);
  color: var(--cream);
  text-align: center
}

.letters .label::before,
.letters .label::after {
  background: rgba(238, 236, 232, .3)
}

.letters .lede {
  color: rgba(238, 236, 232, .82)
}

.letters .btn {
  margin-top: 30px;
  border-color: var(--cream);
  background: var(--cream);
  color: var(--ink)
}

.letters .btn:hover {
  background: #fff
}

/* contact form */
form.contact {
  display: grid;
  gap: 22px
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px
}

.field label {
  display: block;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px
}

.field textarea {
  min-height: 170px;
  resize: vertical
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: transparent
}

.hp {
  position: absolute;
  left: -9999px
}

.form-foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap
}

.form-foot small {
  opacity: .72
}

.elsewhere {
  text-align: center;
  margin-top: clamp(34px, 5vw, 54px);
  color: var(--ink-soft)
}

.elsewhere a {
  text-underline-offset: 4px
}

.thanks {
  text-align: center;
  padding: clamp(40px, 8vw, 100px) 0
}

.thanks .script {
  font-family: var(--script);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink-soft)
}

.thanks .btn {
  margin-top: 30px
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  text-align: center
}

footer .script {
  font-family: var(--script);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  color: var(--ink-soft);
  margin: 0 0 10px
}

footer .eyebrow {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap
}

footer a {
  text-decoration: none
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px
}

footer small {
  display: block;
  margin-top: 18px;
  opacity: .65;
  font-size: .8rem
}

/* menu overlay + floating button */
.fab {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 40;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px 10px 22px;
  font-size: .78rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s
}

.fab::after {
  left: 22px;
  right: 16px;
  bottom: 7px
}

.fab.show {
  opacity: 1;
  pointer-events: auto
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4.5vh, 50px);
  padding: 90px 24px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s
}

.menu.open {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease
}

.menu-close {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 0;
  color: var(--cream);
  font: inherit;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  padding: 8px 6px 8px 14px;
  cursor: pointer
}

.menu-close:hover {
  text-decoration: underline;
  text-underline-offset: 6px
}

.menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1.6vh, 16px)
}

.menu-links a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, min(8.5vw, 8.5vh), 5.2rem);
  line-height: 1.12;
  text-decoration: none;
  color: var(--cream);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease
}

.menu.open .menu-links a {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 70ms + 120ms)
}

.menu-links a:hover,
.menu-links a:focus-visible {
  font-style: italic
}

.menu-social {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: .76rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  font-weight: 500
}

.menu-social a {
  text-decoration: none
}

.menu-social a:hover {
  text-decoration: underline;
  text-underline-offset: 5px
}

.menu-social span {
  opacity: .6
}

.menu :focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px
}

body.menu-open {
  overflow: hidden
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px
}

.letters :focus-visible {
  outline-color: var(--cream)
}

@media (max-width:760px) {
  .feature {
    grid-template-columns: 1fr
  }

  .feature .txt {
    text-align: center
  }

  .feature p {
    margin-inline: auto
  }

  .feature .actions {
    justify-content: center
  }

  .row {
    grid-template-columns: 1fr
  }

  .card {
    flex: 0 1 calc(50% - 10px)
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  .menu,
  .menu-links a,
  .fab,
  .btn {
    transition: none !important
  }

  .menu-links a {
    opacity: 1;
    transform: none
  }
}

/* about page */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center
}

.photo {
  background: var(--paper);
  padding: 12px 12px 44px;
  box-shadow: 0 18px 40px -18px rgba(88, 15, 8, .4);
  transform: rotate(-2deg);
  max-width: 400px;
  justify-self: center
}

.photo figcaption {
  font-family: var(--script);
  font-size: 1.7rem;
  text-align: center;
  margin-top: 6px;
  color: var(--ink-soft)
}

.about .txt p {
  margin-top: 18px
}

.about .txt .actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(30px, 4vw, 48px)
}

.pillar {
  text-align: center;
  padding: 0 8px
}

.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  margin-top: 6px
}

.pillar h3 em {
  font-style: italic
}

.pillar p {
  margin-top: 10px;
  color: var(--ink-soft)
}

.pillar a {
  display: inline-block;
  margin-top: 10px;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  text-underline-offset: 5px
}

@media (max-width:760px) {
  .about {
    grid-template-columns: 1fr
  }

  .about .txt {
    text-align: center
  }

  .about .txt .actions {
    justify-content: center
  }

  .pillars {
    grid-template-columns: 1fr
  }
}