@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,700;1,400&family=Gloock&display=swap');

:root {
  color-scheme: dark;
  --black: #050a0b;
  --surface: #081112;
  --white: #fff;
  --muted: #fff;
  --line: rgba(160, 255, 184, .58);
  --signal: #7dff9c;
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
  color: var(--white);
  background: var(--black);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; background: var(--black); }
body { min-width: 320px; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home, .catalogue-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  background: var(--black);
  overflow: hidden;
}

.hero {
  position: relative;
  z-index: 1;
  width: min(552px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: clamp(24px, 4svh, 42px);
  text-align: center;
}
.masthead {
  position: relative;
  width: min(1680px, calc(100vw - clamp(44px, 6vw, 120px)));
  margin-left: 50%;
  transform: translateX(-50%);
}
.hero h1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0;
  font: 400 clamp(60px, 13vw, 240px)/.9 "Gloock", "Cormorant Garamond", Garamond, Georgia, serif;
  text-shadow: none;
}
.hero h1 span { display: block; }
.edition {
  padding-right: 8px;
  text-align: right;
  letter-spacing: 0;
  font: 400 clamp(28px, 4.6vw, 82px)/1.2 "Gloock", "Cormorant Garamond", Garamond, Georgia, serif;
  text-shadow: 0 0 13px rgba(255, 255, 255, .3);
}
.edition em {
  letter-spacing: .14em;
  font-style: italic;
  font-synthesis: style;
}
.catalogue-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  margin: 97px auto 77px;
  padding: 21px 0 7px;
  border-bottom: 1px solid var(--signal);
  color: #ff4fd8;
  text-transform: uppercase;
  letter-spacing: .2em;
  font: 500 16px/1.2 "Cormorant Garamond", Garamond, Georgia, serif;
}
.catalogue-link:hover,
.catalogue-link:focus-visible { color: #ff4fd8; text-shadow: 0 0 12px rgba(255, 79, 216, .78); }

.signup h2 {
  margin: 0 0 16px;
  color: var(--signal);
  text-transform: uppercase;
  letter-spacing: .2em;
  font: 500 clamp(15px, 1.85vw, 19px)/1.2 "Cormorant Garamond", Garamond, Georgia, serif;
  text-shadow: 0 0 10px rgba(125, 255, 156, .72), 0 0 28px rgba(125, 255, 156, .35);
}
.signup form {
  display: flex;
  height: 55px;
  border: 1px solid var(--signal);
  background: var(--surface);
  box-shadow: 0 0 0 1px rgba(125, 255, 156, .1), 0 0 23px rgba(125, 255, 156, .19);
}
.signup input {
  min-width: 0;
  flex: 1;
  padding: 0 22px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  letter-spacing: .07em;
  font: italic 400 19px/1 "Cormorant Garamond", Garamond, Georgia, serif;
}
.signup input::placeholder { color: var(--white); opacity: .72; font-style: italic; }
.signup input:focus-visible { outline: 2px solid var(--signal); outline-offset: -5px; }
.signup button {
  display: grid;
  place-items: center;
  width: 75px;
  border: 0;
  border-left: 1px solid var(--signal);
  background: var(--surface);
  color: var(--white);
  cursor: pointer;
  font: 400 32px/1 "Cormorant Garamond", Garamond, Georgia, serif;
  transition: background .2s, color .2s, box-shadow .2s;
}
.spiral-submit {
  display: block;
  width: 36px;
  height: 36px;
  overflow: visible;
  transform: rotate(-5deg);
}
.spiral-submit path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.signup button:not(:disabled):hover { background: var(--surface); color: var(--white); box-shadow: 0 0 20px rgba(125, 255, 156, .55); }
.signup button:disabled { color: var(--white); cursor: default; }
.form-message {
  margin: 10px 0 0;
  color: var(--white);
  font: italic 400 16px/1.3 "Cormorant Garamond", Garamond, Georgia, serif;
}
.form-message:empty { display: none; }

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}
.socials a, .socials .social-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--white);
  border-radius: 50%;
}
.socials a { transition: transform .2s, box-shadow .2s; }
.socials a:hover { transform: translateY(-2px); border-color: var(--signal); box-shadow: 0 0 14px rgba(125, 255, 156, .55); }
.socials svg { width: 100%; height: 100%; fill: #fff; stroke: #fff; stroke-width: 1.5; }
.socials .instagram-icon { fill: none; }
.socials .instagram-icon circle:last-child { fill: #fff; stroke: none; }
.socials b { height: 30px; border-left: 1px solid var(--line); }

.depth-motto {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1 0 118px;
  place-items: center;
  width: 100%;
  min-height: 118px;
  margin: 0;
  padding: 28px 24px;
  color: var(--white);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .24em;
  font: 500 clamp(14px, 1.5vw, 17px)/1.1 "Cormorant Garamond", Garamond, Georgia, serif;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  gap: 13px;
  width: 100%;
  margin-top: auto;
  padding: 39px clamp(24px, 4.6vw, 70px) 25px;
  text-align: center;
}
.home .site-footer { margin-top: 0; padding-top: 0; }
.brand-mark {
  display: block;
  width: 108px;
  height: auto;
}
.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1) contrast(1.5);
}
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: .13em;
  font: 500 11px/1.2 "Cormorant Garamond", Garamond, Georgia, serif;
}
.footer i { width: 24px; border-top: 1px solid var(--signal); }
.footer a:hover { color: var(--white); text-shadow: 0 0 12px rgba(255, 255, 255, .8); }

