@font-face {
  font-family: "Brown";
  font-style: normal;
  font-weight: 100 400;
  font-display: swap;
  src: url("/static/fonts/brown-light.woff2") format("woff2");
}

@font-face {
  font-family: "Brown";
  font-style: normal;
  font-weight: 401 600;
  font-display: swap;
  src: url("/static/fonts/brown-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Brown";
  font-style: normal;
  font-weight: 601 900;
  font-display: swap;
  src: url("/static/fonts/brown-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Domaine Sans Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/domaine-sans-text-medium.woff2") format("woff2");
}

:root {
  --color-primary: #fbf9f3;
  --color-tertiary: #000;
  --color-tertiary-lightest: #e5e5e5;
  --font-heading: "Domaine Sans Text", "Inter", sans-serif;
  --font-body: "Brown", -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--color-primary);
  color: var(--color-tertiary);
  font-family: var(--font-body);
}

.shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 44px;
  padding: 12px 20px;
  background: var(--color-primary);
  border-bottom: 1px solid var(--color-tertiary-lightest);
}

.shell-logo {
  position: absolute;
  left: 20px;
  height: 28px;
}

.segmented-control {
  display: inline-flex;
  border: 2px solid var(--color-tertiary);
}

.segmented-control button {
  min-height: 44px;
  min-width: 140px;
  padding: 0 20px;
  border: none;
  background: var(--color-primary);
  color: var(--color-tertiary);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.segmented-control button.active {
  background: var(--color-tertiary);
  color: var(--color-primary);
}

.shell-body {
  position: relative;
  flex: 1;
}

.shell-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.shell-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100vh;
  padding: 20px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 18px;
}
