/*
Coathreads Atelier — foundation
*/

:root {
  --coat-bg: #f4f1eb;
  --coat-paper: #ffffff;
  --coat-ink: #111111;
  --coat-muted: #6f6b64;
  --coat-soft: #ece9e3;
  --coat-line: rgba(17, 17, 17, .16);
  --coat-dark: #1e231f;
  --coat-accent: #6f2f32;
  --coat-ui: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --coat-display: Didot, "Bodoni MT", "Times New Roman", serif;
  --coat-wrap: 1360px;
  --coat-header-height: 76px;
  --coat-announcement-height: 30px;
  --coat-ease: cubic-bezier(.2, .72, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--coat-bg);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--coat-bg);
  color: var(--coat-ink);
  font-family: var(--coat-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.coat-lock-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

button {
  color: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto !important;
  background: #fff;
  color: #000;
}

.coat-wrap {
  width: min(calc(100% - 48px), var(--coat-wrap));
  margin-inline: auto;
}

.coat-site {
  min-height: 50vh;
}

.coat-kicker {
  margin: 0 0 12px;
  color: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.coat-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid var(--coat-ink);
  border-radius: 0;
  background: var(--coat-ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms var(--coat-ease);
}

.coat-button:hover,
.coat-button:focus-visible {
  background: transparent;
  color: var(--coat-ink);
  transform: translateY(-1px);
}

.coat-button--secondary {
  background: transparent;
  color: var(--coat-ink);
}

.coat-button--secondary:hover,
.coat-button--secondary:focus-visible {
  background: var(--coat-ink);
  color: #fff;
}

.coat-button--light {
  border-color: #fff;
  background: #fff;
  color: var(--coat-ink);
}

.coat-button--light:hover,
.coat-button--light:focus-visible {
  background: transparent;
  color: #fff;
}

.coat-icon-button {
  min-width: 38px;
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.coat-icon-button svg {
  width: 20px;
  height: 20px;
}

.coat-rich-text {
  color: var(--coat-muted);
  font-size: 15px;
  line-height: 1.75;
}

.coat-rich-text > :first-child {
  margin-top: 0;
}

.coat-rich-text > :last-child {
  margin-bottom: 0;
}

.coat-rich-text h2,
.coat-rich-text h3 {
  color: var(--coat-ink);
}

.coat-empty-state {
  min-height: 480px;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--coat-soft);
  color: var(--coat-muted);
  font-size: 13px;
  text-align: center;
}

[data-coat-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms var(--coat-ease),
    transform 620ms var(--coat-ease);
}

[data-coat-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.coat-404 {
  min-height: 65vh;
  display: grid;
  place-items: center;
  padding-block: 90px;
  text-align: center;
}

.coat-404 h1 {
  margin: 0 0 30px;
  font-family: var(--coat-ui);
  font-size: clamp(46px, 8vw, 100px);
  font-weight: 500;
  letter-spacing: -.055em;
}

.coat-post-list {
  display: grid;
  gap: 1px;
  background: var(--coat-line);
}

.coat-post-card {
  padding: 38px;
  background: #fff;
}

.coat-post-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -.035em;
}

.coat-post-card h2 a {
  text-decoration: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-coat-reveal] {
    opacity: 1;
    transform: none;
  }
}
