@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

@font-face {
  font-family: "Howltide Display";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/paytone-one@latest/latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --howltide-blue: #2865ce;
  --howltide-blue-deep: #174ca8;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.86);
  --white-muted: rgba(255, 255, 255, 0.66);
  --line: rgba(255, 255, 255, 0.2);
  --panel: rgba(255, 255, 255, 0.09);
  --panel-hover: rgba(255, 255, 255, 0.12);
  --shadow: 0 16px 38px rgba(9, 43, 105, 0.16);
  --max: 1060px;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--howltide-blue);
  color: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.1), transparent 22rem),
    radial-gradient(circle at 90% 42%, rgba(112, 181, 255, 0.15), transparent 25rem),
    linear-gradient(160deg, transparent 35%, rgba(13, 62, 151, 0.14));
  content: "";
}

img,
picture { display: block; }

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

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

::selection {
  background: var(--white);
  color: var(--howltide-blue);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  background: var(--white);
  color: var(--howltide-blue);
  font-weight: 800;
}

.skip-link:focus { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.link-header {
  display: grid;
  justify-items: center;
  padding: 2.6rem 0 1.6rem;
  text-align: center;
}

.howltide-logo {
  width: min(410px, 82vw);
  filter: drop-shadow(0 7px 16px rgba(9, 42, 101, 0.15));
}

.direct-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.72rem;
  margin-top: 0.72rem;
}

.direct-links a {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.38rem;
  text-decoration: none;
  transition: color 160ms ease, transform 160ms ease;
}

.direct-links a:hover {
  color: var(--white);
  transform: translateY(-2px);
}

main { padding-top: 1rem; }

.catalog {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  background: rgba(251, 253, 255, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(350px, 0.92fr);
  align-items: stretch;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  margin: 0 clamp(1.6rem, 2.8vw, 2rem);
  border: 0;
  border-bottom: 1px solid rgba(40, 101, 206, 0.16);
  border-radius: 0;
  padding: clamp(1.65rem, 2.6vw, 2rem) 0;
  padding-right: 0;
  padding-left: 0;
  background: transparent;
  color: #17478f;
  box-shadow: none;
}

.project:last-child { border-bottom: 0; }

.project-reverse {
  grid-template-columns: minmax(350px, 0.92fr) minmax(0, 1.08fr);
}

.project-reverse .project-media { order: 2; }
.project-reverse .project-copy { order: 1; }

.project-media {
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #edf3fb;
  box-shadow: 0 8px 22px rgba(24, 76, 155, 0.12);
}

.project-media picture {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-drift .project-media { align-self: center; }
.project-drift .project-media picture { aspect-ratio: 2 / 1; }

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

a.project-media:hover img { transform: scale(1.08); }

.project-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.25rem 0;
}

.project-copy h1,
.project-copy h2 {
  margin: 0;
  border-bottom: 2px solid rgba(40, 101, 206, 0.38);
  padding-bottom: 0.8rem;
  font-family: "Howltide Display", "Trebuchet MS", sans-serif;
  font-size: clamp(1.85rem, 2.85vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.012em;
  line-height: 1.05;
  text-transform: uppercase;
}

.project-lume .project-copy h2 {
  font-size: clamp(1.48rem, 2.15vw, 1.75rem);
  white-space: nowrap;
}

.project-genre {
  margin: 0.75rem 0 0;
  color: #244f90;
  font-size: calc(0.86rem + 2px);
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-copy > p:not(.project-genre) {
  max-width: 46ch;
  margin: 1.25rem 0 0;
  color: #3f5f91;
  font-size: calc(1rem + 2px);
  font-weight: 500;
  line-height: 1.58;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.1rem;
}

.project-links a,
.project-links .is-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(40, 101, 206, 0.34);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  background: rgba(40, 101, 206, 0.07);
  color: var(--howltide-blue-deep);
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(23, 76, 168, 0.14);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1.35);
}

.project-links a:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--howltide-blue);
  color: var(--white);
  box-shadow: 0 5px 0 rgba(23, 76, 168, 0.3), 0 9px 16px rgba(23, 76, 168, 0.2);
}

