:root {
  --soil: #2a1f16;
  --sage: #6a7a4a;
  --sage-2: #c5d1a8;
  --caramel: #a86a2a;
  --steam: #f3ebe0;
  --meoh: #c23a3a;
  --mute: #7a6c5c;
  --line: rgba(42, 31, 22, 0.16);
  --display: "Fraunces", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: 68px;
}

body {
  margin: 0;
  background: var(--steam);
  color: var(--soil);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

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

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

a[href^="https://apps.chatsoftware.cn"] {
  color: var(--caramel);
  text-decoration: underline;
  text-underline-offset: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.9em;
}

.ash {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.08;
  background-image: url("images/texture.webp");
  background-size: 520px;
  mix-blend-mode: multiply;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 60;
  background: var(--caramel);
  color: #fff;
  padding: 8px;
}

.oven-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(243, 235, 224, 0.92);
  border-bottom: 4px solid var(--sage);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--mute);
}

.hatch {
  display: none;
  margin-left: auto;
  background: var(--sage);
  color: var(--steam);
  border: 0;
  padding: 6px 12px;
}

#stack {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 14px;
}

#stack a {
  color: var(--mute);
}

#stack a:hover,
#stack a.on {
  color: var(--caramel);
}

.fire {
  display: inline-flex;
  padding: 8px 14px;
  background: var(--caramel);
  color: #fff !important;
  text-decoration: none !important;
}

.kiln {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
}

.kiln > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kiln::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(42, 31, 22, 0.1) 0%, rgba(42, 31, 22, 0.82) 100%);
}

.kiln-copy {
  position: relative;
  z-index: 1;
  color: var(--steam);
  padding: 10vh 7vw;
  max-width: 760px;
}

.ember {
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--caramel);
}

h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  margin: 8px 0 16px;
}

h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 40px);
}

h3 {
  font-family: var(--display);
  margin: 0 0 8px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stone {
  border: 1px solid var(--steam);
  padding: 8px 14px;
}

.ring {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.heat {
  width: 100%;
  background: #e6d7c2;
  padding: 72px 0;
}

.heat .ember,
.heat h2,
.heat .lede,
.heat .ring-item,
.heat .blocks {
  width: min(1080px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.lede {
  color: var(--mute);
}

.blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.blocks article {
  background: #fffaf3;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px 28px 4px 4px;
}

.blocks ul,
#edge ol {
  margin: 0;
  padding-left: 1.1em;
}

.blocks li {
  color: var(--mute);
}

.ring-item {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 20px;
  align-items: start;
  margin: 28px auto;
  padding: 16px 0;
  border-top: 1px dashed var(--sage);
}

.ring-item b {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--sage);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--sage);
}

.ring-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 40% 8px 8px 8px;
}

figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--mute);
  font-style: italic;
}

.ring-item p {
  color: var(--mute);
}

.hours {
  margin-top: 12px;
  padding: 10px;
  background: rgba(168, 106, 42, 0.1);
  border: 1px dashed var(--caramel);
}

.track {
  height: 10px;
  background: rgba(42, 31, 22, 0.1);
  margin: 8px 0;
}

.track i {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--meoh);
}

.hours button {
  background: transparent;
  border: 1px solid var(--caramel);
  color: var(--caramel);
  padding: 4px 10px;
}

.hex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  list-style: none;
  padding: 0;
}

.hex li {
  padding: 14px;
  background: #fffaf3;
  border-left: 6px solid var(--sage);
}

.hex p {
  margin: 0;
  color: var(--mute);
  font-size: 14px;
}

#edge ol {
  max-width: 42em;
}

footer {
  background: var(--soil);
  color: var(--sage-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 6vw;
  font-size: 13px;
}

footer a {
  color: #e2b07a;
}

@media (max-width: 860px) {
  .hatch {
    display: block;
  }

  #stack {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 18px;
    background: var(--steam);
    border-bottom: 4px solid var(--sage);
  }

  #stack.open {
    display: flex;
  }

  .blocks,
  .ring-item,
  .hex,
  footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  footer {
    display: flex;
    flex-direction: column;
  }

  .ring-item img {
    height: 190px;
    border-radius: 24% 8px 8px 8px;
  }
}
