/*
Theme Name: Sally Stocksdale Native
Theme URI: https://sallystocksdalephd.com/
Author: Sally Stocksdale site migration
Description: A faithful, dependency-free block theme recreation of the existing Sally Stocksdale site.
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: sally-native
*/

@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-italic-400.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-italic-500.ttf") format("truetype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("assets/fonts/raleway-italic-700.ttf") format("truetype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Tulpen One";
  src: url("assets/fonts/tulpen-one-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --sally-green: #0a6200;
  --sally-text: #666;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--sally-text);
  background: #fff;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--sally-green); }
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  padding-bottom: 10px;
  color: var(--sally-green);
  font-family: "Tulpen One", sans-serif;
  font-weight: 500;
  letter-spacing: 2px;
  line-height: 1.1;
}
h1 { font-size: 33px; }
h2 { font-size: 28px; }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
p { margin-top: 0; padding-bottom: 1em; }
img { max-width: 100%; height: auto; }

.sally-hero {
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6.5% 10%;
  background-image: url('/wp-content/uploads/2019/04/SallyStockesdale_banner-1.jpg');
  background-position: center;
  background-size: cover;
}
.sally-hero-copy {
  width: 60%;
  color: #fff;
  text-align: right;
  font-size: 17.5px;
  letter-spacing: 6.5px;
}
.sally-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  text-align: right;
}
.sally-hero-copy p { margin: 0; padding: 0; }
.sally-hero-copy h2 {
  margin: 0;
  padding-top: 15px;
  color: #fff;
  font-family: "Raleway", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  text-align: right;
}
.sally-main {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(2% + 27px) 0 94px;
}
.sally-main--defensive { padding-top: 94px; }
.sally-text:after { content: ""; display: table; clear: both; }
.sally-text ul, .sally-text ol { padding-left: 1.4rem; }
.sally-text .aligncenter { display: block; margin: 0 auto; }
.sally-text .alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.sally-text .alignright { float: right; margin: 0 0 1rem 1.5rem; }
.sally-cv .sally-cv-module { margin-top: 0; margin-bottom: 2.75%; }
.sally-cv .sally-text h1,
.sally-cv .sally-text p { margin: 0; }
.sally-cv .sally-text h1 { padding-bottom: 10px; line-height: 1; }
.sally-cv .sally-text p { padding-bottom: 1em; }
.sally-cv .sally-text > :last-child { padding-bottom: 0; }
.sally-cv .sally-button-wrap { padding: 0; }
.sally-cv .sally-button { padding: .3em 1em; }
.sally-russian .sally-text h1,
.sally-russian .sally-text p { margin: 0; }
.sally-russian .sally-text h1 {
  padding-bottom: 10px;
  font-family: "Times New Roman", Times, serif;
  line-height: 1;
}
.sally-russian .sally-text p { padding-bottom: 1em; }
.sally-russian .sally-text > :last-child { padding-bottom: 0; }
.sally-presentations-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5.5%;
  margin: 27px 0 54px;
}
.sally-presentation-card .sally-text { margin-bottom: 5.82%; }
.sally-presentation-card .sally-text:last-child { margin-bottom: 0; }
.sally-presentation-card .sally-text p { margin: 0; padding-bottom: 0; }
.sally-presentation-third-text { margin-bottom: 2.75%; }
.sally-presentation-third-text p { margin: 0; padding-bottom: 0; }
.sally-presentation-card iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.sally-button-wrap { text-align: center; padding: 10px 0 28px; }
.sally-button {
  display: inline-block;
  padding: .55em 1.2em;
  color: #fff;
  background: var(--sally-green);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.7;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 300ms ease;
}
.sally-button:hover, .sally-button:focus { color: #fff; background: #555; }
.sally-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 32px;
}
.sally-gallery figure { margin: 0; overflow: hidden; aspect-ratio: 400 / 284; }
.sally-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sally-video { position: relative; aspect-ratio: 16 / 9; margin: 10px 0 30px; }
.sally-video iframe { width: 100%; height: 100%; border: 0; }
.sally-text iframe { max-width: 100%; }
.sally-image { max-width: 75%; margin: 10px auto 30px; text-align: center; }

.sally-contact-form { margin-bottom: 30px; }
.sally-contact-main .sally-contact-intro { padding-bottom: calc(1em + 10px); }
.sally-contact-main > .wp-block-heading { margin: 0; padding-bottom: 0; }
.sally-contact-main > .wp-block-shortcode { margin: 0; }
.sally-contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3%;
  margin-bottom: 3%;
}
.sally-contact-row p,
.sally-contact-form > p { margin: 0; padding: 0; }
.sally-contact-row input { margin-bottom: 0; }
.sally-contact-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sally-contact-form input, .sally-contact-form textarea {
  width: 100%;
  margin: 0 0 3%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: #eee;
  color: #666;
  font: inherit;
}
.sally-contact-form textarea { min-height: 150px; resize: vertical; }
.sally-contact-submit { text-align: right; }
.sally-contact-form button {
  padding: .3em 1em;
  border: 2px solid var(--sally-green);
  border-radius: 3px;
  color: var(--sally-green);
  background: transparent;
  font: inherit;
  font-size: 20px;
  cursor: pointer;
}
.sally-contact-form button:hover, .sally-contact-form button:focus { color: #fff; background: var(--sally-green); }
.sally-contact-status { padding: 12px 16px; background: #f1f6f0; border-left: 4px solid var(--sally-green); }
.sally-honeypot { position: absolute !important; left: -10000px !important; }

.sally-footer {
  margin-top: 10%;
  padding: 18px max(5%, calc((100% - 1080px) / 2));
  color: #fff;
  background: var(--sally-green);
  text-align: center;
}
.sally-footer ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sally-footer a {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
}
.sally-footer p { margin: 16px 0 0; padding: 0; font-size: 13px; text-align: left; }

@media (max-width: 767px) {
  .sally-hero { min-height: 245px; padding: 6.5% 10% 6.5% 0; background-position: center; }
  .sally-hero-copy { width: 70%; font-size: 13px; letter-spacing: 3px; }
  .sally-hero-copy h1 { font-size: 42px; }
  .sally-hero-copy h2 { font-size: 20px; }
  .sally-main { width: 90%; padding-top: 48px; }
  .sally-gallery { grid-template-columns: repeat(2, 1fr); }
  .sally-contact-row { grid-template-columns: 1fr; gap: 0; }
  .sally-footer ul { display: block; }
  .sally-footer li { margin-bottom: 12px; }
}

@media (max-width: 980px) {
  .sally-presentations-grid { grid-template-columns: 1fr; gap: 30px; }
}
