/*
Theme Name: Bilkent Macro Workshop
Theme URI: https://www.bilkent.edu.tr/
Author: Muhammet Ali Canşı
Description: A simple one-page WordPress theme for the Bilkent Macro Workshop 2027.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bilkent-macro-workshop
Tags: block-theme, full-site-editing, one-column, accessibility-ready
*/

:root {
  --bmw-bg: #ffffff;
  --bmw-text: #20242b;
  --bmw-heading: #10151d;
  --bmw-muted: #626a75;
  --bmw-accent: #2167a8;
  --bmw-accent-dark: #164f84;
  --bmw-border: #dfe3e8;
  --bmw-soft: #f6f8fa;
  --bmw-width: 70rem;
  --bmw-reading-width: 47rem;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bmw-bg);
  color: var(--bmw-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  margin: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--bmw-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
  color: var(--bmw-accent-dark);
}

:focus-visible {
  outline: 3px solid rgba(33, 103, 168, 0.35);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  color: var(--bmw-heading);
  line-height: 1.15;
}

.bmw-site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--bmw-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-bar .bmw-site-header {
  top: 32px;
}

.bmw-header-inner,
.bmw-section,
.bmw-footer-inner {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: var(--bmw-width);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.bmw-header-inner {
  min-height: 4.5rem;
}

.bmw-site-header .wp-block-site-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.bmw-site-header .wp-block-site-title a,
.bmw-site-header .wp-block-navigation-item__content {
  color: var(--bmw-heading);
  text-decoration: none;
}

.bmw-site-header .wp-block-navigation-item__content {
  font-size: 0.92rem;
  font-weight: 600;
}

.bmw-site-header .wp-block-navigation-item__content:hover,
.bmw-site-header .wp-block-navigation-item__content:focus-visible {
  color: var(--bmw-accent);
}

.bmw-hero {
  border-top: 0;
  padding-block: clamp(5rem, 11vw, 8.5rem) clamp(4rem, 8vw, 6rem);
}

.bmw-kicker {
  color: var(--bmw-accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}

.bmw-hero h1 {
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  letter-spacing: -0.055em;
  margin: 0;
  max-width: 13ch;
}

.bmw-event-details {
  border-left: 3px solid var(--bmw-accent);
  margin-top: clamp(2.25rem, 5vw, 3.5rem);
  padding-left: 1.25rem;
}

.bmw-event-details p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin: 0.2rem 0;
}

.bmw-intro {
  color: var(--bmw-muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  margin-top: 2.5rem;
  max-width: 43rem;
}

.bmw-section {
  border-top: 1px solid var(--bmw-border);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.bmw-section h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  margin: 0 0 2rem;
}

.bmw-speakers {
  align-items: stretch;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bmw-speaker {
  border-top: 2px solid var(--bmw-heading);
  display: flex;
  flex-direction: column;
  margin-block-start: 0 !important;
  padding-top: 1.25rem;
}

.bmw-speaker h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0 0 0.45rem;
}

.bmw-speaker h3 a {
  color: var(--bmw-heading);
}

.bmw-speaker p {
  color: var(--bmw-muted);
  margin: 0;
}

.bmw-call-copy,
.bmw-submission {
  max-width: var(--bmw-reading-width);
}

.bmw-submission {
  background: var(--bmw-soft);
  border: 1px solid var(--bmw-border);
  margin-top: 2rem;
  padding: clamp(1.4rem, 4vw, 2rem);
}

.bmw-submission p {
  margin: 0 0 1rem;
}

.bmw-submission p:last-child {
  margin-bottom: 0;
}

.bmw-button {
  background: var(--bmw-accent);
  border: 2px solid var(--bmw-accent);
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.15rem;
  text-decoration: none;
}

.bmw-button:hover,
.bmw-button:focus-visible {
  background: var(--bmw-accent-dark);
  border-color: var(--bmw-accent-dark);
  color: #ffffff;
}

.bmw-submission-meta {
  color: var(--bmw-muted);
  font-size: 0.94rem;
}

.bmw-submission-form {
  display: grid;
  gap: 1.1rem;
}

.bmw-submission-form p {
  margin: 0;
}

.bmw-submission-form label {
  color: var(--bmw-heading);
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.bmw-submission-form input[type="text"],
.bmw-submission-form input[type="email"],
.bmw-submission-form input[type="file"] {
  background: var(--bmw-bg);
  border: 1px solid #aeb5be;
  border-radius: 0;
  box-sizing: border-box;
  color: var(--bmw-text);
  font: inherit;
  max-width: 100%;
  padding: 0.7rem 0.75rem;
  width: 100%;
}

.bmw-submission-form input[type="file"] {
  padding: 0.55rem;
}

.bmw-field-help {
  color: var(--bmw-muted);
  display: block;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

.bmw-form-message {
  font-size: 1rem;
  margin-bottom: 1.4rem !important;
}

.bmw-form-message--success {
  color: #21643f;
}

.bmw-form-message--error {
  color: #9b2c2c;
}

.bmw-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.bmw-site-footer {
  border-top: 1px solid var(--bmw-border);
}

.bmw-footer-inner {
  color: var(--bmw-muted);
  font-size: 0.9rem;
  padding-block: 2rem;
}

.bmw-footer-inner p {
  margin: 0;
}

@media (max-width: 700px) {
  .admin-bar .bmw-site-header {
    top: 46px;
  }

  .bmw-header-inner {
    min-height: 4rem;
  }

  .bmw-speakers {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
