@font-face {
  font-family: "In Sans";
  src: url("/assets/InSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "In Sans";
  src: url("/assets/InSans-Semibold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  font-family: "In Sans", system-ui, sans-serif;
  font-synthesis: none;
  color: #111;
  background: #fff;
  --ink: #111;
  --muted: #555;
  --line: #ddd;
  --control: #777;
  --hover: #f2f2f2;
  --paper: #fff;
  --radius: 4px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

h1, h2, h3, p, dl, dd, form { margin: 0; }

h1, h2 { font-weight: 600; line-height: 1.2; }

h1 { font-size: clamp(1.8rem, 3vw, 2.25rem); }

h2 { font-size: 1.25rem; }

button, input { font: inherit; }

button { cursor: pointer; }

a { color: inherit; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.shell {
  width: min(100% - var(--gutter) * 2, 1536px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 76px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand-lockup img { display: block; flex: none; height: auto; }

.casagres-logo { width: 150px; margin-left: -8px; }

.studio-logo { width: 269px; margin-left: -8px; }

.brand-divider { flex: 0 0 1px; height: 22px; background: var(--line); }

.brand-name { font-size: 1.25rem; line-height: 26px; font-weight: 600; }

.account { display: flex; align-items: center; gap: 16px; }

.muted { color: var(--muted); }

.navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(18px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}

.navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0 10px;
  color: var(--muted);
  text-decoration: none;
}

.navigation a:hover { color: var(--ink); }

.navigation a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--ink);
  color: var(--ink);
  font-weight: 600;
}

.dashboard { padding-block: 24px 56px; }

.objectives {
  margin-top: 24px;
  border-block: 1px solid var(--line);
  padding-block: 20px;
}

.objectives-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.objectives-header p { margin-top: 4px; }

.objectives-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 16px 0;
  margin-block: 20px 4px;
}

.objectives-list > div {
  padding-inline: 20px;
  border-inline-start: 1px solid var(--line);
}

.objectives-list > div:first-child { padding-inline-start: 0; border-inline-start: 0; }

.objectives-list dt, .objectives-status, .objectives-date { color: var(--muted); }

.objectives-list dd {
  margin-top: 3px;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  line-height: 1.18;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.objectives-status { margin-top: 14px; }

.objectives-upcoming { margin-top: 24px; overflow-x: auto; }

.objectives-upcoming h3 { margin-bottom: 8px; font-size: 1rem; font-weight: 600; }

.objectives-upcoming table { width: 100%; border-collapse: collapse; text-align: left; }

.objectives-upcoming :is(th, td) { border-bottom: 1px solid var(--line); padding: 8px 12px; }

.objectives-upcoming :is(th, td):first-child { padding-left: 0; }

.objectives-upcoming :is(th, td):last-child { padding-right: 0; }

.objectives-upcoming :is(th, td):not(:first-child) { text-align: right; }

.objectives-upcoming thead th { color: var(--muted); font-size: .875rem; font-weight: 600; }

.objectives-upcoming tbody th { font-weight: 400; }

.objectives-upcoming td { font-variant-numeric: tabular-nums; white-space: nowrap; }

.objectives-date { margin-top: 12px; font-size: .875rem; }

.quiet-link, .button--quiet {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiet-link { font-size: .94rem; }

.login {
  width: min(100% - var(--gutter) * 2, 440px);
  margin-inline: auto;
  padding-top: clamp(48px, 12vh, 120px);
  padding-bottom: 48px;
}

.login-brand {
  flex-wrap: wrap;
  row-gap: 4px;
  margin-bottom: 18px;
}

.login-content { border-top: 1px solid var(--line); padding-top: 24px; }

.login-form { display: grid; gap: 16px; margin-top: 24px; }

.field { display: grid; gap: 6px; }

.field label { font-weight: 600; }

.field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}

.feedback {
  margin-top: 16px;
  padding: 8px 12px;
  background: var(--hover);
  border-radius: var(--radius);
  overflow-wrap: anywhere;
}

.feedback--error { color: #8a241f; background: #fcf1f0; }

.button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--control);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--paper);
  font-weight: 600;
}

.button:hover { background: var(--hover); }

.button--primary { color: #fff; background: var(--ink); border-color: var(--ink); }

.button--primary:hover { background: #333; border-color: #333; }

.button--quiet {
  padding-inline: 0;
  font-weight: 400;
  border-color: transparent;
  background: transparent;
  white-space: nowrap;
}

.button--quiet:hover { background: transparent; color: var(--muted); }

@media (max-width: 650px) {
  .topbar { min-height: 64px; }
  .brand-lockup { gap: 8px; }
  .brand-name { font-size: 1.125rem; }
  .account .muted { display: none; }
  .navigation { font-size: .96rem; }
  .objectives-list { grid-template-columns: 1fr; gap: 0; }
  .objectives-list > div { border-inline-start: 0; border-top: 1px solid var(--line); padding: 12px 0; }
  .objectives-list > div:first-child { border-top: 0; padding-top: 0; }
  .objectives-list > div:last-child { padding-bottom: 0; }
  .objectives-upcoming table { font-size: .875rem; }
  .objectives-upcoming :is(th, td) { padding-inline: 6px; }
}

@media (max-width: 350px) {
  .login-brand .brand-divider { display: none; }
  .login-brand .brand-name { flex-basis: 100%; }
}
