/*
Theme Name: Ross House
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ross-house
Tags: 
*/

:root {
  /* @link https://utopia.fyi/space/calculator?c=360,8,1.25,1440,32,1.25,5,1,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */
  --space-3xs: clamp(2px, 0px + 0.5556vw, 8px);
  --space-2xs: clamp(4px, 0px + 1.1111vw, 16px);
  --space-xs: clamp(6px, 0px + 1.6667vw, 24px);
  --space-s: clamp(8px, 0px + 2.2222vw, 32px);
  /* --space-m: clamp(12px, 0px + 3.3333vw, 48px); */
  --space-l: clamp(16px, 0px + 4.4444vw, 64px);
  --space-xl: clamp(24px, 0px + 6.6667vw, 96px);
  --space-2xl: clamp(32px, 0px + 8.8889vw, 128px);
  --space-3xl: clamp(48px, 0px + 13.3333vw, 192px);

  --font-size-r: clamp(1rem, 0.9167rem + 0.3704vw, 1.25rem);
  --line-height-r: 1.25;
  --font-size-h5: clamp(1.25rem, 1.1458rem + 0.463vw, 1.5625rem);
  --line-height-h5: 1.53;
  --font-size-h4: clamp(1.5625rem, 1.4323rem + 0.5787vw, 1.9531rem);
  --line-height-h4: 1.44;
  --font-size-h3: clamp(1.9531rem, 1.7904rem + 0.7234vw, 2.4414rem);
  --line-height-h3: 1.36;
  --font-size-h2: clamp(2.4414rem, 2.238rem + 0.9042vw, 3.0518rem);
  --line-height-h2: 1.28;
  --font-size-h1: clamp(3.0518rem, 2.7974rem + 1.1303vw, 3.8147rem);
  --line-height-h1: 1.2;

  --space-logo: clamp(48px, 34.6667px + 3.7037vw, 88px);

  /* @link https://utopia.fyi/clamp/calculator?a=360,1440,16—48 */
  --space-m: clamp(16px, 5.3333px + 2.963vw, 48px);
}

.p-m {
  padding: var(--space-m);
}

.py-m {
  padding-block: var(--space-m);
}

.px-m {
  padding-inline: var(--space-m);
}

.m-0 {
  margin: 0;
}

.my-0 {
  margin-block: 0;
}

.mt-0 {
  margin-top: 0;
}

strong {
  font-weight: 500;
}

/* Hide post title in editor */
.edit-post-visual-editor__post-title-wrapper {
  display: none;
}

header {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 100%;
}

header img {
  width: var(--space-logo);
  height: auto;
}

.header-absolute {
  width: 100%;
  color: var(--wp--preset--color--page-background);
}

/* Make absolute header absolute in editor */
.header-absolute-template-part {
  position: absolute !important;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
}

/* Remove margin from home cover in editor */
.header-absolute-template-part + * {
  margin-top: 0 !important;
}

/* Fix column order to always put image first on mobile */
/* TODO: Where do I find the mobile breakpoint variable? */
@media (max-width: 781px) {
  .wp-block-column:has(.wp-block-image) {
    order: -1;
  }
}

:root :where(.is-layout-constrained) > *.no-margin-block-start {
  margin-top: 0;
}