.project-links a:active {
  transform: translateY(1px) scale(0.96);
  box-shadow: 0 1px 0 rgba(23, 76, 168, 0.22);
  transition-duration: 70ms;
}

.project-links a:focus-visible,
.newsletter-form .formkit-submit:focus-visible {
  outline: 3px solid rgba(40, 101, 206, 0.28);
  outline-offset: 3px;
}

.project-links .is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.project-links .is-disabled:hover {
  transform: none;
  box-shadow: 0 2px 0 rgba(23, 76, 168, 0.14);
}

.project-links .is-disabled:not(.store-link):hover {
  border-color: rgba(40, 101, 206, 0.34);
  background: rgba(40, 101, 206, 0.07);
  color: var(--howltide-blue-deep);
}

.newsletter { margin: 2rem 0 2.5rem; }

.newsletter-form,
.newsletter-form[data-uid="7f702c1b98"] {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 18px !important;
  background: rgba(251, 253, 255, 0.9) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #17478f !important;
  box-shadow: var(--shadow);
  font-family: "Inter", "Segoe UI", sans-serif !important;
}

.newsletter-form [data-style="minimal"] {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.65rem, 3vw, 2rem) !important;
}

.newsletter-copy { max-width: 390px; }

.newsletter-signup {
  width: 100%;
  max-width: 520px;
  justify-self: end;
}

.newsletter-form .formkit-background { display: none; }

.newsletter-form .formkit-header,
.newsletter-form .formkit-subheader,
.newsletter-form .formkit-guarantee {
  color: #17478f !important;
  text-align: left !important;
}

.newsletter-form .formkit-header {
  margin: 0 0 0.3rem !important;
  font-size: clamp(1.35rem, 2.3vw, 1.7rem) !important;
}

.newsletter-form .formkit-header h2 {
  margin: 0;
  font-family: "Howltide Display", "Trebuchet MS", sans-serif;
  font-size: 1.06em;
  font-weight: 400;
  letter-spacing: 0.012em;
  text-transform: uppercase;
}

.newsletter-form .formkit-subheader {
  margin: 0 !important;
  color: #4c6d9f !important;
  font-size: 0.9rem !important;
  line-height: 1.55;
}

.newsletter-form .formkit-subheader p,
.newsletter-form .formkit-guarantee p { margin: 0; }

.newsletter-form .formkit-fields {
  display: grid !important;
  grid-template-columns: minmax(220px, 360px) auto;
  justify-content: end;
  gap: 0.8rem;
  margin: 0 !important;
}

.newsletter-form .formkit-field {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}

.newsletter-form .formkit-input {
  width: 100% !important;
  height: 40px !important;
  margin: 0 !important;
  border: 1px solid rgba(40, 101, 206, 0.34) !important;
  border-radius: 999px !important;
  padding: 0 0.9rem !important;
  background: rgba(40, 101, 206, 0.035) !important;
  color: #173d75 !important;
  font: inherit;
  font-size: 0.84rem;
  outline: none;
}

.newsletter-form .formkit-input:focus {
  border-color: var(--howltide-blue) !important;
  box-shadow: 0 0 0 3px rgba(40, 101, 206, 0.12);
}

.newsletter-form .formkit-input::placeholder { color: #7d91ae; }

.newsletter-form .formkit-submit {
  flex: 0 0 auto;
  height: 40px !important;
  margin: 0 !important;
  border: 1px solid var(--howltide-blue) !important;
  border-radius: 999px !important;
  padding: 0 1rem !important;
  background: var(--howltide-blue) !important;
  color: var(--white) !important;
  cursor: pointer;
  font-family: "Inter", "Segoe UI", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--howltide-blue-deep), 0 6px 12px rgba(23, 76, 168, 0.18);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 220ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1.35);
}

.newsletter-form .formkit-submit > span { padding: 0 !important; }

.newsletter-form .formkit-submit:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--howltide-blue-deep) !important;
  border-color: var(--howltide-blue-deep) !important;
  box-shadow: 0 5px 0 #103d8b, 0 10px 18px rgba(23, 76, 168, 0.24);
}

