:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #202926;
  background: #f1f3ee;
  line-height: 1.55;
  --forest: #162822;
  --accent: #dfb269;
  --muted: #4b5a54;
  --line: #dce2da;
  --gutter: clamp(1rem, 4.5vw, 5rem);
  --content: min(calc(100% - 2 * var(--gutter)), clamp(72rem, 68vw, 106rem));
  --step-size: 2.375rem;
}

* { box-sizing: border-box; }
body { min-height: 100svh; display: flex; flex-direction: column; margin: 0; }
main { flex: 1; display: flex; flex-direction: column; padding-block-start: clamp(1rem, 2.5vw, 3rem); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid #a4712c; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: var(--content); margin-inline: auto; }
h1, h2, h3, p { margin: 0; }

.site-header { background: var(--forest); color: #fff; }
.header-inner { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; white-space: nowrap; }
.brand-mark {
  width: 1.25rem;
  height: 1rem;
  background: var(--accent);
  clip-path: polygon(0 100%, 35% 31%, 50% 57%, 72% 0, 100% 100%);
}
nav { display: flex; gap: clamp(.8rem, 3vw, 2rem); }
nav a { padding-block: .7rem; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: clamp(20rem, 26vw, 27.5rem);
  overflow: hidden;
  border-radius: .8rem;
  color: #fff;
  background: var(--forest);
}
.hero-inner { align-self: center; padding: clamp(1.25rem, 4vw, 4.25rem); }
.hero h1 { font-size: clamp(2.15rem, 3.85vw, 4.6rem); line-height: 1.15; letter-spacing: -.025em; }
.hero p { margin-block: .95rem 1.65rem; font-size: clamp(1rem, 1.3vw, 1.25rem); text-wrap: pretty; }
.button, .entry-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .55rem 1.1rem;
  border-radius: .3rem;
  font-weight: 700;
}
.hero-button { background: var(--accent); color: #25261d; }
.hero-button:hover { background: #f1c785; }
.hero-image {
  position: relative;
  background: linear-gradient(90deg, #16282240, transparent 40%), url("coal-yard.webp") center 52% / cover;
}
.hero-caption {
  position: absolute;
  inset: auto 1rem 1rem auto;
  background: #162822;
  border-radius: .2rem;
  padding: .15rem .55rem;
  font-size: .875rem;
}

.details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.7rem, 5svh, 4.75rem);
  padding-block: clamp(1.7rem, 5svh, 4.75rem);
}
.details section { scroll-margin-block: 1rem; }
.details section:target { outline: 2px solid #947246; outline-offset: .5rem; border-radius: .5rem; }
h2 { font-size: clamp(1.45rem, 2.5vw, 2.1rem); line-height: 1.25; margin-bottom: 1.25rem; }
h3 { font-size: 1.23rem; line-height: 1.3; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.workflow-grid li { position: relative; padding-inline-end: 1rem; }
.workflow-grid li:not(:last-child)::before {
  content: "";
  position: absolute;
  inset: calc(var(--step-size) / 2) 0 auto var(--step-size);
  border-top: 2px solid #b9c8bd;
}
.step-number {
  display: grid;
  place-items: center;
  width: var(--step-size);
  height: var(--step-size);
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-weight: 700;
}
.workflow-grid h3 { margin-block: .75rem .4rem; }
.workflow-grid p { color: var(--muted); }

.access {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem clamp(1rem, 3vw, 3rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #fff;
}
.access h2 { margin: 0; }
.access-content { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.entry-list { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.entry-list a { background: var(--forest); color: #fff; }
.entry-list a:hover { background: #304c40; }
#access-status, .pending { color: var(--muted); white-space: nowrap; }
#access-status { padding: .25rem .6rem; border-radius: .25rem; background: #eef1ea; }
.pending { display: none; }
.has-links .pending { display: inline; }

@media (min-width: 80rem) and (min-height: 70rem) {
  main { padding-block-start: clamp(3rem, 6svh, 7rem); }
  .details { justify-content: space-evenly; }
  .details h2 { font-size: 2.35rem; }
  .details h3 { font-size: 1.45rem; }
  .details p, .entry-list { font-size: 1.125rem; }
}

@media (max-width: 50rem) {
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid li { padding: .1rem 0 1.25rem calc(var(--step-size) + .85rem); }
  .workflow-grid li:last-child { padding-bottom: 0; }
  .workflow-grid li:not(:last-child)::before {
    inset: var(--step-size) auto 0 calc(var(--step-size) / 2 - 1px);
    border: 0;
    border-left: 2px solid #b9c8bd;
  }
  .step-number { position: absolute; inset: 0 auto auto 0; }
  .workflow-grid h3 { margin-block-start: 0; }
  .access-content { flex-basis: 100%; }
}

@media (max-width: 42rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-inner { padding: 1.4rem; }
  .hero-image { min-height: clamp(10rem, 46vw, 15rem); }
}

@media (max-width: 23rem) {
  .header-inner { flex-wrap: wrap; justify-content: flex-start; gap: 0 1rem; padding-top: .4rem; }
}
