/* Ceramik'Art — colour taken from the glazes; a display serif for names, a quiet sans for the rest. */

@font-face {
  font-family: "Gloock";
  src: url("../assets/fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  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: "Gloock";
  src: url("../assets/fonts/gloock-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  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: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --white: oklch(1 0 0);
  --night: oklch(0.17 0.012 17);

  --font-display: "Gloock", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --wall-pad: clamp(3rem, 8vh, 5.5rem);
  --header-h: 3.75rem;

  --step-0: 1.0625rem;
  --step-1: clamp(1.15rem, 0.6vw + 1rem, 1.4rem);
  --step-2: clamp(1.5rem, 1.5vw + 1.15rem, 2.35rem);
  --step-display: clamp(2.9rem, 9.5vw, 6rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 10;
  --z-skip: 20;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--night);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, dl, dd, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: var(--z-skip);
  padding: 0.6rem 1rem;
  background: var(--night);
  color: var(--white);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------ header: takes the colour of the wall under it */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  background: var(--header-bg, var(--white));
  color: var(--header-ink, var(--night));
  transition: background-color 0.35s ease, color 0.35s ease;
}

.top__mark {
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  padding-block: 0.6rem;
  transition: opacity 0.35s ease, transform 0.6s var(--ease-out);
}
.top[data-at-hero] .top__mark {
  opacity: 0;
  transform: translateY(-0.4rem);
  pointer-events: none;
}

.top__nav {
  display: flex;
  gap: clamp(0.75rem, 2.2vw, 1.75rem);
}
.top__nav a,
.lang button {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding-block: 0.8rem;
}
.top__nav a {
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}
.top__nav a:hover,
.top__nav a[aria-current="page"] { text-decoration-thickness: 2px; }

.lang { display: flex; }
.lang button {
  background: none;
  border: 0;
  padding-inline: 0.45rem;
  cursor: pointer;
  opacity: 0.6;
}
.lang button[aria-pressed="true"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 2px;
}
.lang button:hover { opacity: 1; }

@media (max-width: 30rem) {
  .top__opt { display: none; }
  .top__mark { font-size: 1.25rem; }
}

/* ------------------------------------------------------------ walls */

.wall {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  padding: var(--wall-pad) var(--gutter);
  overflow: clip;
}

.wall__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.75rem, 4vw, 3.25rem);
}
.wall__head h2,
.hero h1,
.atelier h2,
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-display);
  line-height: 1;
  letter-spacing: -0.012em;
}
.wall__head p {
  max-width: 30ch;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 56rem) {
  .wall__head {
    grid-template-columns: 1fr minmax(0, 24rem);
    align-items: end;
    column-gap: 3rem;
  }
}

/* ------------------------------------------------------------ pieces */

.pieces {
  display: grid;
  gap: clamp(2.5rem, 9vw, 4rem);
}

.piece:nth-child(even) { width: 84%; margin-left: auto; }

.piece__img {
  position: relative;
  perspective: 1400px;
}
.flip { position: relative; }
.piece__img img {
  width: 100%;
  filter: drop-shadow(0 1.3rem 1.4rem oklch(0 0 0 / 0.3));
}

/* the 3D view sits exactly where the photo was */
.piece__3d {
  position: absolute;
  inset: -5%;
}
.piece__3d[hidden] { display: none; }
.piece__3d model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: transparent;
}
.piece.is-3d .piece__img img { visibility: hidden; }

.piece figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.9rem;
  row-gap: 0.1rem;
  align-items: baseline;
  margin-top: 1.25rem;
}
.piece__no {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.piece__cap { font-weight: 500; max-width: 34ch; }
.piece__links,
.piece__note { grid-column: 2; }
.piece__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.4rem;
}
.piece__ask,
.piece__view {
  font-size: 0.95rem;
  padding: 0.7rem 0;
}
.piece__view {
  background: none;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}
