.guide-page {
  min-height: 100%;
  color: #151519;
  background:
    linear-gradient(rgba(0, 0, 0, .22), rgba(0, 0, 0, .5)),
    url("../assets/section-guides/size-guide-bg.jpg") center top / cover fixed no-repeat,
    #070708;
}

.guide-page .nav {
  border-bottom: 1px solid rgba(20, 20, 25, .1);
  background: rgba(255, 255, 255, .9);
  color: #111;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.guide-main {
  display: grid;
  gap: clamp(18px, 3vw, 36px);
  width: min(1440px, calc(100% - clamp(20px, 4vw, 64px)));
  margin: 0 auto;
  padding: 96px 0 clamp(50px, 8vw, 110px);
}

.guide-nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.guide-nav-links a {
  padding: 8px 12px;
  color: #666;
  font: 600 9px var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .25s ease;
}

.guide-nav-links a:hover {
  color: #111;
}

.guide-home {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  margin-left: 20px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 20, 25, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  font: 600 10px var(--font-body);
  line-height: 1.05;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}

.guide-home small {
  color: #777;
  font: 600 7px var(--font-display);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-home:hover {
  border-color: #111;
  background: #111;
  color: #fff;
}

.guide-home:hover small {
  color: rgba(255, 255, 255, .68);
}

.guide-hero,
.guide-poster,
.size-template-section {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: clamp(22px, 3vw, 38px);
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 35px 110px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.guide-hero {
  display: grid;
  min-height: calc(100vh - 125px);
  padding: clamp(36px, 6vw, 92px);
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
  gap: clamp(30px, 6vw, 88px);
}

.guide-hero__copy {
  position: relative;
  z-index: 2;
}

.guide-hero h1 {
  margin: 0 0 30px;
  font: italic clamp(62px, 9vw, 138px)/.82 var(--serif);
  letter-spacing: -.075em;
}

.guide-copy-th,
.guide-copy-en {
  max-width: 560px;
  line-height: 1.72;
}

.guide-copy-th {
  font-size: clamp(16px, 1.55vw, 21px);
}

.guide-copy-en {
  margin-top: 8px;
  color: #686970;
  font: 500 clamp(12px, 1vw, 15px)/1.65 var(--font-body);
}

.guide-hero img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 22px;
  filter: grayscale(1);
  box-shadow: 0 35px 90px -45px rgba(20, 20, 25, .45);
}

.guide-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.guide-hero__actions .btn {
  width: auto;
  margin: 0;
}

.guide-poster,
.size-template-section {
  padding: clamp(38px, 7vw, 96px) clamp(16px, 6vw, 86px);
}

.guide-section-head {
  max-width: 900px;
  margin: 0 auto clamp(30px, 5vw, 58px);
  text-align: center;
}

.guide-section-head h2 {
  margin: 10px 0 20px;
  font: 500 clamp(42px, 7vw, 92px)/.98 var(--font-h2, "Core Strange");
}

.guide-section-head h2 span {
  color: #696a70;
  font-size: .58em;
}

.guide-section-head > p:not(.micro) {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.7;
}

.guide-section-head > p[lang="en"] {
  margin-top: 7px;
  color: #696a70;
  font-size: clamp(12px, 1vw, 15px);
}

.guide-measure-stack {
  display: grid;
  width: min(100%, 980px);
  margin: 0 auto;
  gap: clamp(24px, 5vw, 56px);
}

.guide-measure-poster {
  overflow: hidden;
  border: 1px solid rgba(20, 20, 25, .13);
  border-radius: 24px;
  background: #090909;
  box-shadow: 0 30px 90px -40px rgba(0, 0, 0, .58);
}

.guide-measure-poster a {
  display: block;
}

.guide-measure-poster img {
  width: 100%;
  height: auto;
}

.guide-measure-poster figcaption {
  display: flex;
  min-height: 62px;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #111;
  color: #fff;
}

.guide-measure-poster figcaption b {
  font: 600 17px var(--font-body);
}

.guide-measure-poster figcaption span {
  color: rgba(255, 255, 255, .62);
  font: 500 9px var(--font-display);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.size-template-section {
  background: rgba(248, 248, 250, .96);
}

.guide-section-head--template {
  max-width: 980px;
}

.size-template-editor {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: clamp(12px, 2.4vw, 24px);
  border: 1px solid rgba(20, 20, 25, .12);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 80px -45px rgba(20, 20, 25, .45);
}

.size-template-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 25, .13);
  background: #fff;
}

