@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap");

:root {
  --ink-900: #151515;
  --ink-700: #2a2a2a;
  --ink-500: #4a4a4a;
  --surface: #ffffff;
  --surface-muted: #f7f5f2;
  --accent-700: #f26322;
  --accent-500: #f7a531;
  --accent-200: #ffe0c2;
  --line: #e5e0d8;
  --shadow: 0 20px 60px rgba(21, 21, 21, 0.1);
  --container: 980px;
}

* {
  box-sizing: border-box;
}

body.app {
  margin: 0;
  font-family: "Inter Tight", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  color: var(--ink-900);
  background:
    radial-gradient(circle at 15% 15%, rgba(242, 99, 34, 0.12), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(247, 165, 49, 0.16), transparent 45%),
    linear-gradient(180deg, #fff9f4 0%, #ffffff 40%, #fffdfb 100%);
  min-height: 100vh;
}


.site-header {
  background: #ffffff;
  color: var(--ink-900);
  border-bottom: 4px solid var(--accent-700);
  min-height: 120px;
  display: flex;
  align-items: center;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.site-nav {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1;
  width: 100%;
}

.site-nav .brand {
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 72px;
  width: auto;
  display: block;
}

.site-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  margin-left: auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink-900);
  font-weight: 600;
  cursor: pointer;
}

.nav-toggle .burger {
  width: 18px;
  height: 2px;
  background: var(--ink-900);
  position: relative;
  border-radius: 999px;
}

.nav-toggle .burger::before,
.nav-toggle .burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 999px;
}

.nav-toggle .burger::before {
  top: -6px;
}

.nav-toggle .burger::after {
  top: 6px;
}

.site-nav a {
  color: var(--ink-900);
  text-decoration: none;
  opacity: 0.9;
}

.site-nav a:hover {
  opacity: 1;
}

.site-nav .cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-700);
  color: #fff;
  font-weight: 600;
}

.nav-meta {
  opacity: 0.75;
}

.page {
  padding: 40px 0 80px;
  position: relative;
}

.page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 16px;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink-900),
    var(--ink-900) 32px,
    transparent 32px,
    transparent 44px
  );
  opacity: 0.08;
  border-radius: 999px;
}

h1, h2, h3 {
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.4rem;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

p {
  color: var(--ink-500);
  line-height: 1.6;
}

.panel {
  background: var(--surface);
  padding: 28px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.panel + .panel {
  margin-top: 24px;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-weight: 500;
  border: 1px solid transparent;
}

.flash-success {
  background: #f1fbf4;
  border-color: #c7ead0;
  color: #1f7a3b;
}

.flash-error {
  background: #fff3f0;
  border-color: #ffd2c7;
  color: #b32412;
}

.flash-info {
  background: #f2f6ff;
  border-color: #c9d8ff;
  color: #3056c4;
}

form.form-stack,
form.auth-form,
form.inline-form {
  display: grid;
  gap: 14px;
}

form.inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

label {
  font-weight: 600;
  color: var(--ink-700);
  display: block;
  margin-bottom: 6px;
  margin-top: 6px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 6px;
  margin-bottom: 0;
  font-weight: 600;
  color: var(--ink-700);
}

.checkbox-row input[type="checkbox"] {
  margin: 0;
  order: 0;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 auto;
}

.checkbox-row input[type="hidden"] {
  display: none;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

input[type="checkbox"] {
  width: auto;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--accent-700);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

button {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: var(--ink-900);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--ink-700);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 600;
}

.oauth-button {
  align-items: center;
}

.oauth-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.oauth-github:hover {
  color: #111;
}

.oauth-linkedin {
  color: #0a66c2;
}

.oauth-linkedin:hover {
  color: #084b94;
}

.actions a:hover {
  border-color: var(--accent-700);
  color: var(--accent-700);
}

.subtle {
  color: var(--ink-500);
  font-size: 0.95rem;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.list li {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

a {
  color: var(--accent-700);
}

@media (max-width: 700px) {
  body.app {
    font-size: 16px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .container {
    padding: 0 16px;
  }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-left: 0;
    padding-top: 4px;
  }

  .site-nav.nav-open .nav-links {
    display: flex;
  }

  .page::after {
    left: 16px;
    right: 16px;
  }

  .panel {
    padding: 20px;
  }
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel {
  animation: fadeSlide 0.6s ease-out;
}