.catalogue-page { min-height: 100svh; }
.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 29px clamp(24px, 5.5vw, 83px);
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: .14em;
  font: 500 11px/1.2 "Cormorant Garamond", Garamond, Georgia, serif;
}
.wordmark {
  font: 400 26px/1 "Cormorant Garamond", Garamond, Georgia, serif;
  letter-spacing: .16em;
}
.wordmark em { font-size: 16px; text-transform: none; }
.back-link {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 58px;
  min-height: 44px;
  color: var(--white);
}
.back-link svg {
  display: block;
  width: 52px;
  height: auto;
  overflow: visible;
}
.back-link path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-link:hover {
  color: var(--signal);
  filter: drop-shadow(0 0 6px rgba(125, 255, 156, .62));
}
.catalogue-intro {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(60px, 8.3vw, 110px) clamp(25px, 6.4vw, 101px) 23px;
}
.catalogue-intro > p:first-child {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .21em;
  font: 500 13px/1.3 "Cormorant Garamond", Garamond, Georgia, serif;
}
.catalogue-intro h1 {
  margin: 15px 0 23px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font: 400 clamp(48px, 7.4vw, 96px)/1 "Cormorant Garamond", Garamond, Georgia, serif;
  text-shadow: 0 0 16px rgba(255, 255, 255, .34), 0 0 32px rgba(255, 255, 255, .12);
}
.rule { height: 1px; background: var(--signal); box-shadow: 0 0 12px rgba(125, 255, 156, .65); }
.books {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
}
.book {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  align-items: center;
  gap: clamp(41px, 7.4vw, 101px);
  padding: 58px 0;
  border-bottom: 1px solid var(--line);
}
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 3/4;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--white);
  background: var(--surface);
  box-shadow: inset 0 0 20px rgba(125, 255, 156, .07), 0 0 24px rgba(125, 255, 156, .12);
  text-transform: uppercase;
  letter-spacing: .13em;
  font: 400 14px/1.2 "Cormorant Garamond", Garamond, Georgia, serif;
}
.cover::before {
  content: "";
  position: absolute;
  inset: 19% 6%;
  border: 1px solid rgba(125, 255, 156, .55);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(125, 255, 156, .65), 0 0 35px rgba(125, 255, 156, .18), inset 0 0 20px rgba(125, 255, 156, .18);
  transform: rotate(-22deg) scaleX(.7);
  pointer-events: none;
}
.cover-halo {
  position: absolute;
  top: 29%;
  left: 29%;
  width: 42%;
  aspect-ratio: 1;
  border: 1px solid rgba(125, 255, 156, .78);
  border-radius: 50%;
  box-shadow: 0 0 9px var(--signal), 0 0 31px rgba(125, 255, 156, .4), inset 0 0 15px rgba(125, 255, 156, .3);
  pointer-events: none;
}
.cover > * { position: relative; z-index: 1; }
.cover-title {
  display: grid;
  align-self: stretch;
  gap: 0;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 0 11px rgba(5, 10, 11, .92), 0 0 18px rgba(5, 10, 11, .72);
  font-family: "Cormorant Garamond", Garamond, Georgia, serif;
}
.cover-title-italian {
  display: grid;
  gap: 3px;
}
.cover-title-abbr,
.cover-title-long,
.cover-title-english { display: block; }
.cover-title-abbr {
  letter-spacing: .025em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(255, 255, 255, .28), 0 0 18px rgba(5, 10, 11, .72);
  font-size: clamp(46px, 4.5vw, 60px);
  font-weight: 700;
  line-height: .78;
}
.cover-title-long {
  letter-spacing: .015em;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 500;
  line-height: 1.04;
}
.cover-title-or {
  display: block;
  width: 100%;
  margin: 8px 0 7px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .2em;
  font: italic 400 11px/1 "Cormorant Garamond", Garamond, Georgia, serif;
}
.cover-title-english {
  text-transform: uppercase;
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 400;
  line-height: .92;
}
.cover small { font-size: 12px; letter-spacing: .15em; }
.coming .cover { border-color: #9b9b9b; color: var(--white); box-shadow: inset 0 0 18px rgba(255, 255, 255, .04); }
.coming .cover::before { opacity: .5; }
.book-copy > p:first-child {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .2em;
  font: 500 12px/1.2 "Cormorant Garamond", Garamond, Georgia, serif;
}
.description { max-width: 460px; color: var(--muted); font: 400 18px/1.5 "Cormorant Garamond", Garamond, Georgia, serif; }
.information-dialog {
  width: min(644px, calc(100vw - 32px));
  max-width: none;
  max-height: min(82svh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--white);
  background: var(--surface);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(125, 255, 156, .18), 0 0 55px rgba(125, 255, 156, .18);
}
.information-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); }
.information-dialog[open] { animation: panel-arrive .25s ease-out; }
.dialog-inner { position: relative; padding: clamp(30px, 5.5vw, 57px); }
.dialog-close {
  position: absolute;
  top: 19px;
  right: 21px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--white);
  background: transparent;
  cursor: pointer;
  font: 400 22px/1 "Cormorant Garamond", Garamond, Georgia, serif;
}
.dialog-close:hover { background: var(--surface); color: var(--white); border-color: var(--signal); }
.dialog-kicker {
  margin: 0 0 15px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font: 500 12px/1.2 "Cormorant Garamond", Garamond, Georgia, serif;
}
.dialog-title {
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 400 clamp(33px, 5.5vw, 57px)/1 "Cormorant Garamond", Garamond, Georgia, serif;
}
.dialog-rule { height: 1px; margin-bottom: 26px; background: var(--signal); box-shadow: 0 0 12px rgba(125, 255, 156, .65); }
.information-copy { color: var(--muted); font: 400 18px/1.55 "Cormorant Garamond", Garamond, Georgia, serif; }
.information-copy h3 {
  margin: 28px 0 8px;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .1em;
  font: 700 15px/1.25 "Cormorant Garamond", Garamond, Georgia, serif;
}
.information-copy p { margin: 0 0 20px; }
.information-copy p:last-child { margin-bottom: 0; }
.information-copy a { border-bottom: 1px solid var(--white); color: var(--white); }

