/* Elin Henningsson Ceramics — complete site stylesheet */

:root {
  color-scheme: light;
  --ink: #292923;
  --muted: #77746c;
  --paper: #f6f4ee;
  --paper-deep: #ebe7dd;
  --clay: #a96548;
  --line: #dcd8cf;
  --white: #fffefa;
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --page-width: 1320px;
  --gutter: clamp(22px, 5.2vw, 82px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

::selection {
  background: #c9a48c;
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  font-size: 0.85rem;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

.grain {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.site-header {
  position: relative;
  z-index: 30;
  display: flex;
  width: min(var(--page-width), 100%);
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-block;
  font: 400 1.05rem/1.1 var(--serif);
  letter-spacing: 0.015em;
  white-space: nowrap;
}

.brand i {
  color: var(--clay);
  font-weight: 400;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 38px);
  font-size: 0.69rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-header nav a,
footer a {
  transition: color 180ms ease;
}

.site-header nav a {
  color: var(--muted);
}

.site-header nav a:hover,
footer a:hover {
  color: var(--clay);
}

.menu-button {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

main {
  overflow: clip;
}

.hero {
  position: relative;
  display: grid;
  width: min(var(--page-width), 100%);
  min-height: 740px;
  grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.88fr);
  grid-template-rows: minmax(420px, 58vw) auto;
  align-items: end;
  margin: 0 auto;
  padding: 34px var(--gutter) 98px;
  column-gap: clamp(35px, 8vw, 125px);
}

.hero-art {
  position: relative;
  grid-column: 1 / -1;
  grid-row: 1;
  height: min(63vw, 700px);
  min-height: 410px;
  overflow: hidden;
  background: #b6a18b;
}

.hero-art::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgb(25 23 19 / 36%));
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-position: center 48%;
}

.image-note {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 26px;
  margin: 0;
  color: var(--white);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
}

.hero-title {
  grid-column: 1;
  grid-row: 2;
  padding-top: 38px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--clay);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.opening h1,
.section h2,
.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

.opening h1 {
  font-size: clamp(3.7rem, 8.4vw, 8.2rem);
  letter-spacing: -0.055em;
  line-height: 0.88;
}

.opening h1 em,
.contact h2 em,
.map-copy h2 em {
  color: var(--clay);
  font-weight: 400;
}

.hero-intro {
  grid-column: 2;
  grid-row: 2;
  max-width: 390px;
  padding: 36px 0 4px;
}

.hero-intro p {
  max-width: 355px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.text-link span {
  font-size: 1.05rem;
}

.text-link:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.edition {
  position: absolute;
  right: var(--gutter);
  bottom: 30px;
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  width: min(var(--page-width), 100%);
  margin: 0 auto;
  padding: clamp(90px, 12vw, 175px) var(--gutter);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.62fr);
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 90px);
}

.section-heading h2,
.about-copy h2,
.map-copy h2,
.writing-title h2 {
  font-size: clamp(3.4rem, 7.1vw, 7rem);
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.section-heading > p {
  max-width: 400px;
  margin: 0 0 4px auto;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.85;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.88fr 1.06fr;
  gap: clamp(16px, 3vw, 42px);
  align-items: start;
}

.work-card {
  min-width: 0;
  margin: 0;
}

.work-two {
  margin-top: 95px;
}

.work-three {
  margin-top: 32px;
}

.ceramic-art {
  height: clamp(280px, 42vw, 560px);
  overflow: hidden;
  background: var(--paper-deep);
}

.work-two .ceramic-art {
  height: clamp(250px, 34vw, 455px);
}

.ceramic-art img {
  width: 100%;
  height: 100%;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1);
}

.work-card:hover .ceramic-art img {
  transform: scale(1.035);
}

.work-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
}

.work-card figcaption span {
  font: 400 1.35rem/1.2 var(--serif);
}

