:root {
  --color-fg-10: #1f392c;
  --color-fg-20: #bc6d3a;
  --color-fg-30: #ef6044;
  --color-fg-30-mix: #ef604460;

  --color-disabled: #a88880;
  --color-error: #ef6044;

  --color-bg-100: white;
  --color-bg-90: #eae5e1;
  --color-bg-80: #e9e0da; /* bg-90 with 4% fg-20 */
  --color-bg-50: #d9d9d9; /* bg-90 with 4% fg-20 */
}

/* Debugging */
/* * {
  border: 1px dashed grey;
} */

/* Mobile layout: 5vw margins */
:root {
  --margin: 5vw;
  --width: 90vw;
  --column: min(90vw, 400px);
}
/* 1000–1200 pixels: scale from 50px to 100px margins */
@media (width >= 1000px) {
  :root {
    --margin: calc(25vw - 200px);
    --width: calc(50vw + 400px);
  }
}
/* Over 1200 pixels: keep the content at 1000 pixels wide */
@media (width >= 1200px) {
  :root {
    --margin: calc(50vw - 500px);
    --width: 1000px;
  }
}

@font-face {
  font-family: "Besley";
  src: url("/assets/besley.BW0Kbclh.ttf");
}
@font-face {
  font-family: "Besley";
  src: url("/assets/besley-italic.D1O1b0aV.ttf");
  font-style: italic;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans.d9KJDlpM.ttf");
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-italic.QlAps-ZO.ttf");
  font-style: italic;
}

:root {
  background-color: var(--color-bg-90);
  color: var(--color-fg-10);
  font-family: "DM Sans";
  font-size: min(20px, 4vw);
  line-height: min(30px, 6vw);
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
main > section {
  padding: min(4rem, 8vw) var(--margin) min(4rem, 8vw);
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
}
main > section:nth-child(even) {
  background-color: var(--color-bg-80);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 120%;
  margin: 0;
  padding: 0;
  text-align: center;
}
h1 {
  font-family: "Besley";
  color: var(--color-fg-20);
  font-size: 5.5rem;
  padding: 0;
}
h2 {
  font-family: "DM Sans";
  font-size: 1.5rem;
  font-weight: normal;
  padding: 0.5rem 0 0.25rem;
}
h3 {
  font-family: "Besley";
  font-size: 2rem;
  max-width: 16em;
  padding: 0.5rem 0 0.25rem;
}
h4 {
  font-family: "DM Sans";
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.5rem 0 0.25rem;
}
h5 {
  font-family: "DM Sans";
  font-size: 1rem;
  font-weight: normal;
  padding: 0.5rem 0;
}
p {
  padding: 0.7rem 0 1rem;
  margin: 0;
  max-width: 32rem;
}
p.center {
  text-align: center;
  align-self: center;
}
.left {
  text-align: left;
  align-self: left;
}

.studio {
  gap: 2rem;
  align-self: flex-start;
}
.studio h3 {
  font-family: "DM Sans";
  font-size: 1.35rem;
  color: var(--color-fg-20);
}
.studio h4 {
  font-family: "DM Sans";
  font-size: 1rem;
}

button,
.button {
  cursor: pointer;
  display: inline-block;
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  background-color: initial;
  color: var(--color-fg-20);
  font-weight: 500;
  font-size: 0.8rem;
  text-align: center;
  white-space: nowrap;
}
button {
  border: 1px solid var(--color-fg-30);
  background-color: var(--color-fg-30);
  color: var(--color-bg-100);
}
.primary {
  border: 1px solid var(--color-fg-20);
  background-color: var(--color-fg-20);
  color: var(--color-bg-90);
}
.secondary {
  border: 1px solid var(--color-fg-20);
  background-color: initial;
  color: var(--color-fg-20);
}
.disabled {
  border: 1px solid transparent;
  color: var(--color-disabled);
  pointer-events: none;
  cursor: default;
}
.disabled.primary {
  border-color: var(--color-disabled);
  background-color: initial;
}

label.small {
  font-size: 0.6rem;
}
.relative > label {
  position: absolute;
  top: 0.25rem;
  left: 0.75rem;
}
input {
  border: 1px solid var(--color-fg-10);
  border-radius: 0.5rem;
  padding: 1.75rem 0.75rem 0.75rem;
  font-size: 1rem;
}

.row {
  display: flex;
  flex-flow: row nowrap;
  gap: 1rem;
}
.column {
  display: flex;
  flex-flow: column nowrap;
  gap: 1rem;
}
.row.reverse {
  flex-direction: row-reverse;
}
.column.reverse {
  flex-direction: column-reverse;
}
.row.wrap,
.column.wrap {
  flex-wrap: wrap;
}
.row.center {
  justify-content: center;
}
.row.stretch {
  justify-content: stretch;
}
.column.center {
  align-items: center;
}
.column.stretch {
  align-content: stretch;
}

.grow {
  flex-grow: 1;
}
.grow2 {
  flex-grow: 2;
}

.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fill {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.fill img {
  width: 100%;
  height: auto;
}

.meeting {
  text-decoration: none;
  color: initial;
  width: 15rem;
  background-color: var(--color-bg-50);
  border-radius: 1.25rem;
  box-shadow: 1px 2px 6px rgb(0 0 0 / 0.25);
  overflow: hidden;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0 0.25rem;
}
.meeting > * {
  padding: 0 1.25rem;
}
.meeting > *:first-child {
  background-color: var(--color-fg-30-mix);
  padding: 1rem 1.25rem 0.75rem;
}
