/* Self-hosted fonts (no requests to Google) */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/caveat-600.woff2") format("woff2");
}

:root {
  --raw-clay: #EFE5D3;
  --porcelain: #FAF6EE;
  --bisque: #DCCBAE;
  --speckle-brown: #6A4B3C;
  --kiln-black: #231A18;

  --gingham-red: #B03A2E;
  --heart-red: #7A1F2B;
  --glaze-apricot: #E49463;
  --candle-amber: #F2B04A;

  --backdrop-navy: #1F2536;
  --pewter: #A7AAAE;
  --stripe-blue: #6E8FB5;

  --page-gutter: 1.25rem;
  --content-width: 1180px;
  --radius-small: 12px;
  --radius-large: 18px;
  --transition: 220ms ease;
  --cloth-h: clamp(120px, 17vw, 210px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

section[id] {
  scroll-margin-top: 5rem;
}

body {
  position: relative;
  min-width: 360px;
  margin: 0;
  background: var(--raw-clay);
  color: var(--kiln-black);
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a {
  color: inherit;
}

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

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

.container {
  width: min(100% - (var(--page-gutter) * 2), var(--content-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--porcelain);
  border-bottom: 1px solid var(--bisque);
}

.site-header::after {
  display: block;
  height: 8px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='8' viewBox='0 0 128 8'%3E%3Cpath d='M0 4C21 1 43 7 64 4S107 1 128 4' fill='none' stroke='%23B03A2E' stroke-width='2.4' stroke-linecap='round' stroke-dasharray='10 6' pathLength='128'/%3E%3C/svg%3E") repeat-x center / 128px 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--kiln-black);
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
}

.logo-mark {
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  background: var(--bisque);
  border: 2px solid var(--gingham-red);
  border-radius: 50%;
  transition: transform var(--transition);
}

.logo:hover .logo-mark,
.logo:focus-visible .logo-mark {
  transform: rotate(-6deg) scale(1.06);
}

.footer-inner .logo-mark {
  border-color: var(--glaze-apricot);
}

.menu-toggle {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  padding: .7rem;
  place-content: center;
  gap: .35rem;
  background: var(--bisque);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--kiln-black);
  transition: transform var(--transition);
}

.menu-toggle.is-open span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 76px;
  right: var(--page-gutter);
  left: var(--page-gutter);
  display: grid;
  gap: .25rem;
  padding: .75rem;
  background: var(--porcelain);
  border: 1px solid var(--bisque);
  border-radius: var(--radius-small);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.site-nav.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav a {
  padding: .65rem .8rem;
  color: var(--kiln-black);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--porcelain);
  background: var(--gingham-red);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 620px;
  display: grid;
  align-items: center;
  padding-block: calc(var(--cloth-h) + 2rem) 5rem;
  color: var(--porcelain);
  background: var(--backdrop-navy);
}

.hero-cloth {
  position: absolute;
  top: -28px;
  left: 50%;
  z-index: -1;
  width: max(calc(100% + 80px), 980px);
  height: calc(var(--cloth-h) + 28px);
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 10px rgb(0 0 0 / .35));
}

.hero-cloth-fabric {
  position: relative;
  height: 100%;
  background-color: var(--gingham-red);
  background-image:
    linear-gradient(90deg, rgb(35 26 24 / .2) 0 2px, transparent 2px),
    linear-gradient(0deg, rgb(35 26 24 / .2) 0 2px, transparent 2px),
    linear-gradient(90deg, rgb(250 246 238 / .8) 0 3px, transparent 3px 8px, rgb(250 246 238 / .45) 8px 9px, transparent 9px),
    linear-gradient(0deg, rgb(250 246 238 / .8) 0 3px, transparent 3px 8px, rgb(250 246 238 / .45) 8px 9px, transparent 9px);
  background-size: 132px 132px, 132px 132px, 46px 46px, 46px 46px;
  clip-path: url(#cloth-clip);
  filter: url(#cloth-warp);
}

.hero-cloth-fabric::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    radial-gradient(ellipse 5% 100% at 85.5% 25%, rgb(35 26 24 / .32), transparent),
    radial-gradient(ellipse 5% 100% at 70% 25%, rgb(35 26 24 / .28), transparent),
    radial-gradient(ellipse 5% 100% at 52.5% 25%, rgb(35 26 24 / .34), transparent),
    radial-gradient(ellipse 5% 100% at 37.5% 25%, rgb(35 26 24 / .28), transparent),
    radial-gradient(ellipse 5% 100% at 21% 25%, rgb(35 26 24 / .3), transparent),
    radial-gradient(ellipse 4% 100% at 5% 25%, rgb(35 26 24 / .3), transparent),
    radial-gradient(ellipse 6% 90% at 77.5% 85%, rgb(250 246 238 / .16), transparent),
    radial-gradient(ellipse 6% 90% at 45% 85%, rgb(250 246 238 / .14), transparent),
    radial-gradient(ellipse 6% 90% at 29% 85%, rgb(250 246 238 / .16), transparent);
}

.hero::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  z-index: -1;
  width: 18rem;
  height: 18rem;
  content: "";
  border: 1px solid var(--pewter);
  border-radius: 50%;
  opacity: .3;
}

.hero-inner {
  max-width: 760px;
}

.section-number {
  margin: 0 0 1rem;
  color: var(--glaze-apricot);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .98;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.3rem, 13vw, 7rem);
}