.piece__view[aria-busy="true"]::after { content: "…"; }
.piece__note {
  font-size: 0.9rem;
  line-height: 1.4;
  max-width: 40ch;
}
.piece__note[hidden] { display: none; }

@media (min-width: 56rem) {
  .pieces {
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1rem, 2vw, 2rem);
    row-gap: 0;
    align-items: start;
  }
  .piece:nth-child(even) { width: auto; margin-left: 0; }

  .wall--trio .piece:nth-child(1) { grid-column: 1 / span 4; }
  .wall--trio .piece:nth-child(2) { grid-column: 5 / span 4; margin-top: 20%; }
  .wall--trio .piece:nth-child(3) { grid-column: 9 / span 4; margin-top: 5%; }

  .wall--duo .piece:nth-child(1) { grid-column: 1 / span 6; }
  .wall--duo .piece:nth-child(2) { grid-column: 8 / span 5; align-self: center; }
  .wall--duo:nth-of-type(even) .piece:nth-child(1) { grid-column: 7 / span 6; grid-row: 1; }
  .wall--duo:nth-of-type(even) .piece:nth-child(2) { grid-column: 1 / span 5; grid-row: 1; }

  .wall--solo,
  .wall--solo-tall {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
  }
  .wall--solo .wall__head,
  .wall--solo-tall .wall__head {
    display: block;
    margin: 0;
  }
  .wall--solo .wall__head p,
  .wall--solo-tall .wall__head p { margin-top: 1.5rem; }
  .wall--solo .pieces,
  .wall--solo-tall .pieces { display: block; }

  .wall--solo .wall__head { grid-column: 1 / span 5; }
  .wall--solo .pieces { grid-column: 7 / span 6; }

  .wall--solo-tall .wall__head { grid-column: 7 / span 6; grid-row: 1; }
  .wall--solo-tall .pieces { grid-column: 2 / span 4; grid-row: 1; }
}

/* a tall piece should not fill a whole phone screen and more */
@media (max-width: 55.99rem) {
  .wall--solo-tall .piece { width: 68%; margin-inline: auto; }
}

/* ------------------------------------------------------------ hero */

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.25rem;
  padding-top: calc(var(--header-h) + clamp(0.75rem, 4vh, 5rem));
  padding-bottom: 0;
}
.hero__statement {
  margin-top: 0.9rem;
  max-width: 22ch;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* on the first screen the menu sits under the tagline, not in the bar */
.hero__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1.25rem, 2.5vw, 2rem);
  margin-top: clamp(1rem, 3vh, 1.75rem);
}
.hero__nav a {
  padding-block: 0.6rem;
  font-size: var(--step-1);
  font-weight: 600;
}
.top__nav { transition: opacity 0.3s ease, visibility 0.3s; }
.top[data-at-hero] .top__nav { opacity: 0; visibility: hidden; }

