:root {
  --ink: #111111;
  --muted: #6b6b6b;
  --rule: #d9d9d9;
  --link: #2563eb;
  --max-width: 640px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 1rem;
  text-align: center;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
}

.logo {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.order-logo {
  max-width: 180px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

section {
  padding: 2.5rem 0;
}

section + section {
  border-top: none;
}

h2 {
  font-size: 1.75rem;
  font-weight: 400;
  margin: 0 0 1rem;
}

.hours .days {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.hours-time {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.menu-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.menu-item:first-of-type {
  border-top: 1px solid var(--rule);
}

.menu-item-name {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.menu-item-price {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 1rem;
  color: var(--ink);
}

.menu-item-price span {
  color: var(--muted);
}

.cta a {
  font-size: 1.1rem;
  text-decoration: underline;
}

.site-footer {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0.2rem 0;
}

.instagram-link {
  display: inline-flex;
  margin-top: 1rem;
}

@media (max-width: 480px) {
  .site-title {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

/* --- Bestil (order) page + admin — shared form styles --- */

.back-link {
  display: inline-block;
  font-size: 0.9rem;
}

.order-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.order-section,
.admin-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.order-section h1,
.admin-section h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.order-intro {
  color: var(--muted);
  margin: 0 0 2rem;
}

.field-group {
  margin-bottom: 1.75rem;
}

.field-label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.date-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.date-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.date-option input[type="radio"] {
  margin-right: 0.75rem;
}

.date-option.sold-out {
  opacity: 0.5;
  cursor: not-allowed;
}

.date-option .remaining {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.item-row:first-of-type {
  border-top: 1px solid var(--rule);
}

.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.qty-stepper button {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 4px;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}

.qty-stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.qty-stepper .qty-value {
  min-width: 1.5rem;
  text-align: center;
}

input[type="text"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"] {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-sizing: border-box;
  color: var(--ink);
  background: #fff;
}

.btn-primary {
  font-family: inherit;
  font-size: 1.05rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.5rem;
  cursor: pointer;
  width: 100%;
}

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

.btn-secondary {
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.form-message {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-message.success {
  background: #eaf6ec;
  color: #1e5c2b;
}

.form-message.error {
  background: #fbeaea;
  color: #7a1f1f;
}

/* --- Admin dashboard --- */

.admin-login {
  max-width: 320px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.admin-tab {
  font-family: inherit;
  font-size: 0.95rem;
  background: none;
  border: none;
  padding: 0.6rem 0.2rem;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.admin-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.date-row,
.order-card {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.date-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.date-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 180px;
}

.date-row-date {
  font-weight: 600;
}

.date-row-summary {
  font-size: 0.85rem;
  color: var(--muted);
}

.date-row input[type="number"] {
  width: 5rem;
}

.date-row label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.order-card-name {
  font-weight: 600;
}

.order-card-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.order-card-items {
  font-size: 0.95rem;
  margin: 0.4rem 0;
}

.order-card-actions {
  margin-top: 0.5rem;
}

.order-card-alt {
  background: #f5f3ee;
}

.order-card-tight {
  margin-bottom: 0.35rem;
}

.add-date-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.add-date-form .field-group {
  margin-bottom: 0;
}

.add-date-form input[type="date"] {
  width: auto;
}

.add-date-form input[type="number"] {
  width: 5rem;
}