h2 {
  font-size: clamp(2.5rem, 9vw, 5rem);
}

.hero-description {
  max-width: 34rem;
  margin: 1.75rem 0 2rem;
  color: var(--pewter);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-link,
.gallery-footer-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--porcelain);
  font-weight: 700;
  text-decoration: none;
}

.hero-link {
  padding: .85rem 1.1rem;
  background: var(--gingham-red);
  border-radius: 9px 12px 10px 13px;
  transition:
    background var(--transition),
    transform var(--transition);
}

.hero-link:hover,
.hero-link:focus-visible {
  background: var(--heart-red);
  transform: translateY(-3px) rotate(-1deg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.hero-text-link {
  color: var(--porcelain);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--glaze-apricot);
  text-decoration-thickness: 2px;
  text-underline-offset: .3em;
}

.hero-text-link:hover,
.hero-text-link:focus-visible {
  color: var(--glaze-apricot);
}

.nav-soon {
  margin-left: .35rem;
  padding: .1rem .45rem;
  color: var(--kiln-black);
  font-size: .7rem;
  background: var(--glaze-apricot);
  border-radius: 99px;
}

/* Gallery */

.gallery-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 5rem;
  background: var(--raw-clay);
}

.speckled::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .8;
  background-image: url("images/specks.svg"), url("images/specks.svg");
  background-size: 720px 720px, 491px 491px;
  background-position: 0 0, 230px 310px;
}

.section-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-number {
  color: var(--speckle-brown);
}

.outline-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .45rem;
  padding: .7rem .9rem;
  color: var(--gingham-red);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--gingham-red);
  border-radius: 9px;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.outline-button:hover,
.outline-button:focus-visible {
  color: var(--porcelain);
  background: var(--gingham-red);
  transform: rotate(1deg);
}

.instagram-gallery {
  padding: 1rem;
  background: var(--porcelain);
  border: 1px solid var(--bisque);
  border-radius: var(--radius-large);
}

.gallery-heading {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: var(--speckle-brown);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.instagram-symbol {
  color: var(--gingham-red);
  font-size: 1.5rem;
  line-height: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.gallery-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--speckle-brown);
}

.gallery-grid a {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--bisque);
  border-radius: 10px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 600ms ease,
    filter var(--transition);
}

.gallery-grid a:nth-child(2n) img {
  transform: rotate(1deg) scale(1.02);
}

.gallery-grid a:nth-child(3n) img {
  transform: rotate(-1deg) scale(1.02);
}