.size-template-canvas-wrap > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.size-template-input {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  min-width: 0;
  padding: 0 4px;
  border: 1px solid rgba(15, 15, 18, .36);
  border-radius: clamp(4px, .8vw, 10px);
  outline: 0;
  background: rgba(255, 255, 255, .97);
  color: #111;
  font: 600 clamp(10px, 2.15vw, 24px)/1 var(--font-body);
  text-align: center;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.size-template-input:focus {
  z-index: 3;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(15, 15, 18, .14);
  transform: scale(1.04);
}

.size-template-input--name {
  position: static;
  width: 48%;
  height: 100%;
  flex: 0 0 48%;
  padding: 0 .35em 0 0;
  border-color: transparent;
  border-radius: 0;
  background: #fff;
  font: 600 clamp(15px, 4.2vw, 42px)/1 var(--serif);
  text-align: right;
}

.size-template-title-editor {
  position: absolute;
  z-index: 2;
  left: 13.5%;
  top: 13.5%;
  display: flex;
  width: 74%;
  height: 7.2%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  color: #111;
  font: 600 clamp(15px, 4.2vw, 42px)/1 var(--serif);
  white-space: nowrap;
}

.size-template-title-editor > span {
  display: flex;
  height: 100%;
  align-items: center;
  background: #fff;
}

.size-template-title-editor:focus-within {
  z-index: 4;
  box-shadow: 0 0 0 3px rgba(15, 15, 18, .14);
}

.size-template-title-editor .size-template-input:focus {
  box-shadow: none;
  transform: none;
}

.size-template-input::placeholder {
  color: #8b8b90;
  opacity: .74;
}

.size-template-hint {
  margin: 18px auto 0;
  color: #555;
  font: 500 clamp(13px, 1.4vw, 16px)/1.65 var(--font-body);
  text-align: center;
}

.size-template-hint span {
  color: #777;
  font-size: .88em;
}

.size-template-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.size-template-actions .btn {
  width: auto;
  margin: 0;
}

.size-template-status {
  min-height: 22px;
  margin-top: 10px;
  color: #555;
  font: 500 13px var(--font-body);
  text-align: center;
}

.guide-footer {
  display: flex;
  padding: 40px clamp(24px, 7vw, 110px);
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .91);
  backdrop-filter: blur(18px);
}

.guide-footer img {
  width: 180px;
  mix-blend-mode: multiply;
}

.guide-footer .btn {
  width: auto;
  margin: 0;
}

@media (max-width: 900px) {
  .guide-main {
    width: min(100% - 24px, 760px);
  }

  .guide-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .guide-hero img {
    max-height: none;
  }
}

@media (max-width: 700px) {
  .guide-nav-links {
    display: none;
  }

  .guide-home {
    margin-left: auto;
  }

  .guide-hero h1 {
    font-size: clamp(58px, 19vw, 90px);
  }

  .guide-hero__actions,
  .size-template-actions {
    display: grid;
  }

  .guide-hero__actions .btn,
  .size-template-actions .btn {
    width: 100%;
  }

  .guide-measure-poster,
  .size-template-editor,
  .guide-hero {
    border-radius: 16px;
  }

  .guide-measure-poster figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .size-template-input {
    padding: 0 1px;
    border-radius: 4px;
  }

  .size-template-input--name {
    padding-right: .2em;
  }

  .guide-footer {
    display: grid;
    gap: 25px;
  }

  .guide-footer .btn {
    width: 100%;
  }
}

@media print {
  .nav,
  .guide-hero,
  .guide-poster,
  .guide-footer,
  .size-template-actions,
  .size-template-hint,
  .size-template-status,
  .guide-section-head {
    display: none !important;
  }

  .guide-page,
  .size-template-section,
  .size-template-editor {
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
  }

  .guide-main {
    width: 100%;
    margin: 0;
    padding: 0;
  }
}