.work-card figcaption small {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.shop {
  background: var(--paper-deep);
}

.shop-address {
  margin: 18px 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.shop-photo {
  margin: 0;
}

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

.product {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 14px 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dimensions,
.release-note {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.product-no {
  display: none;
}

.product-art {
  grid-row: 1 / span 2;
}

.status {
  grid-column: 2;
}

.product-art img {
  display: block;
  width: 90px;
  height: auto;
}

.product h3 {
  margin: 0 0 8px;
  font: 400 clamp(1.5rem, 3vw, 2rem)/1.2 var(--serif);
}

.dimensions {
  margin: 0;
}

.status {
  font-size: 0.75rem;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.status:hover,
.status:focus-visible {
  color: var(--clay);
}

.release-note {
  margin: 24px 0 0;
}

@media (max-width: 640px) {
  .product {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px 20px;
  }

  .product-no {
    display: none;
  }

  .product-art {
    grid-row: 1 / span 2;
  }

  .product-art img {
    width: 90px;
  }

  .status {
    grid-column: 2;
  }
}

.split-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(45px, 10vw, 150px);
  align-items: center;
}

.opening-copy,
.shop-copy {
  min-width: 0;
}

.opening-copy .hero-title {
  padding-top: 0;
}

.opening-copy .hero-intro {
  max-width: 455px;
  padding-top: 30px;
}

.opening h1 {
  font-size: clamp(3.1rem, 6vw, 6.2rem);
  line-height: 0.95;
}

.opening-edition {
  display: block;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portrait {
  height: clamp(460px, 68vw, 790px);
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.portrait img {
  height: 100%;
  object-position: center;
}

.about-copy {
  max-width: 560px;
  padding: 30px 0;
}

.about-copy h2 {
  max-width: 540px;
  margin-bottom: 38px;
  font-size: clamp(3.1rem, 6vw, 6.2rem);
}

.about-copy > p:not(.eyebrow) {
  max-width: 455px;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.9;
}

.about-copy .lead {
  color: var(--ink) !important;
  font: 400 1.45rem/1.5 var(--serif) !important;
}

.about-copy .text-link {
  margin-top: 20px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  grid-template-rows: auto auto;
  gap: 42px clamp(40px, 9vw, 135px);
  align-items: end;
}

.contact-heading {
  grid-column: 1;
  grid-row: 1;
}

.contact h2 {
  font-size: clamp(3.5rem, 7vw, 7rem);
  letter-spacing: -0.055em;
  line-height: 0.91;
}

.contact-photo {
  grid-column: 2;
  grid-row: 1 / span 2;
  height: clamp(390px, 58vw, 720px);
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.contact-photo img {
  height: 100%;
}

.contact-detail {
  grid-column: 1;
  grid-row: 2;
  max-width: 440px;
  padding-bottom: 8px;
}

.contact-detail p {
  max-width: 370px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.contact-detail > a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.77rem;
  letter-spacing: 0.04em;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-detail > a:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.art-map {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(40px, 8vw, 115px);
  align-items: center;
}

.map-copy h2 {
  margin-bottom: 27px;
  font-size: clamp(3.4rem, 6vw, 6.5rem);
}

.map-copy > p:last-child {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.85;
}

.map {
  position: relative;
  min-height: 430px;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: #e4e0d4;
  background-image: linear-gradient(28deg, transparent 46%, #d2d2c5 47%, #d2d2c5 49%, transparent 50%), linear-gradient(114deg, transparent 46%, #d2d2c5 47%, #d2d2c5 49%, transparent 50%);
  background-size: 230px 190px, 280px 220px;
}

.map > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #aeb0a0;
  stroke-width: 4;
  opacity: 0.76;
}

.pin {
  position: absolute;
  z-index: 1;
  display: block;
  min-width: 135px;
  padding: 12px 14px 11px;
  background: var(--paper);
  box-shadow: 0 5px 18px rgb(50 45 36 / 10%);
  font-size: 0.67rem;
  letter-spacing: 0.025em;
  line-height: 1.45;
}

.pin i {
  display: inline-grid;
  width: 23px;
  height: 23px;
  place-items: center;
  margin: 0 7px 7px 0;
  border-radius: 50%;
  background: var(--clay);
  color: white;
  font-size: 0.58rem;
  font-style: normal;
}

.pin small {
  display: block;
  padding-left: 31px;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pin-a { top: 21%; left: 12%; }
.pin-b { top: 56%; left: 46%; }
.pin-c { top: 23%; right: 7%; }

/* Keep the interactive Google Map within the responsive map frame. */
.map iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.writing {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 9vw, 130px);
}

.writing-title h2 {
  font-size: clamp(3.3rem, 6.2vw, 6.6rem);
}

.essay-list {
  border-top: 1px solid var(--ink);
}

.essay-list > a {
  position: relative;
  display: block;
  padding: 22px 42px 26px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 220ms ease;
}

.essay-list > a:hover {
  padding-left: 10px;
}

.date {
  color: var(--clay);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.essay-list h3 {
  margin: 10px 0 0;
  font: 400 clamp(1.7rem, 3vw, 2.8rem)/1.1 var(--serif);
}

.arrow {
  position: absolute;
  top: 50%;
  right: 3px;
  color: var(--muted);
  font-size: 1.2rem;
  transform: translateY(-50%);
  transition: color 180ms ease, transform 180ms ease;
}

.essay-list > a:hover .arrow {
  color: var(--clay);
  transform: translate(3px, -50%);
}

footer {
  display: flex;
  width: min(var(--page-width), 100%);
  min-height: 125px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 auto;
  padding: 28px var(--gutter) 35px;
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  line-height: 1.8;
  text-align: center;
  text-transform: uppercase;
}

footer > div {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  animation: arrive 700ms both;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 1500px) {
  .hero {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .site-header nav {
    gap: 16px;
    font-size: 0.62rem;
  }

  .hero {
    min-height: 0;
    padding-bottom: 88px;
  }

  .hero-art {
    height: 60vw;
    min-height: 380px;
  }

  .opening h1 {
    font-size: clamp(3.5rem, 9vw, 6.2rem);
  }

  .section-heading {
    gap: 35px;
  }

  .split-layout {
    gap: 45px;
  }

  .art-map {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .map-copy h2 br {
    display: none;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 75px;
  }

  .site-header {
    min-height: 72px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .brand {
    font-size: 0.96rem;
  }

  .menu-button {
    display: inline-block;
  }

  .site-header nav {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 9px var(--gutter) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    font-size: 0.69rem;
  }

  .site-header.menu-open nav,
  .site-header nav.is-open {
    display: flex;
  }

  .site-header nav a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 18px;
    padding-bottom: 75px;
  }

  .hero-art {
    width: 100%;
    height: 112vw;
    min-height: 370px;
    max-height: 560px;
  }

  .hero-title {
    padding-top: 31px;
  }

  .opening h1 {
    font-size: clamp(3.6rem, 16vw, 6.2rem);
  }

  .hero-intro {
    max-width: 440px;
    padding-top: 23px;
  }

  .hero-intro p {
    font-size: 0.94rem;
  }

  .edition {
    right: var(--gutter);
    bottom: 26px;
  }

  .section {
    padding-top: 78px;
    padding-bottom: 82px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 39px;
  }

  .section-heading h2,
  .about-copy h2,
  .map-copy h2,
  .writing-title h2 {
    font-size: clamp(3.3rem, 15vw, 5.4rem);
  }

  .section-heading > p {
    max-width: 440px;
    margin: 0;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 14px;
  }

  .work-two,
  .work-three {
    margin-top: 0;
  }

  .work-two {
    padding-top: 55px;
  }

  .work-three {
    grid-column: 1 / -1;
    width: 76%;
    margin-left: auto;
  }

  .ceramic-art,
  .work-two .ceramic-art {
    height: clamp(230px, 67vw, 390px);
  }

  .work-three .ceramic-art {
    height: clamp(300px, 90vw, 460px);
  }

  .work-card figcaption span {
    font-size: 1.18rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .portrait {
    height: 115vw;
    max-height: 620px;
  }

  .about-copy {
    padding: 0;
  }

  .about-copy h2 {
    margin-bottom: 27px;
  }

  .contact {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
  }

  .contact-heading,
  .contact-photo,
  .contact-detail {
    grid-column: 1;
    grid-row: auto;
  }

  .contact h2 {
    font-size: clamp(3.4rem, 14.5vw, 5.4rem);
  }

  .contact-photo {
    height: 105vw;
    max-height: 570px;
  }

  .map {
    min-height: 350px;
    aspect-ratio: auto;
  }

  .pin {
    min-width: 115px;
    padding: 9px 10px;
    font-size: 0.6rem;
  }

  .pin small {
    font-size: 0.52rem;
  }

  .pin-a { top: 18%; left: 5%; }
  .pin-b { top: 54%; left: 37%; }
  .pin-c { top: 22%; right: 4%; }

  .writing {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .writing-title h2 {
    font-size: clamp(3.2rem, 14vw, 5.2rem);
  }

  .essay-list > a {
    padding-top: 19px;
    padding-bottom: 22px;
  }

  footer {
    min-height: 0;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 25px;
    padding-bottom: 28px;
  }

  footer p {
    order: 3;
    width: 100%;
    text-align: left;
  }

  footer > div {
    gap: 16px;
    font-size: 0.61rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

