:root {
  --ink: #243a31;
  --green: #214e3b;
  --line: #cdd6c8;
  --muted: #6d7d6d;
  --paper: #f6f5ed;
  --lime: #d5e897;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf7;
  color: var(--ink);
  padding: 10px 15px;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a {
  color: var(--green);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8d9e51;
  outline-offset: 3px;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  font-weight: 650;
}
.secondary {
  background: #e6ecd9;
}
.quiet {
  border-color: transparent;
  background: transparent;
}
.danger {
  color: #8b3930;
  background: #fae9df;
  border-color: #ddc4b8;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    clamp(32px, 3vw, 48px)/1.12 Georgia,
    serif;
  letter-spacing: -1px;
}
h2 {
  font:
    28px/1.15 Georgia,
    serif;
}
h3 {
  font-size: 17px;
}
p {
  line-height: 1.7;
}
small {
  display: block;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.topbar {
  height: 76px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #183d2f;
  color: #eef2df;
  border-bottom: 1px solid #547458;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 11px;
  letter-spacing: 1.8px;
  color: #e6edda;
  text-decoration: none;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #9ab184;
  border-radius: 50%;
  font:
    24px Georgia,
    serif;
  letter-spacing: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 15px;
}
.topbar .quiet {
  color: #e5e9db;
}
.account {
  font-size: 11px;
  opacity: 0.8;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #67815a;
  margin: 0 0 16px;
}
.intro {
  color: #71806e;
  max-width: 680px;
  line-height: 1.8;
}
.portfolio,
.project {
  padding: 38px 36px;
  max-width: 1900px;
  margin: auto;
}
.portfolio {
  max-width: 1400px;
}
.portfolio > h1 {
  margin-bottom: 18px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.project-card {
  border: 1px solid #b9c7ac;
  border-radius: 14px;
  background: #e8eedb;
  min-height: 260px;
  padding: 30px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.project-card h2 {
  font-size: 35px;
  margin: 8px 0 16px;
}
.open {
  display: block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 650;
}
.tag {
  font-size: 9px;
  letter-spacing: 0.8px;
  border: 1px solid #a7b597;
  border-radius: 20px;
  padding: 6px 9px;
  background: #e7edd8;
  display: inline-block;
}
.project-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.project-heading h1 {
  margin-bottom: 12px;
}
.project-heading .intro {
  margin-bottom: 12px;
}
.project-actions {
  display: flex;
  gap: 10px;
  padding-top: 18px;
  flex-shrink: 0;
}
.scope-note {
  padding: 12px 16px;
  background: #e8eddd;
  border-left: 2px solid #8fa46d;
  font-size: 12px;
  color: #536949;
  line-height: 1.7;
}
.journey-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 30px;
}
.journey-nav select {
  max-width: 650px;
  flex: 1;
  border: 1px solid #aaba9b;
  border-radius: 7px;
  background: #fffdf7;
  padding: 12px;
  color: var(--ink);
}
.selected {
  background: #dbe6c6;
  border-color: #7e9563;
}
.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.journey-card {
  border: 1px solid #c5cfb8;
  border-radius: 12px;
  background: #fffdf7;
  overflow: hidden;
  padding: 20px;
  position: relative;
  text-decoration: none;
  color: var(--ink);
}
.journey-card > img {
  width: calc(100% + 40px);
  margin: -20px -20px 20px;
  height: 180px;
  object-fit: cover;
  object-position: top;
  opacity: 0.9;
}
.journey-card > .rank {
  font-size: 11px;
  display: block;
  color: #7c8f65;
  margin-bottom: 10px;
}
.journey-card h2 {
  font-size: 25px;
  margin-bottom: 13px;
  min-height: 58px;
}
.journey-card > p {
  font-size: 12px;
}
.journey-card .summary {
  color: #6d7a68;
  font-size: 12px;
  line-height: 1.7;
}
.journey-title {
  margin-bottom: 12px;
}
.journey-summary {
  color: var(--muted);
  font-size: 13px;
}
.filmstrip {
  display: flex;
  gap: 24px;
  overflow: auto;
  padding: 10px 2px 26px;
  scrollbar-color: #849767 #dfe6d4;
  scrollbar-width: thin;
}
.screen-card {
  flex: 0 0 400px;
  align-self: flex-start;
  border: 1px solid #b5c3a7;
  border-radius: 12px;
  overflow: hidden;
  background: #fffdf7;
  padding: 18px;
  max-width: 100%;
}
.screen-card h3 {
  font:
    25px/1.2 Georgia,
    serif;
  margin: 15px 0;
}
.screen-card > p {
  font-size: 12px;
  color: #6c7c65;
}
.screen-count {
  font-size: 10px;
  letter-spacing: 1.6px;
  margin: 0 0 16px;
  color: #6b815b;
}
.screen-button {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: white;
  width: calc(100% + 36px);
  margin: 0 -18px 16px;
  display: block;
}
.screen-button img {
  width: 100%;
  height: 560px;
  object-fit: contain;
  object-position: top;
  background: #fff;
}
.status {
  font-size: 9px;
  letter-spacing: 0.7px;
  color: #627c4d;
  line-height: 1.8;
  display: block;
}
.screens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.screens-grid .screen-card {
  width: 100%;
}
.screens-grid .screen-button img {
  height: 360px;
}
.help {
  font-size: 11px;
  color: #75836a;
  margin: 8px 0 25px;
}
footer {
  font-size: 10px;
  letter-spacing: 0.2px;
  color: #87917e;
  padding-top: 25px;
  border-top: 1px solid #d1d9c8;
  line-height: 1.7;
  margin-top: 36px;
}
.preview-banner {
  background: #dae9b5;
  padding: 15px 36px;
  border-bottom: 1px solid #aabb88;
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
}
.preview-banner span {
  flex: 1;
  color: #5e7149;
}
.preview-banner strong {
  font-size: 12px;
}
.preview-banner a {
  font-weight: 650;
  white-space: nowrap;
}
.login {
  max-width: 1240px;
  margin: 70px auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  column-gap: 100px;
}
.login > .eyebrow {
  grid-column: 1;
}
.login > h1 {
  grid-column: 1;
  white-space: pre-line;
  font-size: 55px;
  margin: 10px 0 25px;
}
.login > .intro {
  grid-column: 1;
}
.login-card {
  grid-column: 2;
  grid-row: 1 / span 4;
  border: 1px solid #becdad;
  border-radius: 14px;
  background: #fffdf7;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.login-card h2 {
  margin-bottom: 0;
}
.login-card .primary {
  padding: 14px 18px;
}
.login-card details {
  border-top: 1px solid #d4ddc8;
  padding: 15px 0 0;
}
.login-card summary {
  cursor: pointer;
  font-size: 12px;
}
.secondary-link {
  font-size: 12px;
  text-align: center;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 18px;
}
.field input,
.field textarea {
  background: #fff;
  border: 1px solid #a9b99b;
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  max-width: 100%;
}
.field textarea {
  resize: vertical;
  width: 100%;
}
.password-form {
  padding-top: 20px;
}
.error {
  color: #a04631;
  background: #fae9df;
  padding: 12px;
  font-size: 12px;
}
.error-page {
  padding: 60px 36px;
  max-width: 900px;
  margin: auto;
}
.error-page h1 {
  font-size: 36px;
}
.modal {
  max-width: 1350px;
  width: 94vw;
  max-height: 94vh;
  border: 1px solid #7e9469;
  border-radius: 14px;
  padding: 0;
  background: #f6f5ed;
  color: var(--ink);
}
.modal::backdrop {
  background: #13291dc9;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #c6d0b9;
  background: #e8eddd;
}
.modal-header h2 {
  margin: 0;
  font-size: 23px;
}
.screen-detail {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  max-height: 78vh;
  overflow: auto;
}
.screen-image {
  padding: 22px;
  background: #dce4d3;
  text-align: center;
}
.screen-image > img {
  width: 100%;
  max-width: 850px;
  display: block;
  height: auto;
  margin: auto;
}
.screen-info {
  padding: 25px;
}
.screen-info > h3 {
  margin: 20px 0 12px;
}
.screen-info > p {
  font-size: 12px;
}
.screen-info .scope-note {
  margin: 20px 0;
}
.comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment {
  padding: 15px;
  background: white;
  border: 1px solid #c9d4bb;
  border-radius: 7px;
  font-size: 12px;
}
.comment p {
  white-space: pre-wrap;
  margin: 9px 0 0;
}
.comment small {
  font-size: 9px;
}
.comment-form {
  margin-top: 22px;
}
.comment-form .primary {
  margin-bottom: 12px;
}
.muted {
  font-size: 12px;
  color: #849078;
}
.sharing {
  padding: 24px;
  max-width: 760px;
  margin: auto;
}
.sharing > p {
  font-size: 13px;
}
.sharing fieldset {
  border: 1px solid #c2cfb2;
  border-radius: 7px;
  padding: 18px;
  margin-bottom: 20px;
}
.sharing legend {
  font-size: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.check input {
  accent-color: #31543c;
}
.share-result:not(:empty) {
  padding: 20px;
  background: #e4edd3;
  border-radius: 8px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}
.share-result p {
  margin: 0;
}
.share-result a {
  font-size: 11px;
}
.sharing h3 {
  margin-top: 35px;
}
.share-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #c9d3bb;
  padding: 12px 0;
  font-size: 12px;
}
.share-row small {
  font-size: 10px;
}
.loading {
  padding: 70px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #183d2f;
  color: #f4f7eb;
  padding: 16px 24px;
  border: 1px solid #799263;
  border-radius: 10px;
  max-width: 90vw;
  font-size: 13px;
  box-shadow: 0 8px 25px #10241840;
  z-index: 50;
}
@media (min-width: 1900px) {
  .screen-card {
    flex-basis: 480px;
  }
  .screen-button img {
    height: 680px;
  }
}
@media (max-width: 1000px) {
  .journey-grid,
  .screens-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-heading {
    flex-wrap: wrap;
  }
  .project-actions {
    padding-top: 0;
  }
  .login {
    column-gap: 35px;
    margin-top: 40px;
  }
  .login > h1 {
    font-size: 42px;
  }
  .screen-detail {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 650px) {
  .topbar {
    padding: 0 16px;
    height: 65px;
  }
  .account {
    display: none;
  }
  .portfolio,
  .project {
    padding: 25px 16px;
  }
  .journey-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }
  .project-actions {
    flex-wrap: wrap;
  }
  .screen-card {
    flex-basis: 85vw;
  }
  .screen-button img {
    height: 470px;
  }
  .login {
    display: block;
    margin-top: 30px;
    padding: 0 20px;
  }
  .login > h1 {
    font-size: 39px;
  }
  .login-card {
    padding: 24px;
    margin-top: 25px;
  }
  .preview-banner {
    padding: 14px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .preview-banner span {
    flex-basis: 100%;
    order: 3;
  }
  .screen-detail {
    grid-template-columns: 1fr;
    max-height: 80vh;
  }
  .modal-header {
    padding: 16px;
  }
  .modal-header h2 {
    font-size: 19px;
  }
  .screen-info {
    padding: 20px;
  }
  .journey-nav {
    flex-wrap: wrap;
  }
  .journey-nav select {
    flex-basis: 100%;
  }
  .share-row {
    flex-wrap: wrap;
  }
  .brand {
    font-size: 9px;
    letter-spacing: 1.2px;
  }
  .project-card {
    min-height: 230px;
  }
  .screen-image {
    padding: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