/* one of everything she makes, set out on a white wall */
.hero__plates {
  position: relative;
  min-height: clamp(22rem, 112vw, 34rem);
  margin-inline: calc(var(--gutter) * -1);
}
.hero__plate {
  position: absolute;
  filter: drop-shadow(0 1.2rem 1.4rem oklch(0 0 0 / 0.3));
  rotate: var(--turn, 0deg);
}
.hero__plate--1 { width: 60%; right: -17%; top: 0; }
.hero__plate--2 { width: 30%; left: 7%; top: 3%; z-index: 1; }
.hero__plate--3 { width: 30%; right: 7%; top: 50%; z-index: 1; }
.hero__plate--4 { width: 42%; left: 24%; top: 75%; z-index: 2; }
.hero__plate--5,
.hero__plate--6 { display: none; }

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    align-content: start;
    padding-top: calc(var(--header-h) + clamp(1.5rem, 9vh, 5.5rem));
    padding-bottom: var(--wall-pad);
  }
  .hero__text { grid-column: 1 / span 6; position: relative; z-index: 3; }
  .hero__plates {
    position: absolute;
    inset: 0;
    min-height: 0;
    margin: 0;
  }
  .hero__plate--1 { width: min(30vw, 50vh); right: -5vw; top: 7%; }
  .hero__plate--2 { width: min(20vw, 32vh); left: max(44.5vw, 41rem); top: 11%; }
  .hero__plate--3 { width: min(17vw, 27vh); left: auto; right: 19vw; top: auto; bottom: -3%; }
  .hero__plate--4 { width: min(21vw, 34vh); left: auto; right: -2.5vw; top: auto; bottom: 9%; }
  .hero__plate--5 { display: block; width: min(24vw, 40vh); left: -4vw; bottom: -17%; }
  .hero__plate--6 { display: block; width: min(20vw, 33vh); left: 21vw; bottom: 6%; }
}
@media (min-width: 56rem) and (max-width: 79.99rem) {
  .hero__plate--1 { width: min(26vw, 44vh); right: -9vw; top: 4%; }
  .hero__plate--2 { left: auto; right: 21vw; top: auto; bottom: 4%; }
  .hero__plate--3 { right: 1vw; }
  .hero__plate--4 { display: none; }
}

/* entrance: the pieces are set down, the name comes up */
@keyframes set-down {
  from { opacity: 0; scale: 0.9; rotate: -28deg; }
}
@keyframes stand-up {
  from { opacity: 0; translate: 0 1.5rem; }
}
@keyframes come-up {
  from { clip-path: inset(100% 0 0 0); translate: 0 0.35em; }
  to { clip-path: inset(-10% 0 -10% 0); }
}
@keyframes fade-in {
  from { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: come-up 0.9s var(--ease-out) backwards; }
  .hero__statement { animation: fade-in 0.8s ease 0.35s backwards; }
  .hero__nav { animation: fade-in 0.8s ease 0.5s backwards; }
  .hero__plate { animation: stand-up 1.1s var(--ease-out) backwards; }
  .hero__plate[data-round] { animation-name: set-down; animation-duration: 1.3s; }
  .hero__plate--2 { animation-delay: 0.1s; }
  .hero__plate--3 { animation-delay: 0.2s; }
  .hero__plate--4 { animation-delay: 0.3s; }
  .hero__plate--5 { animation-delay: 0.4s; }
  .hero__plate--6 { animation-delay: 0.5s; }
}

