

/*
Theme Name: Crystal Cohen
Description: Custom accessible theme based on Crystal Cohen voiceover site design.
Author: Your Name
Version: 1.0

You can now:

Create a style.css file in your theme directory and paste this code into it.

Ensure your functions.php is already loading this stylesheet with get_stylesheet_uri().
*/

/* General Reset */
@layer reset;

@layer reset {
/** Borrowed from https://piccalil.li/blog/a-more-modern-css-reset/ **/

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

html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
	margin-block-end: 0;
}

body {
	min-height: 100vh;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
button,
input,
label {
	line-height: 1.1;
}

h1,
h2,
h3,
h4 {
	text-wrap: balance;
}

a:not([class]) {
	text-decoration-skip-ink: auto;
	color: currentColor;
}

img,
picture {
	max-width: 100%;
	display: block;
}

a > img {
	display: inline-block;
}

input,
button,
textarea,
select {
	font-family: inherit;
	font-size: inherit;
}

textarea:not([rows]) {
	min-height: 10em;
}

:target {
	scroll-margin-block: 5ex;
}
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fdf9f9;
  color: #222;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header */
#site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.logo h1 {
  font-family: 'Brush Script MT', cursive;
  font-size: 2.5rem;
  color: #222;
}

.logo .cohen {
  font-family: serif;
  font-size: 1.5rem;
  font-weight: bold;
}

nav.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav.main-navigation li a {
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #e1c4ff, #ffc4f1);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero h2.hero-greeting {
  font-size: 4rem;
  font-family: 'Brush Script MT', cursive;
  color: #111;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.hero h2.hero-greeting::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 0.5em;
  background: #d1a6ff;
  bottom: 0.1em;
  left: 0;
  z-index: -1;
  border-radius: 4px;
}

.hero p {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 2rem;
}

main a {
	text-decoration: underline;
}


.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #333;
  color: #fff;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.button:hover,
.button:focus {
  background: #555;
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Footer */
#site-footer {
  text-align: center;
  padding: 2rem;
  background: #fafafa;
  color: #888;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
}

/* Contact Form */
.contact-form {
  padding: 4rem 2rem;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.contact-form h1 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  text-align: center;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #a88efb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 142, 251, 0.3);
}

/* Quote Generator */
.quote-generator {
  padding: 4rem 2rem;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.quote-generator h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.quote-generator p {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 2rem;
}

.quote-generator label {
  display: block;
  text-align: left;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.quote-generator input,
.quote-generator select {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.quote-generator input:focus,
.quote-generator select:focus {
  border-color: #a88efb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 142, 251, 0.3);
}

#quote-result {
  font-size: 1.5rem;
  color: #222;
  margin-top: 2rem;
  font-weight: bold;
}

/* Accessibility Enhancements */
a:focus {
  outline: 2px dashed #000;
  outline-offset: 2px;
}

[role="navigation"] li a:focus {
  background: #eee;
}

/* Responsive */
@media (max-width: 768px) {
  nav.main-navigation ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero h2.hero-greeting {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.2rem;
  }
}
