@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 600 700; /* variable font — one file covers the whole weight range */
  font-display: swap;
  src: url('/assets/fonts/instrument-sans.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-serif-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Palmer Lake';
  font-style: normal;
  font-weight: 400;
  /* optional, not swap: this font is used at a huge size (76px) as a
     decorative headline, so swapping in mid-visit causes a jarring reflow.
     optional shows the fallback immediately and commits to it if the font
     isn't ready within the browser's short grace period, rather than
     popping in later. */
  font-display: optional;
  src: url('/assets/fonts/palmer-lake.woff2') format('woff2');
}

:root {
  /* Sampled from the design screenshot — tweak these once real brand colors are picked. */
  --color-peach: #F2D1C0;      /* header / footer background */
  --color-peach-hero: #E9B195; /* hero image placeholder */
  --color-gold: #DDA548;       /* three-button section background */
  --color-cream: #FAF8F4;      /* content section background */
  --color-red: #E11E1B;        /* accent text, logo wordmark */
  --color-red-hover: #9A110F;        /* accent text, logo wordmark */
  --color-ink: #3a3a3a;        /* body copy */
  --color-ink-soft: #5a5a5a;

  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--color-peach);
  color: var(--color-ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-red);
  text-decoration: none;
}

/* Header */

.site-header {
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  justify-content: center;
}

.logo img {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
}

/* Nav */

.site-nav {
  background: var(--color-cream);
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 40px 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: 'Instrument Serif', serif;
  font-size: 24px;
  font-weight: normal;
  position: relative;
  padding: 4px;
  transition: all .3s;
}

.nav-links a:after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  height: 0;

  border-radius: 4px;
  bottom: -5px;
  background: var(--color-red-hover);
  opacity: 0;
  transition: all .3s;
}

.nav-links a:hover {
  color: var(--color-red-hover);
  text-decoration: none;

}

.nav-links a:hover:after {
  opacity: 1;
  height: 2px;
  bottom: -2px;
}



@media (max-width: 640px) {
  body {
    display: flex;
    flex-direction: column;
  }

  .site-header{
    padding: 4vw;
  }

  .logo img {
    max-width: 40vw;
  }

  .nav-links {
    padding: 2rem 1rem;
    gap: 8px 14px;
  }

  .nav-links a {
    font-family: 'Instrument Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
  }

  .content-wrapper {
    padding: 4vw;
  }
}

/* Hero */

.hero {
  width: 100%;
  flex-shrink: 0;
  aspect-ratio: 900 / 380;
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--color-peach-hero);
  background-size: cover;
  background-position: center;
}

/* Content */

.content {
  background: var(--color-gold);

}

.content-wrapper {
  background: var(--color-cream);
  padding: 3.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.content-wrapper > * {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
}

.content h1 {
  text-align: center;
  color: var(--color-red);
  font-family: 'Palmer Lake', 'Instrument Serif', serif;
  font-size: 76px;
  line-height: 44px;
  transform: rotate(-2.65deg);
  margin-bottom: 2rem;
  font-weight: normal;
}

.content h2 {
  color: var(--color-red);
  font-family: 'Instrument Serif', serif;
  font-weight: normal;
  font-size: 2rem;
  max-width: 630px;
  margin: 2.5rem auto 0.75rem;
}

.content h3 {
  color: var(--color-ink);
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 630px;
  margin: 1.75rem auto 0.5rem;
}

.content p {
  text-align: justify;
  color: var(--color-ink-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  max-width: 630px;
}

.content p:first-of-type {
  color: var(--color-ink);
  font-weight: 600;
}

.terms .content p:first-of-type,
.privacy .content p:first-of-type,
.faq .content p:first-of-type {
  color: var(--color-ink-soft);
  font-weight: normal;
}

.content .small {
  font-size: 80%;
  text-align: center;
}

.content-wrapper > ul {
  list-style: none;
  color: var(--color-ink-soft);
  line-height: 1.6;
  max-width: 630px;
  margin: 0 auto 1.25rem;
  padding: 0;
}

.content-wrapper > ul > li {
  padding-left: 1.1rem;
  position: relative;
}

.content-wrapper > ul > li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-red);
}