.gallery-grid a:hover img,
.gallery-grid a:focus-visible img {
  filter: sepia(.12);
  transform: rotate(2deg) scale(1.08);
}

.gallery-footer-link {
  margin-top: 1.25rem;
  color: var(--gingham-red);
  font-size: .9rem;
}

.gallery-footer-link:hover,
.gallery-footer-link:focus-visible {
  color: var(--heart-red);
}

/* Eshop teaser */

.shop-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 4rem;
  background: var(--porcelain);
  border-block: 1px solid var(--bisque);
}

.shop-sign {
  max-width: 760px;
  margin-inline: auto;
  padding: 2rem 1.5rem;
  background: var(--raw-clay);
  border: 2px dashed var(--speckle-brown);
  border-radius: var(--radius-large);
  transform: rotate(-.4deg);
}

.shop-status {
  margin: 0 0 .75rem;
  color: var(--gingham-red);
  font-size: .9rem;
  font-weight: 700;
}

.shop-sign h2 {
  font-size: clamp(2rem, 7vw, 3.5rem);
}

.shop-text {
  max-width: 36rem;
  margin: 1rem 0 0;
}

.stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
}

.stages li {
  position: relative;
  padding-top: 1.6rem;
  color: var(--speckle-brown);
  font-size: .8rem;
  line-height: 1.25;
  text-align: center;
}

.stages li::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: .9rem;
  height: .9rem;
  content: "";
  background: var(--raw-clay);
  border: 2px solid var(--speckle-brown);
  border-radius: 50%;
  transform: translateX(-50%);
}

.stages li::after {
  position: absolute;
  top: .45rem;
  left: calc(50% + .6rem);
  width: calc(100% - 1.2rem);
  content: "";
  border-top: 2px dashed rgb(106 75 60 / .4);
}

.stages li:last-child::after {
  display: none;
}

.stages .is-done::before {
  background: var(--gingham-red);
  border-color: var(--gingham-red);
}

.stages .is-done::after {
  border-top: 2px solid var(--gingham-red);
}

.stages [aria-current] {
  color: var(--kiln-black);
  font-weight: 700;
}

.stages [aria-current]::before {
  background: var(--glaze-apricot);
  border-color: var(--gingham-red);
  box-shadow: 0 0 0 4px rgb(228 148 99 / .3);
}

.stage-note {
  display: block;
  margin-top: .15rem;
  color: var(--gingham-red);
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
}

/* Contact */

.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
  color: var(--porcelain);
  background: var(--backdrop-navy);
}

.contact-section::after {
  position: absolute;
  right: 7%;
  bottom: -3rem;
  width: 9rem;
  height: 9rem;
  content: "";
  pointer-events: none;
  border: 1px solid var(--stripe-blue);
  border-radius: 50%;
  opacity: .6;
}

.contact-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.contact-section .section-number {
  color: var(--glaze-apricot);
}

.contact-note {
  max-width: 24rem;
  margin: 1rem 0 0;
  color: var(--pewter);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  max-width: 34rem;
}

.contact-form label {
  display: grid;
  gap: .4rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: .8rem 1rem;
  color: var(--kiln-black);
  font: inherit;
  font-weight: 400;
  background: var(--porcelain);
  border: 2px solid transparent;
  border-radius: 12px 14px 11px 15px;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: var(--bisque);
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

button.hero-link {
  justify-self: start;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.hero-link:disabled {
  opacity: .6;
  cursor: progress;
}

.form-note {
  margin: 0;
  color: var(--pewter);
  font-size: .85rem;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  color: var(--porcelain);
  font-weight: 600;
}

.form-status.is-error {
  color: var(--candle-amber);
}

/* Social tiles */

.social-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 5rem;
  background: var(--bisque);
}

.social-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}

