/* Single-column portfolio: Home → About → Projects → Contact */
:root {
  --bg: #f6f3ed;
  --surface: #fffcf7;
  --ink: #1c1917;
  --ink-muted: #57534e;
  --accent: #0f766e;
  --accent-hover: #0d9488;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --border: rgba(28, 25, 23, 0.1);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(28, 25, 23, 0.06);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --max: 720px;
  --header-max: 960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 55% at 50% -25%, rgba(15, 118, 110, 0.09), transparent),
    radial-gradient(ellipse 55% 45% at 100% 40%, rgba(194, 65, 12, 0.05), transparent);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 243, 237, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
}
.nav a {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

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

.hero {
  padding: 3.5rem 0 3rem;
  text-align: center;
}

.hero-inner {
  max-width: 38rem;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.hero-sub {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.hero-lead {
  text-align: left;
  color: var(--ink-muted);
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
}

@media (min-width: 600px) {
  .hero-lead {
    text-align: center;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(15, 118, 110, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-send {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
}

.section {
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.section-body p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.section-body p:last-child {
  margin-bottom: 0;
}

.section-body a,
.project-dialog__body a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.section-body a:hover,
.project-dialog__body a:hover {
  text-decoration: underline;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem !important;
}

.social-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none !important;
  box-shadow: var(--shadow);
}
.social-link:hover {
  border-color: var(--accent);
  text-decoration: none !important;
}

.project-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.project-card__hit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  margin: 0;
  padding: 1.35rem 1.4rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.project-card__hit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(28, 25, 23, 0.1);
  border-color: rgba(15, 118, 110, 0.35);
}
.project-card__hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.project-card__teaser {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}

.project-card__more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}
.project-card__hit:hover .project-card__more {
  text-decoration: underline;
}

.project-card__detail-source {
  display: none;
}

.project-dialog {
  max-width: calc(100vw - 2rem);
  width: min(34rem, 100%);
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(28, 25, 23, 0.2);
}
.project-dialog::backdrop {
  background: rgba(28, 25, 23, 0.45);
  backdrop-filter: blur(4px);
}

.project-dialog__inner {
  position: relative;
  padding: 1.75rem 1.75rem 1.5rem;
}

.project-dialog__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-dialog__close:hover {
  background: var(--bg);
  color: var(--ink);
}
.project-dialog__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-dialog__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 2.5rem 1rem 0;
  letter-spacing: -0.02em;
  padding-right: 0.5rem;
}

.project-dialog__body {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.project-dialog__body p {
  margin: 0 0 1rem;
}
.project-dialog__body p:last-child {
  margin-bottom: 0;
}

.project-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.project-dialog__cta {
  text-decoration: none;
}

/* [hidden] alone can lose to .btn { display: inline-flex } in some browsers */
.project-dialog__cta[hidden] {
  display: none !important;
}

.project-dialog__dismiss {
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--ink);
}
.project-dialog__dismiss:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-contact {
  padding-bottom: 3rem;
}

.contact-form {
  margin-top: 1.75rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
