@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Oswald:wght@500;600&display=swap");
@import "tokens.css";

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--sg-text);
  background: #f8f9fa;
  line-height: 1.5;
}

h1, h2, h3, .headline {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  color: var(--sg-text);
}

a {
  color: var(--sg-link);
}

.site-header {
  background: var(--sg-bg);
  border-bottom: 1px solid var(--sg-border);
  padding: 1.25rem 1rem 1rem;
}

.site-header-inner {
  max-width: 720px;
  margin: 0 auto;
}

.site-logo img {
  max-width: min(280px, 100%);
  height: auto;
  display: block;
}

.card.legal h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.card.legal h2:first-child {
  margin-top: 0;
}

.card.legal ul {
  padding-left: 1.25rem;
}

.card.legal li + li {
  margin-top: 0.35rem;
}

.jubilee-title {
  margin: 0.75rem 0 0;
  font-family: Oswald, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.jubilee-sub {
  margin: 0.25rem 0 0;
  color: var(--sg-muted);
  font-size: 0.95rem;
}

.site-footer {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1rem 2rem;
  font-size: 0.85rem;
  color: var(--sg-muted);
  text-align: center;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.card {
  background: var(--sg-bg);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.card-select {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card-select:hover,
.card-select:focus-visible {
  border-color: var(--sg-primary);
  box-shadow: 0 0 0 3px rgba(234, 107, 15, 0.15);
  outline: none;
}

.card-select h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card-select p {
  margin: 0;
  color: var(--sg-muted);
  font-size: 0.95rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--sg-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--sg-primary-hover);
}

.btn-secondary {
  background: #fff;
  color: var(--sg-text);
  border: 1px solid var(--sg-border);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-field .hint {
  font-size: 0.9rem;
  color: var(--sg-muted);
  margin: 0.35rem 0 0.5rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  font: inherit;
}

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

.consent {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.9rem;
}

.consent input {
  margin-top: 0.25rem;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.success-box {
  text-align: center;
  padding: 2rem 1rem;
}

.success-box .icon {
  font-size: 2.5rem;
  color: var(--sg-accent-green);
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.hidden {
  display: none !important;
}

/* Admin */
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--sg-radius);
  overflow: hidden;
  border: 1px solid var(--sg-border);
}

th, td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--sg-border);
  font-size: 0.9rem;
}

th {
  background: #f3f4f6;
  font-weight: 600;
}

tr.clickable {
  cursor: pointer;
}

tr.clickable:hover {
  background: #fff7ed;
}

.star {
  color: var(--sg-primary);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: #f3f4f6;
}

.media-preview {
  max-width: 100%;
  border-radius: 8px;
  margin-top: 0.5rem;
}

video.media-preview {
  width: 100%;
  max-height: 360px;
}

.login-box {
  max-width: 360px;
  margin: 3rem auto;
}

@media (max-width: 600px) {
  .actions {
    flex-direction: column;
  }
  .btn {
    width: 100%;
  }
}