.newsletter-form .formkit-submit:active {
  transform: translateY(2px) scale(0.96);
  box-shadow: 0 1px 0 #103d8b;
  transition-duration: 70ms;
}

.formkit-alert {
  margin: 0 0 0.5rem;
  padding: 0;
  color: #b23838;
  font-size: 0.75rem;
  list-style: none;
}

.newsletter-form .formkit-guarantee {
  margin: 0.65rem 0 0 !important;
  color: #7185a2 !important;
  font-size: 0.7rem !important;
}

.newsletter-form .formkit-powered-by-convertkit-container,
.newsletter-form [data-element="powered-by"] { display: none !important; }

.legal-header a {
  display: block;
  border-radius: 12px;
}

.legal-header .direct-links a { display: grid; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 0 0 0.85rem max(0px, calc((100% - 820px) / 2));
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, transform 180ms ease;
}

.legal-back span {
  font-size: 1.15rem;
  font-weight: 900;
  transition: transform 180ms ease;
}

.legal-back:hover {
  color: var(--white);
  transform: translateY(-1px);
}

.legal-back:hover span { transform: translateX(-3px); }

.legal-card {
  max-width: 820px;
  margin: 0 auto 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  padding: clamp(1.6rem, 4vw, 3rem);
  background: rgba(251, 253, 255, 0.92);
  color: #17478f;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.legal-eyebrow {
  margin: 0 0 0.35rem;
  color: var(--howltide-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0;
  font-family: "Howltide Display", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.legal-intro {
  max-width: 62ch;
  margin: 0.85rem 0 0;
  color: #3f5f91;
  font-size: 1rem;
}

.legal-section {
  margin-top: 1.65rem;
  border-top: 1px solid rgba(40, 101, 206, 0.18);
  padding-top: 1.4rem;
}

.legal-section h2 {
  margin: 0 0 0.55rem;
  color: #17478f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.legal-section p {
  max-width: 72ch;
  margin: 0.65rem 0 0;
  color: #3f5f91;
  font-size: 0.92rem;
  line-height: 1.68;
}

.legal-section a {
  color: var(--howltide-blue-deep);
  font-weight: 700;
  text-underline-offset: 3px;
}

.legal-updated {
  margin: 2rem 0 0;
  color: #7185a2;
  font-size: 0.72rem;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 1rem;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--white-muted);
  font-size: 0.7rem;
  text-align: center;
}

footer p { margin: 0; }
footer a { text-decoration: none; }
footer a:hover { color: var(--white); }

@media (max-width: 840px) {
  .site-shell { width: min(calc(100% - 28px), var(--max)); }
  .link-header { padding: 2.35rem 0 2.1rem; }
  .howltide-logo { width: min(350px, 82vw); }
  main { padding-top: 1.5rem; }

  .catalog { border-radius: 18px; }

  .project,
  .project-reverse {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 0 0.9rem;
    padding: 1.25rem 0;
  }

  .project-reverse .project-media,
  .project-reverse .project-copy { order: initial; }

  .project-copy { padding: 0.35rem 0.5rem 0.25rem; }
  .project-lume .project-copy h2 {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    white-space: normal;
  }
  .project-copy > p:not(.project-genre) { max-width: none; }
  .project-links {
    margin-top: 0;
    padding-top: 1rem;
  }
  .newsletter { margin: 1.75rem 0 2.25rem; }

  .newsletter-form [data-style="minimal"] {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .newsletter-copy,
  .newsletter-signup {
    max-width: none;
    justify-self: stretch;
  }

}

@media (max-width: 460px) {
  .site-shell { width: calc(100% - 20px); }
  .link-header { padding-top: 1.9rem; }
  .direct-links { margin-top: 0.5rem; }
  .project-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  }
  .project-links a,
  .project-links .is-disabled { width: 100%; }
  .newsletter-form [data-style="minimal"] { padding: 1.25rem !important; }
  .newsletter-form .formkit-fields {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
  .newsletter-form .formkit-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .project-links a:hover,
  .project-links a:active,
  .newsletter-form .formkit-submit:hover,
  .newsletter-form .formkit-submit:active { transform: none; }

}