.social-tile {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  min-height: 110px;
  padding: 1.15rem;
  color: var(--kiln-black);
  text-decoration: none;
  background: var(--porcelain);
  border: 1px solid var(--speckle-brown);
  border-radius: 16px 19px 14px 20px;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition),
    border-radius var(--transition);
}

.social-tile:nth-child(2) {
  border-radius: 20px 14px 19px 16px;
  transform: rotate(.5deg);
}

.social-tile:nth-child(3) {
  transform: rotate(-.35deg);
}

.social-tile:nth-child(4) {
  border-radius: 14px 20px 16px 18px;
  transform: rotate(.4deg);
}

.social-tile:nth-child(5) {
  transform: rotate(-.5deg);
}

.social-tile:hover,
.social-tile:focus-visible {
  color: var(--porcelain);
  background: var(--gingham-red);
  border-color: var(--gingham-red);
  border-radius: 12px;
  transform: translateY(-5px) rotate(0);
}

.social-icon {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  color: var(--porcelain);
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--gingham-red);
  border-radius: 48% 52% 45% 55%;
}

.social-bluesky .social-icon {
  background: var(--stripe-blue);
}

.social-sashe .social-icon {
  background: var(--glaze-apricot);
}

.social-tile:hover .social-icon,
.social-tile:focus-visible .social-icon {
  color: var(--kiln-black);
  background: var(--candle-amber);
}

.social-name {
  font-family: "Fraunces", serif;
  font-size: clamp(1.35rem, 5vw, 2rem);
  letter-spacing: -.035em;
}

.social-arrow {
  color: var(--gingham-red);
  font-size: 1.1rem;
  font-weight: 700;
}

.social-tile:hover .social-arrow,
.social-tile:focus-visible .social-arrow {
  color: var(--candle-amber);
}

/* Footer */

.site-footer {
  padding-block: 1.5rem;
  color: var(--porcelain);
  background: var(--backdrop-navy);
}

.footer-inner {
  display: grid;
  align-items: center;
  gap: 1.25rem;
}

.footer-inner .logo {
  color: var(--porcelain);
}

.footer-inner p {
  margin: 0;
  color: var(--pewter);
  font-size: .85rem;
}

.back-to-top {
  color: var(--glaze-apricot);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--candle-amber);
}

/* Accessibility */

:focus-visible {
  outline: 3px solid var(--candle-amber);
  outline-offset: 4px;
}

/* Responsive layouts */

@media (min-width: 600px) {
  :root {
    --page-gutter: 2rem;
  }

  .hero {
    min-height: 700px;
  }

  .gallery-grid {
    gap: .9rem;
  }

  .instagram-gallery {
    padding: 1.5rem;
  }

  .contact-inner {
    grid-template-columns: .7fr 1.3fr;
    align-items: start;
  }

  .social-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .social-tile:last-child {
    grid-column: span 2;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
  }
}

@media (min-width: 800px) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: 0;
    background: transparent;
    border: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .site-nav a {
    padding: .5rem .75rem;
    font-size: .9rem;
  }

  .hero {
    padding-block: calc(var(--cloth-h) + 3rem) 7rem;
  }

  .gallery-section,
  .contact-section,
  .social-section {
    padding-block: 7rem;
  }

  .social-links {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-tile:last-child {
    grid-column: auto;
  }

  .social-tile {
    min-height: 145px;
    grid-template-columns: 1fr auto;
    align-content: space-between;
  }

  .social-icon {
    grid-column: 1 / -1;
  }

  .social-arrow {
    grid-column: 2;
    grid-row: 2;
  }

  .social-name {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Gentle motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-inner,
  .instagram-gallery,
  .contact-inner,
  .social-links {
    animation: fade-up 800ms both;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(18px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* 404 page */

.not-found {
  display: grid;
  min-height: 100svh;
  place-content: center;
  justify-items: start;
  gap: 1.25rem;
}

.not-found .logo-mark {
  width: 7rem;
  height: 7rem;
}

.not-found p {
  max-width: 30rem;
  margin: 0;
  color: var(--speckle-brown);
}