.portraits {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.portraits img {
  flex: 1 1 0;
  min-width: 0;
  width: 50%;
  aspect-ratio: 4 / 6;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.images {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.images img {
  flex: 1 1 0;
  min-width: 0;
  width: 33.333%;
  aspect-ratio: 490 / 630;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.05);
}

.cta {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: 0.9rem 1.75rem;
  background: var(--color-peach-hero);
  color: var(--color-ink);
  font-weight: 700;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.5rem auto 0;
  max-width: 630px;
}

.newsletter-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.9rem 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
}

.newsletter-form .cta {
  margin: 0;
}

.newsletter-message {
  width: 100%;
  text-align: center;
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.newsletter-message.error {
  color: #b00;
}

.newsletter-message.success {
  color: var(--color-ink);
  font-weight: 600;
}

/* Three-button section */

.section-links {
  width: 100%;
  margin-top: 3rem;
}

.section-links-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.section-links-grid a {
  position: relative;
  display: block;
  aspect-ratio: 300 / 400;
  background: var(--link-image, url('/assets/section-link-placeholder.svg')) center / cover;
  overflow: hidden;
  border-radius: 12px;
}

.section-links-grid a:before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 1;
  right: -10px;
  left: -10px;
  transition: all .3s;
}

.section-links-grid a:hover:before {
  background: rgba(0,0,0,0.5);
}

.section-links-grid a span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: 'Palmer Lake', 'Instrument Serif', serif;
  font-weight: normal;
  font-size: 56px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
  transition: transform .3s;
}

.section-links-grid a:hover span {
  transform: scale(1.1) translate(-50%, -50%) rotate(-1.65deg);
}

@media (max-width: 640px) {
  .section-links-grid a span {
    font-size: 8vw;
  }

  .content h1 {
    font-size: 60px;
    line-height: 36px;
    margin-top: 0vw;
  }
}

/* Class listing (cursus page) */

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  text-align: center;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 2rem 1.5rem;
  background: #fff;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-family: 'Instrument Serif', serif;
  font-weight: normal;
  font-size: 1.8rem;
  color: var(--color-ink);
}

.card .meta {
  color: var(--color-ink);
  margin-bottom: 0.3rem;
}

.card .meta span:not(:first-child) {
  margin-left: 0.7rem;
  padding-left: 0.7rem;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.card .lesdata {
  text-align: left;
  margin: 1.5rem 0;
}

.card .lesdata strong {
  display: block;
  margin-bottom: 0.4rem;
}

.card .lesdata ul {
  margin: 0;
  padding-left: 1.1rem;
}

.card .lesdata li {
  padding: 0.15rem 0;
}

.card .price {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.card .cta-btn {
  display: inline-block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
}

.card .cta-open { background: var(--color-red); }
.card .cta-open:hover { background: var(--color-red-hover); }
.card .cta-waitlist { background: #3a3a3a; }
.card .cta-started { background: #999; cursor: not-allowed; }

.card form.book-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  display: none;
  text-align: left;
}

.card form.book-form.visible {
  display: block;
}

.card form.book-form input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.card form.book-form input:focus {
  outline: none;
  border-color: var(--color-red);
}

.card form.book-form button[type="submit"] {
  display: block;
  position: relative;
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}

.card form.book-form button[type="submit"]:hover {
  background: var(--color-red-hover);
}

.card form.book-form button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.card form.book-form button[type="submit"].loading {
  color: transparent;
}

.card form.book-form button[type="submit"].loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: book-form-spin 0.6s linear infinite;
}

@keyframes book-form-spin {
  to { transform: rotate(360deg); }
}

.card .error {
  color: #b00;
  font-size: 0.85rem;
  text-align: left;
  margin-top: 0.5rem;
}

.empty {
  color: var(--color-ink-soft);
  font-style: italic;
}

/* Workshop listing (workshops page) */

.workshops-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.workshops-list .card {
  text-align: left;
  max-width: 710px;
  width: 100%;
  padding: 2.5rem;
}

.card .description {
  text-align: left;
  margin: 1rem 0;
}

.card .description p {
  margin: 0 0 0.6rem;
  max-width: none;
}

.card .workshop-dates {
  text-align: left;
  margin: 1rem 0;
}

.card .workshop-dates strong {
  display: block;
  margin-bottom: 0.5rem;
}

.card .date-row-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #fff;
}

.card .date-row-item.selected {
  border-color: var(--color-red);
  background: rgba(200, 60, 40, 0.06);
}

.card .date-label {
  font-size: 0.95rem;
  color: var(--color-ink);
}

.card .date-btn {
  padding: 0.4rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--color-red);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

.card .date-btn:hover {
  background: var(--color-red-hover);
}

.card .date-state {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  flex-shrink: 0;
}

/* Footer */

.site-footer {
  background: var(--color-peach);
  padding: 3rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.footer-logo {
  max-width: 151px;
  height: auto;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-columns p {
  line-height: 24px;
}

.footer-columns a {
  color: var(--color-ink);
}

a:hover {
  text-decoration: underline;
  color: var(--color-red-hover);
}

.footer-name {
  color: var(--color-red);
  font-weight: 700;
}