/* round plates turn a little as they pass, as on a wheel */
@keyframes wheel {
  from { rotate: -14deg; }
  to { rotate: 14deg; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .piece--round .piece__img img {
      animation: wheel linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}

/* ------------------------------------------------------------ atelier */

.atelier {
  display: grid;
  gap: clamp(2.25rem, 7vw, 5rem);
}
.atelier__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.6rem, 1.5vw, 1.25rem);
}
.atelier__photos img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.atelier h2 { color: var(--accent); }
.atelier__lead {
  margin-top: 1.5rem;
  max-width: 28ch;
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.atelier h3 {
  margin-top: clamp(2.25rem, 6vw, 4rem);
  font-size: var(--step-0);
  font-weight: 700;
}
.atelier h3 + p { margin-top: 0.5rem; max-width: 58ch; }

@media (min-width: 56rem) {
  .atelier {
    grid-template-columns: repeat(12, 1fr);
    column-gap: clamp(1rem, 2vw, 2rem);
    align-items: center;
  }
  .atelier__photos { grid-column: 1 / span 7; }
  .atelier__text { grid-column: 9 / span 4; }
}

/* ------------------------------------------------------------ contact */

.contact { padding-bottom: 2rem; }
.contact__head p {
  margin-top: 1.25rem;
  max-width: 36ch;
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.35;
}

.contact__about {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  font-weight: 600;
}
.contact__about[hidden] { display: none; }
.contact__about img { width: 4rem; height: 4rem; object-fit: contain; }
.contact__about button {
  background: none;
  border: 0;
  padding: 0.75rem 0.25rem;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  cursor: pointer;
}

.contact__ways {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem clamp(2rem, 6vw, 5rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.contact__ways [hidden] { display: none; }
.contact__ways dt {
  font-size: 0.95rem;
  opacity: 0.8;
}
.contact__ways dd {
  font-size: var(--step-2);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: clamp(3.5rem, 12vw, 8rem);
  font-size: 0.95rem;
}

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

/* ------------------------------------------------------------ home: the way into the portfolio */

.all { padding-block: clamp(2.5rem, 7vh, 4.5rem); }
.all__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  text-decoration: none;
}
.all__link > span:first-child {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 2px;
}
.all__link:hover > span:first-child { text-decoration-thickness: 4px; }
.all__count {
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 500;
}

/* ------------------------------------------------------------ portfolio: everything, by family */

.folio { padding-top: calc(var(--header-h) + clamp(1.5rem, 6vh, 4rem)); }
.folio__head h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-display);
  line-height: 1;
  letter-spacing: -0.012em;
}
.folio__head p {
  margin-top: 0.75rem;
  font-size: var(--step-1);
  font-weight: 500;
}
.families { margin-top: clamp(1.25rem, 3vh, 2rem); }
.families ol {
  display: flex;
  flex-wrap: wrap;
}
.families ol { gap: 0.1rem 1.6rem; }
.families a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding-block: 0.5rem;
  font-weight: 600;
}
.count {
  font-size: 0.85em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.family { margin-top: clamp(3rem, 9vh, 5.5rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.family__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid currentColor;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}
.family__head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.05;
}
.family__head .count { font-size: var(--step-1); }

.rack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 2.5vw, 2.25rem);
}
@media (min-width: 44rem) { .rack { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 72rem) { .rack { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.rack .piece,
.rack .piece:nth-child(even) { width: auto; margin: 0; }
.rack .piece__img img {
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 0.8rem 0.9rem oklch(0 0 0 / 0.22));
}
.family--tall .rack .piece__img img { aspect-ratio: 3 / 4; }
.rack .piece__3d { inset: 0; }
.rack figcaption {
  grid-template-columns: 1fr;
  margin-top: 0.9rem;
}
.rack .piece__no { font-size: 1.15rem; }
.rack .piece__cap { font-size: 0.98rem; line-height: 1.35; }
.rack .piece__links,
.rack .piece__note { grid-column: 1; }
.rack .piece__ask,
.rack .piece__view { padding-block: 0.5rem; }



/* ------------------------------------------------------------ every link and text button looks the same */

.top__nav a,
.hero__nav a,
.lang button[aria-pressed="true"],
.families a,
.piece__ask,
.piece__view,
.contact__about button,
.contact__ways dd a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}
.top__nav a:hover,
.hero__nav a:hover,
.top__nav a[aria-current="page"],
.lang button[aria-pressed="true"],
.families a:hover,
.piece__ask:hover,
.piece__view:hover,
.piece__view[aria-pressed="true"],
.contact__about button:hover,
.contact__ways dd a:hover { text-decoration-thickness: 2px; }

/* installations are shown as the photo itself, not cut out */
.piece--scene .piece__img img,
.rack .piece--scene .piece__img img {
  object-fit: cover;
  object-position: center;
  filter: none;
}

/* ------------------------------------------------------------ logo: drawn in the colour of the text around it */

.logo {
  display: block;
  aspect-ratio: 961 / 293;
  background: currentColor;
  -webkit-mask: url("../assets/logo/logo.png") center / contain no-repeat;
  mask: url("../assets/logo/logo.png") center / contain no-repeat;
}
.top__mark { padding-block: 0.5rem; }
.top__mark .logo { height: 2.35rem; }
.hero h1 .logo { width: min(100%, 34rem); margin-left: -0.6%; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 30rem) {
  .top__mark .logo { height: 2rem; }
}