a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
@keyframes panel-arrive { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 700px) {
  .hero { width: calc(100% - 44px); padding-top: clamp(24px, 4svh, 36px); }
  .hero h1 { font-size: clamp(40px, calc(14.22vw - 4.8px), 92px); }
  .edition { font-size: 27px; }
  .edition em { letter-spacing: .1em; }
  .catalogue-link { margin: 90px auto 70px; }
  .signup h2 { font-size: 14px; letter-spacing: .15em; }
  .signup form { height: 51px; }
  .signup input { padding: 0 13px; font-size: 17px; }
  .signup button { width: 56px; }
  .spiral-submit { width: 32px; height: 32px; }
  .socials { gap: 15px; }
  .socials a, .socials .social-icon { width: 37px; height: 37px; }
  .site-footer { padding: 44px 22px 22px; }
  .brand-mark { width: 86px; height: auto; }
  .footer { gap: 10px; font-size: 10px; }
  .footer i { width: 17px; }
  .topbar { padding: 24px 22px; font-size: 10px; }
  .wordmark { font-size: 18px; }
  .wordmark em { display: none; }
  .back-link { width: 50px; }
  .back-link svg { width: 46px; }
  .catalogue-intro { padding: 63px 24px 18px; }
  .catalogue-intro h1 { font-size: clamp(29px, 8.3vw, 51px); letter-spacing: .08em; }
  .book { grid-template-columns: 1fr; gap: 29px; padding: 44px 0; }
  .cover { width: min(100%, 312px); margin: 0 auto; }
  .description { font-size: 18px; }
  .information-dialog { max-height: 88svh; }
  .dialog-inner { padding: 51px 27px 29px; }
  .dialog-title { font-size: clamp(29px, 7.4vw, 42px); }
  .information-copy { font-size: 17px; }
}

@media (max-width: 360px) {
  .edition { font-size: 25px; }
  .catalogue-link { margin: 84px auto 64px; }
  .signup h2 { font-size: 14px; }
  .signup input { font-size: 16px; }
}

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